对接小区、故障报修接口,更换图片地址

This commit is contained in:
zhouyanli
2026-05-13 17:49:02 +08:00
parent d45bb90c5e
commit 7e5ee9d4e0
28 changed files with 495 additions and 629 deletions

View File

@@ -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)
}