You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
572 B
19 lines
572 B
import request from '@/config/axios'
|
|
|
|
// 获得地区树
|
|
export const getAreaTree = async () => {
|
|
return await request.get({ url: '/system/area/tree' })
|
|
}
|
|
|
|
export const getChildrenArea = async (id: number) => {
|
|
return await request.get({ url: '/system/area/get-children?id=' + id })
|
|
}
|
|
|
|
export const getAreaListByIds = async (ids) => {
|
|
return await request.get({ url: '/system/area/get-by-ids?ids=' + ids })
|
|
}
|
|
|
|
// 获得 IP 对应的地区名
|
|
export const getAreaByIp = async (ip: string) => {
|
|
return await request.get({ url: '/system/area/get-by-ip?ip=' + ip })
|
|
}
|
|
|