物业代码生成
This commit is contained in:
61
apps/web-antd/src/api/property/building/index.ts
Normal file
61
apps/web-antd/src/api/property/building/index.ts
Normal file
@@ -0,0 +1,61 @@
|
||||
import type { BuildingVO, BuildingForm, BuildingQuery } 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 buildingList(params?: BuildingQuery) {
|
||||
return requestClient.get<PageResult<BuildingVO>>('/property/building/list', { params });
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出建筑管理列表
|
||||
* @param params
|
||||
* @returns 建筑管理列表
|
||||
*/
|
||||
export function buildingExport(params?: BuildingQuery) {
|
||||
return commonExport('/property/building/export', params ?? {});
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询建筑管理详情
|
||||
* @param id id
|
||||
* @returns 建筑管理详情
|
||||
*/
|
||||
export function buildingInfo(id: ID) {
|
||||
return requestClient.get<BuildingVO>(`/property/building/${id}`);
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增建筑管理
|
||||
* @param data
|
||||
* @returns void
|
||||
*/
|
||||
export function buildingAdd(data: BuildingForm) {
|
||||
return requestClient.postWithMsg<void>('/property/building', data);
|
||||
}
|
||||
|
||||
/**
|
||||
* 更新建筑管理
|
||||
* @param data
|
||||
* @returns void
|
||||
*/
|
||||
export function buildingUpdate(data: BuildingForm) {
|
||||
return requestClient.putWithMsg<void>('/property/building', data);
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除建筑管理
|
||||
* @param id id
|
||||
* @returns void
|
||||
*/
|
||||
export function buildingRemove(id: ID | IDS) {
|
||||
return requestClient.deleteWithMsg<void>(`/property/building/${id}`);
|
||||
}
|
319
apps/web-antd/src/api/property/building/model.d.ts
vendored
Normal file
319
apps/web-antd/src/api/property/building/model.d.ts
vendored
Normal file
@@ -0,0 +1,319 @@
|
||||
import type { PageQuery, BaseEntity } from '#/api/common';
|
||||
|
||||
export interface BuildingVO {
|
||||
/**
|
||||
* id
|
||||
*/
|
||||
id: string | number;
|
||||
|
||||
/**
|
||||
* 园区编码
|
||||
*/
|
||||
communityCode: string;
|
||||
|
||||
/**
|
||||
* 建筑编码
|
||||
*/
|
||||
buildingCode: string;
|
||||
|
||||
/**
|
||||
* 建筑名称
|
||||
*/
|
||||
buildingName: string;
|
||||
|
||||
/**
|
||||
* 省
|
||||
*/
|
||||
province: string;
|
||||
|
||||
/**
|
||||
* 市
|
||||
*/
|
||||
city: string;
|
||||
|
||||
/**
|
||||
* 区
|
||||
*/
|
||||
district: string;
|
||||
|
||||
/**
|
||||
* 地址
|
||||
*/
|
||||
addr: string;
|
||||
|
||||
/**
|
||||
* 经度
|
||||
*/
|
||||
lon: string;
|
||||
|
||||
/**
|
||||
* 维度
|
||||
*/
|
||||
lat: string;
|
||||
|
||||
/**
|
||||
* 产权性质(1:自持,2:承租,3:自持+承租,4:政府免费使用)
|
||||
*/
|
||||
cqxz: number;
|
||||
|
||||
/**
|
||||
* 不动产编号
|
||||
*/
|
||||
bdcbh: string;
|
||||
|
||||
/**
|
||||
* 产权编号
|
||||
*/
|
||||
cqbh: string;
|
||||
|
||||
/**
|
||||
* 图地编号
|
||||
*/
|
||||
tdbh: string;
|
||||
|
||||
/**
|
||||
* 建筑面积
|
||||
*/
|
||||
jzmj: number;
|
||||
|
||||
/**
|
||||
* 产权面积
|
||||
*/
|
||||
cqmj: number;
|
||||
|
||||
/**
|
||||
* 可租面积
|
||||
*/
|
||||
kzmj: number;
|
||||
|
||||
/**
|
||||
* 自用面积
|
||||
*/
|
||||
zymj: number;
|
||||
|
||||
/**
|
||||
* 配套面积
|
||||
*/
|
||||
ptmj: number;
|
||||
|
||||
/**
|
||||
* 车位面积
|
||||
*/
|
||||
cwmj: number;
|
||||
|
||||
/**
|
||||
* 标准层高
|
||||
*/
|
||||
bzcg: number;
|
||||
|
||||
/**
|
||||
* 排序字段
|
||||
*/
|
||||
order: number;
|
||||
|
||||
/**
|
||||
* 组织编码
|
||||
*/
|
||||
orgCode: string;
|
||||
|
||||
/**
|
||||
* 数据状态:1有效,0无效
|
||||
*/
|
||||
dataState: number;
|
||||
|
||||
}
|
||||
|
||||
export interface BuildingForm extends BaseEntity {
|
||||
/**
|
||||
* id
|
||||
*/
|
||||
id?: string | number;
|
||||
|
||||
/**
|
||||
* 园区编码
|
||||
*/
|
||||
communityCode?: string;
|
||||
|
||||
/**
|
||||
* 建筑编码
|
||||
*/
|
||||
buildingCode?: string;
|
||||
|
||||
/**
|
||||
* 建筑名称
|
||||
*/
|
||||
buildingName?: string;
|
||||
|
||||
/**
|
||||
* 省
|
||||
*/
|
||||
province?: string;
|
||||
|
||||
/**
|
||||
* 市
|
||||
*/
|
||||
city?: string;
|
||||
|
||||
/**
|
||||
* 区
|
||||
*/
|
||||
district?: string;
|
||||
|
||||
/**
|
||||
* 地址
|
||||
*/
|
||||
addr?: string;
|
||||
|
||||
/**
|
||||
* 经度
|
||||
*/
|
||||
lon?: string;
|
||||
|
||||
/**
|
||||
* 维度
|
||||
*/
|
||||
lat?: string;
|
||||
|
||||
/**
|
||||
* 产权性质(1:自持,2:承租,3:自持+承租,4:政府免费使用)
|
||||
*/
|
||||
cqxz?: number;
|
||||
|
||||
/**
|
||||
* 不动产编号
|
||||
*/
|
||||
bdcbh?: string;
|
||||
|
||||
/**
|
||||
* 产权编号
|
||||
*/
|
||||
cqbh?: string;
|
||||
|
||||
/**
|
||||
* 图地编号
|
||||
*/
|
||||
tdbh?: string;
|
||||
|
||||
/**
|
||||
* 建筑面积
|
||||
*/
|
||||
jzmj?: number;
|
||||
|
||||
/**
|
||||
* 产权面积
|
||||
*/
|
||||
cqmj?: number;
|
||||
|
||||
/**
|
||||
* 可租面积
|
||||
*/
|
||||
kzmj?: number;
|
||||
|
||||
/**
|
||||
* 自用面积
|
||||
*/
|
||||
zymj?: number;
|
||||
|
||||
/**
|
||||
* 配套面积
|
||||
*/
|
||||
ptmj?: number;
|
||||
|
||||
/**
|
||||
* 车位面积
|
||||
*/
|
||||
cwmj?: number;
|
||||
|
||||
/**
|
||||
* 标准层高
|
||||
*/
|
||||
bzcg?: number;
|
||||
|
||||
/**
|
||||
* 排序字段
|
||||
*/
|
||||
order?: number;
|
||||
|
||||
/**
|
||||
* 组织编码
|
||||
*/
|
||||
orgCode?: string;
|
||||
|
||||
/**
|
||||
* 数据状态:1有效,0无效
|
||||
*/
|
||||
dataState?: number;
|
||||
|
||||
}
|
||||
|
||||
export interface BuildingQuery extends PageQuery {
|
||||
/**
|
||||
* 园区编码
|
||||
*/
|
||||
communityCode?: string;
|
||||
|
||||
/**
|
||||
* 建筑编码
|
||||
*/
|
||||
buildingCode?: string;
|
||||
|
||||
/**
|
||||
* 建筑名称
|
||||
*/
|
||||
buildingName?: string;
|
||||
|
||||
/**
|
||||
* 省
|
||||
*/
|
||||
province?: string;
|
||||
|
||||
/**
|
||||
* 市
|
||||
*/
|
||||
city?: string;
|
||||
|
||||
/**
|
||||
* 区
|
||||
*/
|
||||
district?: string;
|
||||
|
||||
/**
|
||||
* 地址
|
||||
*/
|
||||
addr?: string;
|
||||
|
||||
/**
|
||||
* 经度
|
||||
*/
|
||||
lon?: string;
|
||||
|
||||
/**
|
||||
* 维度
|
||||
*/
|
||||
lat?: string;
|
||||
|
||||
/**
|
||||
* 产权性质(1:自持,2:承租,3:自持+承租,4:政府免费使用)
|
||||
*/
|
||||
cqxz?: number;
|
||||
|
||||
/**
|
||||
* 不动产编号
|
||||
*/
|
||||
bdcbh?: string;
|
||||
|
||||
/**
|
||||
* 产权编号
|
||||
*/
|
||||
cqbh?: string;
|
||||
|
||||
/**
|
||||
* 组织编码
|
||||
*/
|
||||
orgCode?: string;
|
||||
|
||||
/**
|
||||
* 日期范围参数
|
||||
*/
|
||||
params?: any;
|
||||
}
|
Reference in New Issue
Block a user