对接首页消息通知、巡检点 切换小区获取最新数据

This commit is contained in:
zhouyanli
2026-05-15 16:06:32 +08:00
parent 8324d096c0
commit 856f36455c
17 changed files with 425 additions and 770 deletions

View File

@@ -26,6 +26,27 @@ export const getVillageList = (data) =>{
export const switchVillage = (data) =>{
return post('/api/inspection/today/switchVillage',data)
}
// 获取当前小区
export const getCurrentVillage = () =>{
return get('/api/butler/auth/today/village')
}
// 获取首页今日巡检
export const getTodayInspection = () =>{
return get('/api/inspection/today/inspection')
}
// 首页最新消息通知
export const getNewNoticeData = () =>{
return get('/manage/notice/new')
}
// ============通知列表===========
export const getNoticeList = (data) =>{
return get('/manage/notice/repair',data)
}
// ======故障上报=====
// 获取报修项目
export const getRepairOrder = () =>{
@@ -40,8 +61,21 @@ export const uploadFile = (filePath) => {
return upload(filePath,' /resource/oss/upload');
}
// 查询一键开门
export const getOpenDoorList = () =>{
return get('/manage/remote/open/accessdevice')
}
// 一键开门
export const openDoor = (data) =>{
export const switchOpenDoor = (data) =>{
return post('/manage/remote/open',data)
}
// ===========我的========
// 获取管家信息
export const getSettingInfo = () =>{
return get('/api/setting/info')
}
// 设置-修改密码
export const changePassword = (data) =>{
return post('/api/setting/changePassword',data)
}