This commit is contained in:
@@ -1,18 +1,29 @@
|
||||
import type { CommunityVO, CommunityForm, CommunityQuery } from './model';
|
||||
import type { CommunityForm, CommunityQuery, CommunityVO } from './model';
|
||||
|
||||
import type { ID, IDS } from '#/api/common';
|
||||
import type { PageResult } from '#/api/common';
|
||||
import type { ID, IDS, PageResult } from '#/api/common';
|
||||
|
||||
import { commonExport } from '#/api/helper';
|
||||
import { requestClient } from '#/api/request';
|
||||
|
||||
/**
|
||||
* 查询小区列表
|
||||
* @param params
|
||||
* @returns 小区列表
|
||||
*/
|
||||
* 查询小区列表
|
||||
* @param params
|
||||
* @returns 小区列表
|
||||
*/
|
||||
export function communityList(params?: CommunityQuery) {
|
||||
return requestClient.get<PageResult<CommunityVO>>('/property/community/list', { params });
|
||||
return requestClient.get<PageResult<CommunityVO>>(
|
||||
'/property/community/list',
|
||||
{ params },
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询小区树结构
|
||||
* @param params
|
||||
* @returns 小区列表
|
||||
*/
|
||||
export function communityTree(level: number) {
|
||||
return requestClient.get<CommunityVO[]>(`/property/community/tree/${level}`);
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user