This commit is contained in:
@@ -1,38 +1,40 @@
|
||||
import type { CommunityVO, CommunityForm, CommunityQuery } from './model';
|
||||
|
||||
import type { ID, IDS } from '#/api/common';
|
||||
import type { PageResult } from '#/api/common';
|
||||
|
||||
import { commonExport } from '#/api/helper';
|
||||
import { requestClient } from '#/api/request';
|
||||
|
||||
/**
|
||||
* 查询小区管理列表
|
||||
* 查询小区列表
|
||||
* @param params
|
||||
* @returns 小区管理列表
|
||||
* @returns 小区列表
|
||||
*/
|
||||
export function communityList(params?: CommunityQuery) {
|
||||
return requestClient.get<PageResult<CommunityVO>>('/property/community/list', { params });
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出小区管理列表
|
||||
* 导出小区列表
|
||||
* @param params
|
||||
* @returns 小区管理列表
|
||||
* @returns 小区列表
|
||||
*/
|
||||
export function communityExport(params?: CommunityQuery) {
|
||||
return commonExport('/property/community/export', params ?? {});
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询小区管理详情
|
||||
* 查询小区详情
|
||||
* @param id id
|
||||
* @returns 小区管理详情
|
||||
* @returns 小区详情
|
||||
*/
|
||||
export function communityInfo(id: ID) {
|
||||
return requestClient.get<CommunityVO>(`/property/community/${id}`);
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增小区管理
|
||||
* 新增小区
|
||||
* @param data
|
||||
* @returns void
|
||||
*/
|
||||
@@ -41,7 +43,7 @@ export function communityAdd(data: CommunityForm) {
|
||||
}
|
||||
|
||||
/**
|
||||
* 更新小区管理
|
||||
* 更新小区
|
||||
* @param data
|
||||
* @returns void
|
||||
*/
|
||||
@@ -50,7 +52,7 @@ export function communityUpdate(data: CommunityForm) {
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除小区管理
|
||||
* 删除小区
|
||||
* @param id id
|
||||
* @returns void
|
||||
*/
|
||||
|
211
apps/web-antd/src/api/property/community/model.d.ts
vendored
211
apps/web-antd/src/api/property/community/model.d.ts
vendored
@@ -2,7 +2,7 @@ import type { PageQuery, BaseEntity } from '#/api/common';
|
||||
|
||||
export interface CommunityVO {
|
||||
/**
|
||||
* 主键
|
||||
*
|
||||
*/
|
||||
id: string | number;
|
||||
|
||||
@@ -11,11 +11,6 @@ export interface CommunityVO {
|
||||
*/
|
||||
communityName: string;
|
||||
|
||||
/**
|
||||
* 社区编码
|
||||
*/
|
||||
communityCode: string;
|
||||
|
||||
/**
|
||||
* 社区类型 1:园区,2:小区
|
||||
*/
|
||||
@@ -51,31 +46,41 @@ export interface CommunityVO {
|
||||
*/
|
||||
lat: string;
|
||||
|
||||
/**
|
||||
* 占地面积(平方米)
|
||||
*/
|
||||
area: number;
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
builtYear: string;
|
||||
|
||||
/**
|
||||
* 物业公司
|
||||
*/
|
||||
propertyCompany: string;
|
||||
|
||||
/**
|
||||
* 联系电话
|
||||
*/
|
||||
contactPhone: string;
|
||||
|
||||
/**
|
||||
* 社区描述
|
||||
*/
|
||||
description: string;
|
||||
|
||||
/**
|
||||
* 小图图片
|
||||
*/
|
||||
img: string;
|
||||
|
||||
/**
|
||||
* 组织编码
|
||||
*/
|
||||
orgCode: string;
|
||||
|
||||
/**
|
||||
* 数据状态:1有效,0无效
|
||||
*/
|
||||
dataState: number;
|
||||
|
||||
/**
|
||||
* 修改时间
|
||||
*/
|
||||
modifyTime: string;
|
||||
|
||||
}
|
||||
|
||||
export interface CommunityForm extends BaseEntity {
|
||||
/**
|
||||
* 主键
|
||||
*
|
||||
*/
|
||||
id?: string | number;
|
||||
|
||||
@@ -84,11 +89,6 @@ export interface CommunityForm extends BaseEntity {
|
||||
*/
|
||||
communityName?: string;
|
||||
|
||||
/**
|
||||
* 社区编码
|
||||
*/
|
||||
communityCode?: string;
|
||||
|
||||
/**
|
||||
* 社区类型 1:园区,2:小区
|
||||
*/
|
||||
@@ -124,26 +124,36 @@ export interface CommunityForm extends BaseEntity {
|
||||
*/
|
||||
lat?: string;
|
||||
|
||||
/**
|
||||
* 占地面积(平方米)
|
||||
*/
|
||||
area?: number;
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
builtYear?: string;
|
||||
|
||||
/**
|
||||
* 物业公司
|
||||
*/
|
||||
propertyCompany?: string;
|
||||
|
||||
/**
|
||||
* 联系电话
|
||||
*/
|
||||
contactPhone?: string;
|
||||
|
||||
/**
|
||||
* 社区描述
|
||||
*/
|
||||
description?: string;
|
||||
|
||||
/**
|
||||
* 小图图片
|
||||
*/
|
||||
img?: string;
|
||||
|
||||
/**
|
||||
* 组织编码
|
||||
*/
|
||||
orgCode?: string;
|
||||
|
||||
/**
|
||||
* 数据状态:1有效,0无效
|
||||
*/
|
||||
dataState?: number;
|
||||
|
||||
/**
|
||||
* 修改时间
|
||||
*/
|
||||
modifyTime?: string;
|
||||
|
||||
}
|
||||
|
||||
export interface CommunityQuery extends PageQuery {
|
||||
@@ -152,11 +162,6 @@ export interface CommunityQuery extends PageQuery {
|
||||
*/
|
||||
communityName?: string;
|
||||
|
||||
/**
|
||||
* 社区编码
|
||||
*/
|
||||
communityCode?: string;
|
||||
|
||||
/**
|
||||
* 社区类型 1:园区,2:小区
|
||||
*/
|
||||
@@ -192,100 +197,38 @@ export interface CommunityQuery extends PageQuery {
|
||||
*/
|
||||
lat?: string;
|
||||
|
||||
/**
|
||||
* 占地面积(平方米)
|
||||
*/
|
||||
area?: number;
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
builtYear?: string;
|
||||
|
||||
/**
|
||||
* 物业公司
|
||||
*/
|
||||
propertyCompany?: string;
|
||||
|
||||
/**
|
||||
* 联系电话
|
||||
*/
|
||||
contactPhone?: string;
|
||||
|
||||
/**
|
||||
* 社区描述
|
||||
*/
|
||||
description?: string;
|
||||
|
||||
/**
|
||||
* 小图图片
|
||||
*/
|
||||
img?: string;
|
||||
|
||||
/**
|
||||
* 组织编码
|
||||
*/
|
||||
orgCode?: string;
|
||||
|
||||
/**
|
||||
* 数据状态:1有效,0无效
|
||||
*/
|
||||
dataState?: number;
|
||||
|
||||
/**
|
||||
* 修改时间
|
||||
*/
|
||||
modifyTime?: string;
|
||||
|
||||
/**
|
||||
* 日期范围参数
|
||||
*/
|
||||
params?: any;
|
||||
}
|
||||
|
||||
export interface Community extends BaseEntity {
|
||||
/**
|
||||
* 社区名称
|
||||
*/
|
||||
communityName?: string;
|
||||
|
||||
/**
|
||||
* 社区编码
|
||||
*/
|
||||
communityCode?: string;
|
||||
|
||||
/**
|
||||
* 社区类型 1:园区,2:小区
|
||||
*/
|
||||
communityType?: number;
|
||||
|
||||
/**
|
||||
* 省
|
||||
*/
|
||||
province?: string;
|
||||
|
||||
/**
|
||||
* 市
|
||||
*/
|
||||
city?: string;
|
||||
|
||||
/**
|
||||
* 区
|
||||
*/
|
||||
district?: string;
|
||||
|
||||
/**
|
||||
* 地址
|
||||
*/
|
||||
addr?: string;
|
||||
|
||||
/**
|
||||
* 经度
|
||||
*/
|
||||
lon?: string;
|
||||
|
||||
/**
|
||||
* 维度
|
||||
*/
|
||||
lat?: string;
|
||||
|
||||
/**
|
||||
* 小图图片
|
||||
*/
|
||||
img?: string;
|
||||
|
||||
/**
|
||||
* 组织编码
|
||||
*/
|
||||
orgCode?: string;
|
||||
|
||||
/**
|
||||
* 数据状态:1有效,0无效
|
||||
*/
|
||||
dataState?: number;
|
||||
|
||||
/**
|
||||
* 修改时间
|
||||
*/
|
||||
modifyTime?: string;
|
||||
|
||||
/**
|
||||
* 日期范围参数
|
||||
*/
|
||||
params?: any;
|
||||
}
|
||||
|
Reference in New Issue
Block a user