对接首页消息通知、巡检点 切换小区获取最新数据
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user