2023-03-21 00:53:28 +08:00
|
|
|
import request from '@/utils/request';
|
2023-03-20 17:28:07 +08:00
|
|
|
|
|
|
|
|
// 获取地图数据
|
|
|
|
|
export function getMapData() {
|
|
|
|
|
return request({
|
|
|
|
|
url: '/sch/place/list',
|
|
|
|
|
method: 'get'
|
2023-03-21 00:53:28 +08:00
|
|
|
});
|
2023-03-20 17:28:07 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// 更新驾校状态
|
|
|
|
|
export async function updateSchoolStatus(data) {
|
|
|
|
|
return await request({
|
|
|
|
|
url: '/sch/place/updateSchool',
|
|
|
|
|
method: 'put',
|
|
|
|
|
data: data
|
2023-03-21 00:53:28 +08:00
|
|
|
});
|
2023-03-20 17:28:07 +08:00
|
|
|
}
|
|
|
|
|
|
2023-08-15 11:41:00 +08:00
|
|
|
// 新增
|
|
|
|
|
export function addPlace(data) {
|
2023-03-20 17:28:07 +08:00
|
|
|
return request({
|
|
|
|
|
url: '/sch/place',
|
|
|
|
|
method: 'post',
|
|
|
|
|
data: data
|
2023-03-21 00:53:28 +08:00
|
|
|
});
|
2023-03-20 17:28:07 +08:00
|
|
|
}
|
2023-03-21 22:47:23 +08:00
|
|
|
|
|
|
|
|
|
2023-08-15 11:41:00 +08:00
|
|
|
// 修改场地
|
|
|
|
|
export function updatePlace(data) {
|
|
|
|
|
return request({
|
|
|
|
|
url: '/sch/place',
|
|
|
|
|
method: 'put',
|
|
|
|
|
data: data
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
2023-03-21 22:47:23 +08:00
|
|
|
// 查询场地
|
|
|
|
|
export function getAllPlaces(param) {
|
|
|
|
|
return request({
|
|
|
|
|
url: `/sch/place/all`,
|
|
|
|
|
method: 'get',
|
|
|
|
|
params: param
|
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
}
|