2026-04-23 23:51:52 +08:00
|
|
|
import request from '@/sheep/request';
|
|
|
|
|
|
|
|
|
|
const CommunityApi = {
|
|
|
|
|
// 获取小区简单列表
|
2026-04-25 23:03:52 +08:00
|
|
|
getSimpleList: (data) => {
|
2026-04-23 23:51:52 +08:00
|
|
|
return request({
|
|
|
|
|
url: '/community/community/simple-list',
|
|
|
|
|
method: 'GET',
|
2026-04-25 23:03:52 +08:00
|
|
|
data,
|
2026-04-23 23:51:52 +08:00
|
|
|
custom: {
|
|
|
|
|
showLoading: true,
|
|
|
|
|
auth: true,
|
|
|
|
|
},
|
|
|
|
|
});
|
|
|
|
|
},
|
|
|
|
|
// 获取小区房屋树
|
|
|
|
|
getHouseTree: (communityId) => {
|
|
|
|
|
return request({
|
|
|
|
|
url: '/community/house/tree',
|
|
|
|
|
method: 'GET',
|
|
|
|
|
params: { communityId },
|
|
|
|
|
custom: {
|
|
|
|
|
showLoading: true,
|
|
|
|
|
auth: true,
|
|
|
|
|
},
|
|
|
|
|
});
|
|
|
|
|
},
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
export default CommunityApi;
|