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}`);
|
||||
}
|
||||
|
||||
/**
|
||||
|
@@ -1,8 +1,8 @@
|
||||
import type { PageQuery, BaseEntity } from '#/api/common';
|
||||
import type { BaseEntity, PageQuery } from '#/api/common';
|
||||
|
||||
export interface CommunityVO {
|
||||
/**
|
||||
*
|
||||
*
|
||||
*/
|
||||
id: string | number;
|
||||
|
||||
@@ -16,6 +16,9 @@ export interface CommunityVO {
|
||||
*/
|
||||
communityType: number;
|
||||
|
||||
cityFullCode: string;
|
||||
cityFullName: string;
|
||||
|
||||
/**
|
||||
* 省
|
||||
*/
|
||||
@@ -52,7 +55,7 @@ export interface CommunityVO {
|
||||
area: number;
|
||||
|
||||
/**
|
||||
*
|
||||
*
|
||||
*/
|
||||
builtYear: string;
|
||||
|
||||
@@ -75,12 +78,11 @@ export interface CommunityVO {
|
||||
* 小图图片
|
||||
*/
|
||||
img: string;
|
||||
|
||||
}
|
||||
|
||||
export interface CommunityForm extends BaseEntity {
|
||||
/**
|
||||
*
|
||||
*
|
||||
*/
|
||||
id?: string | number;
|
||||
|
||||
@@ -94,6 +96,9 @@ export interface CommunityForm extends BaseEntity {
|
||||
*/
|
||||
communityType?: number;
|
||||
|
||||
cityFullName: string;
|
||||
cityFullCode: string;
|
||||
|
||||
/**
|
||||
* 省
|
||||
*/
|
||||
@@ -130,7 +135,7 @@ export interface CommunityForm extends BaseEntity {
|
||||
area?: number;
|
||||
|
||||
/**
|
||||
*
|
||||
*
|
||||
*/
|
||||
builtYear?: string;
|
||||
|
||||
@@ -153,7 +158,6 @@ export interface CommunityForm extends BaseEntity {
|
||||
* 小图图片
|
||||
*/
|
||||
img?: string;
|
||||
|
||||
}
|
||||
|
||||
export interface CommunityQuery extends PageQuery {
|
||||
@@ -203,7 +207,7 @@ export interface CommunityQuery extends PageQuery {
|
||||
area?: number;
|
||||
|
||||
/**
|
||||
*
|
||||
*
|
||||
*/
|
||||
builtYear?: string;
|
||||
|
||||
@@ -228,7 +232,7 @@ export interface CommunityQuery extends PageQuery {
|
||||
img?: string;
|
||||
|
||||
/**
|
||||
* 日期范围参数
|
||||
*/
|
||||
* 日期范围参数
|
||||
*/
|
||||
params?: any;
|
||||
}
|
||||
|
Reference in New Issue
Block a user