125 lines
3.5 KiB
JavaScript
125 lines
3.5 KiB
JavaScript
import request, {
|
|
get,
|
|
post,
|
|
deleteMethod,
|
|
putMethod
|
|
} from "./request.js"
|
|
|
|
|
|
// =======公告列表========
|
|
export const getResidentNoticeList = (data) => {
|
|
return get('/api/resident/notice/list', data)
|
|
}
|
|
// 我的房屋列表
|
|
export const getMyHouseList = (data) => {
|
|
return get('/api/resident/my/house/list', data)
|
|
}
|
|
// 提交房屋注册认证申请
|
|
export const myHouseApply = (data) => {
|
|
return post('/api/resident/my/house/apply', data)
|
|
}
|
|
// 查询小区列表
|
|
export const getVillageList = (data) => {
|
|
return get('/api/resident/village/list', data)
|
|
} // 查询楼栋列表
|
|
export const getHouseBuildings = (data) => {
|
|
return get('/api/resident/house/buildings', data)
|
|
}
|
|
// 查询单元列表
|
|
export const getHouseUnits = (data) => {
|
|
return get('/api/resident/house/units', data)
|
|
}
|
|
// 查询楼层列表
|
|
export const getHouseFloors = (data) => {
|
|
return get('/api/resident/house/floors', data)
|
|
}
|
|
// 查询户号列表
|
|
export const getHouseHouses = (data) => {
|
|
return get('/api/resident/house/houses', data)
|
|
}
|
|
// 房屋绑定手机获取验证码
|
|
export const getHouseAuthSendSmsCode = (data) => {
|
|
return post('/api/resident/auth/sendSmsCode', data)
|
|
}
|
|
// 房屋详情
|
|
export const getMyHouseDetail = (data) => {
|
|
return get(`/api/resident/my/house/${data.id}`, data)
|
|
}
|
|
// 删除房屋
|
|
export const deleteMyHouse = (data) => {
|
|
return deleteMethod(`/api/resident/my/house/${data.id}`, data)
|
|
}
|
|
// 设置默认房屋
|
|
export const setMyHouseDefault = (data) => {
|
|
return post(`/api/resident/my/house/default`, data)
|
|
}
|
|
// 获取当前用户登录信息
|
|
export const getUserProfile = (data) => {
|
|
return get(`/api/resident/user/profile`, data)
|
|
}
|
|
// 发送新手机号验证码
|
|
export const getAuthSendSmsCode = (data) => {
|
|
return post(`/api/resident/auth/sendSmsCode`, data)
|
|
}
|
|
// 更改手机号
|
|
export const getUserChangePhone = (data) => {
|
|
return post(`/api/resident/user/changePhone`, data)
|
|
}
|
|
// 获取消息通知开关
|
|
export const getUserNotify = (data) => {
|
|
return get(`/api/resident/user/notify`, data)
|
|
}
|
|
// 更新消息通知开关
|
|
export const changeUserNotify = (data) => {
|
|
return post(`/api/resident/user/notify`, data)
|
|
} // 修改密码(需登录)
|
|
export const authChangePassword = (data) => {
|
|
return post(`/api/resident/auth/changePassword`, data)
|
|
} // 退出登录
|
|
export const authLogout = (data) => {
|
|
return post(`/api/resident/auth/logout`, data)
|
|
}
|
|
// 编辑房屋
|
|
export const upDateMyHouse = (data) => {
|
|
return putMethod(`/api/resident/my/house/${data.id}`, data)
|
|
}
|
|
|
|
// 修改身份证照片
|
|
export const uploadFileUploadImage = (data) => {
|
|
return post(`/api/resident/file/uploadImage`, data)
|
|
}
|
|
|
|
// =========问卷调查=========
|
|
// 问卷列表
|
|
export const getQuestionnaireList = (data) => {
|
|
return get('/api/resident/questionnaire/list',data)
|
|
}
|
|
// 问卷详情
|
|
export const getQuestionnaireDetail = (data) => {
|
|
return get('/api/resident/questionnaire/myAnswers',data)
|
|
}
|
|
// 提交问卷
|
|
export const submitQuestionnair = (id,data) => {
|
|
return post(`/api/resident/questionnaire/${id}/submit`, data)
|
|
}
|
|
// =====投诉意见=======
|
|
// 获取投诉类型
|
|
export const getComplainType = () => {
|
|
return get('/complain/getComplainType')
|
|
}
|
|
// 获取投诉列表
|
|
export const getComplainList = (data) => {
|
|
return get('/complain/getComplainList',data)
|
|
}
|
|
// 提交投诉建议
|
|
export const addComplain = (data) => {
|
|
return post('/complain/add',data)
|
|
}
|
|
// 投诉详情
|
|
export const getComplainDetail = (data) => {
|
|
return get('/complain/detail',data)
|
|
}
|
|
// 联系物业
|
|
export const getManagePhoneData = (data) => {
|
|
return get('/api/manage/banner/getManagePhone',data)
|
|
} |