2023-04-03 15:26:56 +08:00
|
|
|
import request from '@/config/axios/request'
|
2023-03-18 21:45:58 +08:00
|
|
|
|
|
|
|
// 获得地区树
|
2023-04-03 15:26:56 +08:00
|
|
|
export const getAreaTree = async (content?: any) => {
|
|
|
|
return await request.get({
|
|
|
|
url: '/system/area/tree',
|
|
|
|
params: content
|
|
|
|
})
|
2023-03-18 21:45:58 +08:00
|
|
|
}
|
|
|
|
// 获得 IP 对应的地区名
|
2023-04-03 15:26:56 +08:00
|
|
|
export const getAreaByIp = async (ip) => {
|
|
|
|
return await request.get({
|
|
|
|
url: '/system/area/get-by-ip?ip=' + ip
|
|
|
|
})
|
2023-03-18 21:45:58 +08:00
|
|
|
}
|