对接小区、故障报修接口,更换图片地址
This commit is contained in:
@@ -17,4 +17,31 @@ export const getLoginBySms = (data) =>{
|
||||
export const getResetPassword = (data) =>{
|
||||
return post('/api/butler/auth/forgetPassword',data)
|
||||
}
|
||||
// ======首页=====
|
||||
// 获取小区列表
|
||||
export const getVillageList = (data) =>{
|
||||
return get('/api/inspection/today/villageList',data)
|
||||
}
|
||||
// 切换小区
|
||||
export const switchVillage = (data) =>{
|
||||
return post('/api/inspection/today/switchVillage',data)
|
||||
}
|
||||
// ======故障上报=====
|
||||
// 获取报修项目
|
||||
export const getRepairOrder = () =>{
|
||||
return get('/manage/repair/order/list')
|
||||
}
|
||||
// 提交维修信息
|
||||
export const addRepairList = (data) =>{
|
||||
return post('/manage/repair/order',data)
|
||||
}
|
||||
// 上传图片
|
||||
export const uploadFile = (filePath) => {
|
||||
return upload(filePath,' /resource/oss/upload');
|
||||
}
|
||||
|
||||
|
||||
// 一键开门
|
||||
export const openDoor = (data) =>{
|
||||
return post('/manage/remote/open',data)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user