56 lines
1.4 KiB
TypeScript
56 lines
1.4 KiB
TypeScript
// import requestTest from '@/utils/requestTest'
|
|
import requestTest from '@/utils/request'
|
|
import requestOld from '@/utils/requestOld'
|
|
|
|
export async function handleGetNearServiceList(params: any) {
|
|
const data: any = await requestTest.post('/location/search', params)
|
|
if (data.Result_Code !== 100) {
|
|
return data
|
|
}
|
|
return data.Result_Data.List
|
|
}
|
|
|
|
|
|
export async function handleGetGDNearServiceList(params: any) {
|
|
const data: any = await requestTest.post('/location/searchAround', params)
|
|
if (data.Result_Code !== 100) {
|
|
return data
|
|
}
|
|
return data.Result_Data.List
|
|
}
|
|
|
|
// 同步高德坐标
|
|
export async function handlesynchroAmapLocation(params: any) {
|
|
const data: any = await requestTest.post('/location/synchroAmapLocation', params)
|
|
if (data.Result_Code !== 100) {
|
|
return data
|
|
}
|
|
return data
|
|
}
|
|
|
|
|
|
// 查询服务区的详情接口
|
|
export async function handleGetSERVERPARTDetail(params: any) {
|
|
const data: any = await requestOld('/BaseInfo/GetSERVERPARTDetail', {
|
|
method: 'GET',
|
|
params
|
|
})
|
|
if (data.Result_Code !== 100) {
|
|
return data.Result_Data
|
|
}
|
|
return data.Result_Data
|
|
}
|
|
|
|
|
|
// 同步服务区详情数据
|
|
export async function handleUpdateServiceInfo(params: any) {
|
|
const data: any = await requestOld('/BaseInfo/SynchroSERVERPART', {
|
|
method: 'POST',
|
|
data: params
|
|
})
|
|
if (data.Result_Code !== 100) {
|
|
return data
|
|
}
|
|
return data
|
|
}
|