物业代码生成

This commit is contained in:
2025-06-18 11:03:42 +08:00
commit 1262d4c745
1881 changed files with 249599 additions and 0 deletions

View File

@@ -0,0 +1,61 @@
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 小区管理列表
*/
export function communityList(params?: CommunityQuery) {
return requestClient.get<PageResult<CommunityVO>>('/property/community/list', { params });
}
/**
* 导出小区管理列表
* @param params
* @returns 小区管理列表
*/
export function communityExport(params?: CommunityQuery) {
return commonExport('/property/community/export', params ?? {});
}
/**
* 查询小区管理详情
* @param id id
* @returns 小区管理详情
*/
export function communityInfo(id: ID) {
return requestClient.get<CommunityVO>(`/property/community/${id}`);
}
/**
* 新增小区管理
* @param data
* @returns void
*/
export function communityAdd(data: CommunityForm) {
return requestClient.postWithMsg<void>('/property/community', data);
}
/**
* 更新小区管理
* @param data
* @returns void
*/
export function communityUpdate(data: CommunityForm) {
return requestClient.putWithMsg<void>('/property/community', data);
}
/**
* 删除小区管理
* @param id id
* @returns void
*/
export function communityRemove(id: ID | IDS) {
return requestClient.deleteWithMsg<void>(`/property/community/${id}`);
}

View File

@@ -0,0 +1,204 @@
import type { PageQuery, BaseEntity } from '#/api/common';
export interface CommunityVO {
/**
* 主键id
*/
id: string | number;
/**
* 社区名称
*/
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;
}
export interface CommunityForm extends BaseEntity {
/**
* 主键id
*/
id?: string | number;
/**
* 社区名称
*/
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;
}
export interface CommunityQuery extends PageQuery {
/**
* 社区名称
*/
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;
/**
* 日期范围参数
*/
params?: any;
}