物业代码生成
This commit is contained in:
@@ -0,0 +1,61 @@
|
||||
import type { ServiceClassificationVO, ServiceClassificationForm, ServiceClassificationQuery } 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 serviceClassificationList(params?: ServiceClassificationQuery) {
|
||||
return requestClient.get<PageResult<ServiceClassificationVO>>('/property/serviceClassification/list', { params });
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出分类管理列表
|
||||
* @param params
|
||||
* @returns 分类管理列表
|
||||
*/
|
||||
export function serviceClassificationExport(params?: ServiceClassificationQuery) {
|
||||
return commonExport('/property/serviceClassification/export', params ?? {});
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询分类管理详情
|
||||
* @param id id
|
||||
* @returns 分类管理详情
|
||||
*/
|
||||
export function serviceClassificationInfo(id: ID) {
|
||||
return requestClient.get<ServiceClassificationVO>(`/property/serviceClassification/${id}`);
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增分类管理
|
||||
* @param data
|
||||
* @returns void
|
||||
*/
|
||||
export function serviceClassificationAdd(data: ServiceClassificationForm) {
|
||||
return requestClient.postWithMsg<void>('/property/serviceClassification', data);
|
||||
}
|
||||
|
||||
/**
|
||||
* 更新分类管理
|
||||
* @param data
|
||||
* @returns void
|
||||
*/
|
||||
export function serviceClassificationUpdate(data: ServiceClassificationForm) {
|
||||
return requestClient.putWithMsg<void>('/property/serviceClassification', data);
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除分类管理
|
||||
* @param id id
|
||||
* @returns void
|
||||
*/
|
||||
export function serviceClassificationRemove(id: ID | IDS) {
|
||||
return requestClient.deleteWithMsg<void>(`/property/serviceClassification/${id}`);
|
||||
}
|
84
apps/web-antd/src/api/property/serviceClassification/model.d.ts
vendored
Normal file
84
apps/web-antd/src/api/property/serviceClassification/model.d.ts
vendored
Normal file
@@ -0,0 +1,84 @@
|
||||
import type { PageQuery, BaseEntity } from '#/api/common';
|
||||
|
||||
export interface ServiceClassificationVO {
|
||||
/**
|
||||
* id
|
||||
*/
|
||||
id: string | number;
|
||||
|
||||
/**
|
||||
* 分类
|
||||
*/
|
||||
type: string;
|
||||
|
||||
/**
|
||||
* 分类名称
|
||||
*/
|
||||
name: string;
|
||||
|
||||
/**
|
||||
* 排序
|
||||
*/
|
||||
sort: number;
|
||||
|
||||
/**
|
||||
* 分类状态(0:禁用,1:启用)
|
||||
*/
|
||||
status: number;
|
||||
|
||||
}
|
||||
|
||||
export interface ServiceClassificationForm extends BaseEntity {
|
||||
/**
|
||||
* id
|
||||
*/
|
||||
id?: string | number;
|
||||
|
||||
/**
|
||||
* 分类
|
||||
*/
|
||||
type?: string;
|
||||
|
||||
/**
|
||||
* 分类名称
|
||||
*/
|
||||
name?: string;
|
||||
|
||||
/**
|
||||
* 排序
|
||||
*/
|
||||
sort?: number;
|
||||
|
||||
/**
|
||||
* 分类状态(0:禁用,1:启用)
|
||||
*/
|
||||
status?: number;
|
||||
|
||||
}
|
||||
|
||||
export interface ServiceClassificationQuery extends PageQuery {
|
||||
/**
|
||||
* 分类
|
||||
*/
|
||||
type?: string;
|
||||
|
||||
/**
|
||||
* 分类名称
|
||||
*/
|
||||
name?: string;
|
||||
|
||||
/**
|
||||
* 排序
|
||||
*/
|
||||
sort?: number;
|
||||
|
||||
/**
|
||||
* 分类状态(0:禁用,1:启用)
|
||||
*/
|
||||
status?: number;
|
||||
|
||||
/**
|
||||
* 日期范围参数
|
||||
*/
|
||||
params?: any;
|
||||
}
|
Reference in New Issue
Block a user