物业代码生成
This commit is contained in:
61
apps/web-antd/src/api/property/config/index.ts
Normal file
61
apps/web-antd/src/api/property/config/index.ts
Normal file
@@ -0,0 +1,61 @@
|
||||
import type { ConfigVO, ConfigForm, ConfigQuery } 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 configList(params?: ConfigQuery) {
|
||||
return requestClient.get<PageResult<ConfigVO>>('/property/config/list', { params });
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出代码配置列表
|
||||
* @param params
|
||||
* @returns 代码配置列表
|
||||
*/
|
||||
export function configExport(params?: ConfigQuery) {
|
||||
return commonExport('/property/config/export', params ?? {});
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询代码配置详情
|
||||
* @param id id
|
||||
* @returns 代码配置详情
|
||||
*/
|
||||
export function configInfo(id: ID) {
|
||||
return requestClient.get<ConfigVO>(`/property/config/${id}`);
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增代码配置
|
||||
* @param data
|
||||
* @returns void
|
||||
*/
|
||||
export function configAdd(data: ConfigForm) {
|
||||
return requestClient.postWithMsg<void>('/property/config', data);
|
||||
}
|
||||
|
||||
/**
|
||||
* 更新代码配置
|
||||
* @param data
|
||||
* @returns void
|
||||
*/
|
||||
export function configUpdate(data: ConfigForm) {
|
||||
return requestClient.putWithMsg<void>('/property/config', data);
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除代码配置
|
||||
* @param id id
|
||||
* @returns void
|
||||
*/
|
||||
export function configRemove(id: ID | IDS) {
|
||||
return requestClient.deleteWithMsg<void>(`/property/config/${id}`);
|
||||
}
|
219
apps/web-antd/src/api/property/config/model.d.ts
vendored
Normal file
219
apps/web-antd/src/api/property/config/model.d.ts
vendored
Normal file
@@ -0,0 +1,219 @@
|
||||
import type { PageQuery, BaseEntity } from '#/api/common';
|
||||
|
||||
export interface ConfigVO {
|
||||
/**
|
||||
* 代码标识
|
||||
*/
|
||||
id: string | number;
|
||||
|
||||
/**
|
||||
* 代码分类
|
||||
*/
|
||||
codeKind: string;
|
||||
|
||||
/**
|
||||
* 代码取值
|
||||
*/
|
||||
codeValue: string;
|
||||
|
||||
/**
|
||||
* 类型名称
|
||||
*/
|
||||
codeName: string;
|
||||
|
||||
/**
|
||||
* 代码取值名称
|
||||
*/
|
||||
codeValueName: string;
|
||||
|
||||
/**
|
||||
* 代码取值别名
|
||||
*/
|
||||
codeValueAlias: string;
|
||||
|
||||
/**
|
||||
* 代码取值描述
|
||||
*/
|
||||
codeValueDesc: string;
|
||||
|
||||
/**
|
||||
* 代码取值排序
|
||||
*/
|
||||
codeValueOrder: number;
|
||||
|
||||
/**
|
||||
* 数据状态:1有效,0无效
|
||||
*/
|
||||
dataState: number;
|
||||
|
||||
/**
|
||||
* 创建人
|
||||
*/
|
||||
createEmpId: string | number;
|
||||
|
||||
/**
|
||||
* 创建人名称
|
||||
*/
|
||||
createEmpName: string;
|
||||
|
||||
/**
|
||||
* 修改人
|
||||
*/
|
||||
modifyEmpId: string | number;
|
||||
|
||||
/**
|
||||
* 修改人名称
|
||||
*/
|
||||
modifyEmpName: string;
|
||||
|
||||
/**
|
||||
* 修改时间
|
||||
*/
|
||||
modifyTime: string;
|
||||
|
||||
}
|
||||
|
||||
export interface ConfigForm extends BaseEntity {
|
||||
/**
|
||||
* 代码标识
|
||||
*/
|
||||
id?: string | number;
|
||||
|
||||
/**
|
||||
* 代码分类
|
||||
*/
|
||||
codeKind?: string;
|
||||
|
||||
/**
|
||||
* 代码取值
|
||||
*/
|
||||
codeValue?: string;
|
||||
|
||||
/**
|
||||
* 类型名称
|
||||
*/
|
||||
codeName?: string;
|
||||
|
||||
/**
|
||||
* 代码取值名称
|
||||
*/
|
||||
codeValueName?: string;
|
||||
|
||||
/**
|
||||
* 代码取值别名
|
||||
*/
|
||||
codeValueAlias?: string;
|
||||
|
||||
/**
|
||||
* 代码取值描述
|
||||
*/
|
||||
codeValueDesc?: string;
|
||||
|
||||
/**
|
||||
* 代码取值排序
|
||||
*/
|
||||
codeValueOrder?: number;
|
||||
|
||||
/**
|
||||
* 数据状态:1有效,0无效
|
||||
*/
|
||||
dataState?: number;
|
||||
|
||||
/**
|
||||
* 创建人
|
||||
*/
|
||||
createEmpId?: string | number;
|
||||
|
||||
/**
|
||||
* 创建人名称
|
||||
*/
|
||||
createEmpName?: string;
|
||||
|
||||
/**
|
||||
* 修改人
|
||||
*/
|
||||
modifyEmpId?: string | number;
|
||||
|
||||
/**
|
||||
* 修改人名称
|
||||
*/
|
||||
modifyEmpName?: string;
|
||||
|
||||
/**
|
||||
* 修改时间
|
||||
*/
|
||||
modifyTime?: string;
|
||||
|
||||
}
|
||||
|
||||
export interface ConfigQuery extends PageQuery {
|
||||
/**
|
||||
* 代码分类
|
||||
*/
|
||||
codeKind?: string;
|
||||
|
||||
/**
|
||||
* 代码取值
|
||||
*/
|
||||
codeValue?: string;
|
||||
|
||||
/**
|
||||
* 类型名称
|
||||
*/
|
||||
codeName?: string;
|
||||
|
||||
/**
|
||||
* 代码取值名称
|
||||
*/
|
||||
codeValueName?: string;
|
||||
|
||||
/**
|
||||
* 代码取值别名
|
||||
*/
|
||||
codeValueAlias?: string;
|
||||
|
||||
/**
|
||||
* 代码取值描述
|
||||
*/
|
||||
codeValueDesc?: string;
|
||||
|
||||
/**
|
||||
* 代码取值排序
|
||||
*/
|
||||
codeValueOrder?: number;
|
||||
|
||||
/**
|
||||
* 数据状态:1有效,0无效
|
||||
*/
|
||||
dataState?: number;
|
||||
|
||||
/**
|
||||
* 创建人
|
||||
*/
|
||||
createEmpId?: string | number;
|
||||
|
||||
/**
|
||||
* 创建人名称
|
||||
*/
|
||||
createEmpName?: string;
|
||||
|
||||
/**
|
||||
* 修改人
|
||||
*/
|
||||
modifyEmpId?: string | number;
|
||||
|
||||
/**
|
||||
* 修改人名称
|
||||
*/
|
||||
modifyEmpName?: string;
|
||||
|
||||
/**
|
||||
* 修改时间
|
||||
*/
|
||||
modifyTime?: string;
|
||||
|
||||
/**
|
||||
* 日期范围参数
|
||||
*/
|
||||
params?: any;
|
||||
}
|
Reference in New Issue
Block a user