57 lines
1.1 KiB
JavaScript
57 lines
1.1 KiB
JavaScript
|
|
import request from '@/sheep/request';
|
||
|
|
|
||
|
|
const MemberHouseApi = {
|
||
|
|
// 获取我的房屋认证列表
|
||
|
|
getMyList: () => {
|
||
|
|
return request({
|
||
|
|
url: '/community/member-house/my-list',
|
||
|
|
method: 'GET',
|
||
|
|
custom: {
|
||
|
|
showLoading: true,
|
||
|
|
auth: true,
|
||
|
|
},
|
||
|
|
});
|
||
|
|
},
|
||
|
|
// 获取小区房屋树
|
||
|
|
getCommunityTree: () => {
|
||
|
|
return request({
|
||
|
|
url: '/community/member-house/community-tree',
|
||
|
|
method: 'GET',
|
||
|
|
custom: {
|
||
|
|
showLoading: true,
|
||
|
|
auth: true,
|
||
|
|
},
|
||
|
|
});
|
||
|
|
},
|
||
|
|
// 切换当前房屋
|
||
|
|
switchHouse: (data) => {
|
||
|
|
return request({
|
||
|
|
url: '/community/member-house/switch-house',
|
||
|
|
method: 'POST',
|
||
|
|
data,
|
||
|
|
custom: {
|
||
|
|
showLoading: true,
|
||
|
|
auth: true,
|
||
|
|
showSuccess: true,
|
||
|
|
successMsg: '切换成功',
|
||
|
|
},
|
||
|
|
});
|
||
|
|
},
|
||
|
|
// 新增业主认证信息
|
||
|
|
create: (data) => {
|
||
|
|
return request({
|
||
|
|
url: '/community/member-house/create',
|
||
|
|
method: 'POST',
|
||
|
|
data,
|
||
|
|
custom: {
|
||
|
|
showLoading: true,
|
||
|
|
auth: true,
|
||
|
|
showSuccess: true,
|
||
|
|
successMsg: '提交成功',
|
||
|
|
},
|
||
|
|
});
|
||
|
|
},
|
||
|
|
};
|
||
|
|
|
||
|
|
export default MemberHouseApi;
|