import ajax from './ajax'
import { LOCATION_URL } from '@/config/config'

// 1. 定义基础路径
// const BASE_URL = '/huiqicha'
const BASE_URL = LOCATION_URL

//地址查询
export const getIndicator = (query) => ajax(BASE_URL + `/address/getAddressTree/code?level=${query.level}&code=${query.code}` , 'GET');
//机构
export const getDeptTree = (query) => ajax(BASE_URL + `/system/user/deptTree` , 'GET');
export const getDeptTreeAll = (query) => ajax(BASE_URL + `/system/user/deptTreeAll` , 'GET');
//客户经理

export const getDeptUser = (query) => ajax(BASE_URL + `/system/user/treeUser?deptid=${query.deptid}` , 'GET');
export const getDeptUserAll = (query) => ajax(BASE_URL + `/system/user/userAll?deptid=${query.deptid}` , 'GET');