物业代码生成
This commit is contained in:
61
apps/web-antd/src/api/property/ceremonialServe/index.ts
Normal file
61
apps/web-antd/src/api/property/ceremonialServe/index.ts
Normal file
@@ -0,0 +1,61 @@
|
||||
import type { CeremonialServeVO, CeremonialServeForm, CeremonialServeQuery } 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 ceremonialServeList(params?: CeremonialServeQuery) {
|
||||
return requestClient.get<PageResult<CeremonialServeVO>>('/property/ceremonialServe/list', { params });
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出服务列表
|
||||
* @param params
|
||||
* @returns 服务列表
|
||||
*/
|
||||
export function ceremonialServeExport(params?: CeremonialServeQuery) {
|
||||
return commonExport('/property/ceremonialServe/export', params ?? {});
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询服务详情
|
||||
* @param id id
|
||||
* @returns 服务详情
|
||||
*/
|
||||
export function ceremonialServeInfo(id: ID) {
|
||||
return requestClient.get<CeremonialServeVO>(`/property/ceremonialServe/${id}`);
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增服务
|
||||
* @param data
|
||||
* @returns void
|
||||
*/
|
||||
export function ceremonialServeAdd(data: CeremonialServeForm) {
|
||||
return requestClient.postWithMsg<void>('/property/ceremonialServe', data);
|
||||
}
|
||||
|
||||
/**
|
||||
* 更新服务
|
||||
* @param data
|
||||
* @returns void
|
||||
*/
|
||||
export function ceremonialServeUpdate(data: CeremonialServeForm) {
|
||||
return requestClient.putWithMsg<void>('/property/ceremonialServe', data);
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除服务
|
||||
* @param id id
|
||||
* @returns void
|
||||
*/
|
||||
export function ceremonialServeRemove(id: ID | IDS) {
|
||||
return requestClient.deleteWithMsg<void>(`/property/ceremonialServe/${id}`);
|
||||
}
|
249
apps/web-antd/src/api/property/ceremonialServe/model.d.ts
vendored
Normal file
249
apps/web-antd/src/api/property/ceremonialServe/model.d.ts
vendored
Normal file
@@ -0,0 +1,249 @@
|
||||
import type { PageQuery, BaseEntity } from '#/api/common';
|
||||
|
||||
export interface CeremonialServeVO {
|
||||
/**
|
||||
* id
|
||||
*/
|
||||
id: string | number;
|
||||
|
||||
/**
|
||||
* 分类id
|
||||
*/
|
||||
classificationId: string | number;
|
||||
|
||||
/**
|
||||
* 预订id
|
||||
*/
|
||||
roomBookId: string | number;
|
||||
|
||||
/**
|
||||
* 服务数量
|
||||
*/
|
||||
serveNum: number;
|
||||
|
||||
/**
|
||||
* 服务分类
|
||||
*/
|
||||
serveType: number;
|
||||
|
||||
/**
|
||||
* 产品名称
|
||||
*/
|
||||
serveName: string;
|
||||
|
||||
/**
|
||||
* 预订状态(0:待确认,1:已确认,2:已取消,3:已完成)
|
||||
*/
|
||||
serveStatus: number;
|
||||
|
||||
/**
|
||||
* 创建人id
|
||||
*/
|
||||
createById: string | number;
|
||||
|
||||
/**
|
||||
* 更新人id
|
||||
*/
|
||||
updateById: string | number;
|
||||
|
||||
/**
|
||||
* 确认人id
|
||||
*/
|
||||
confirmId: string | number;
|
||||
|
||||
/**
|
||||
* 服务开始时间
|
||||
*/
|
||||
beginTime: string;
|
||||
|
||||
/**
|
||||
* 服务结束时间
|
||||
*/
|
||||
endTime: string;
|
||||
|
||||
/**
|
||||
* 服务总价格
|
||||
*/
|
||||
servePrice: number;
|
||||
|
||||
/**
|
||||
* 数据状态(模拟删除 0:删除 1:未删除)
|
||||
*/
|
||||
dataStauts: number;
|
||||
|
||||
/**
|
||||
* 产品图片
|
||||
*/
|
||||
serveImage: string;
|
||||
|
||||
/**
|
||||
* 排序
|
||||
*/
|
||||
sort: number;
|
||||
|
||||
}
|
||||
|
||||
export interface CeremonialServeForm extends BaseEntity {
|
||||
/**
|
||||
* id
|
||||
*/
|
||||
id?: string | number;
|
||||
|
||||
/**
|
||||
* 分类id
|
||||
*/
|
||||
classificationId?: string | number;
|
||||
|
||||
/**
|
||||
* 预订id
|
||||
*/
|
||||
roomBookId?: string | number;
|
||||
|
||||
/**
|
||||
* 服务数量
|
||||
*/
|
||||
serveNum?: number;
|
||||
|
||||
/**
|
||||
* 服务分类
|
||||
*/
|
||||
serveType?: number;
|
||||
|
||||
/**
|
||||
* 产品名称
|
||||
*/
|
||||
serveName?: string;
|
||||
|
||||
/**
|
||||
* 预订状态(0:待确认,1:已确认,2:已取消,3:已完成)
|
||||
*/
|
||||
serveStatus?: number;
|
||||
|
||||
/**
|
||||
* 创建人id
|
||||
*/
|
||||
createById?: string | number;
|
||||
|
||||
/**
|
||||
* 更新人id
|
||||
*/
|
||||
updateById?: string | number;
|
||||
|
||||
/**
|
||||
* 确认人id
|
||||
*/
|
||||
confirmId?: string | number;
|
||||
|
||||
/**
|
||||
* 服务开始时间
|
||||
*/
|
||||
beginTime?: string;
|
||||
|
||||
/**
|
||||
* 服务结束时间
|
||||
*/
|
||||
endTime?: string;
|
||||
|
||||
/**
|
||||
* 服务总价格
|
||||
*/
|
||||
servePrice?: number;
|
||||
|
||||
/**
|
||||
* 数据状态(模拟删除 0:删除 1:未删除)
|
||||
*/
|
||||
dataStauts?: number;
|
||||
|
||||
/**
|
||||
* 产品图片
|
||||
*/
|
||||
serveImage?: string;
|
||||
|
||||
/**
|
||||
* 排序
|
||||
*/
|
||||
sort?: number;
|
||||
|
||||
}
|
||||
|
||||
export interface CeremonialServeQuery extends PageQuery {
|
||||
/**
|
||||
* 分类id
|
||||
*/
|
||||
classificationId?: string | number;
|
||||
|
||||
/**
|
||||
* 预订id
|
||||
*/
|
||||
roomBookId?: string | number;
|
||||
|
||||
/**
|
||||
* 服务数量
|
||||
*/
|
||||
serveNum?: number;
|
||||
|
||||
/**
|
||||
* 服务分类
|
||||
*/
|
||||
serveType?: number;
|
||||
|
||||
/**
|
||||
* 产品名称
|
||||
*/
|
||||
serveName?: string;
|
||||
|
||||
/**
|
||||
* 预订状态(0:待确认,1:已确认,2:已取消,3:已完成)
|
||||
*/
|
||||
serveStatus?: number;
|
||||
|
||||
/**
|
||||
* 创建人id
|
||||
*/
|
||||
createById?: string | number;
|
||||
|
||||
/**
|
||||
* 更新人id
|
||||
*/
|
||||
updateById?: string | number;
|
||||
|
||||
/**
|
||||
* 确认人id
|
||||
*/
|
||||
confirmId?: string | number;
|
||||
|
||||
/**
|
||||
* 服务开始时间
|
||||
*/
|
||||
beginTime?: string;
|
||||
|
||||
/**
|
||||
* 服务结束时间
|
||||
*/
|
||||
endTime?: string;
|
||||
|
||||
/**
|
||||
* 服务总价格
|
||||
*/
|
||||
servePrice?: number;
|
||||
|
||||
/**
|
||||
* 数据状态(模拟删除 0:删除 1:未删除)
|
||||
*/
|
||||
dataStauts?: number;
|
||||
|
||||
/**
|
||||
* 产品图片
|
||||
*/
|
||||
serveImage?: string;
|
||||
|
||||
/**
|
||||
* 排序
|
||||
*/
|
||||
sort?: number;
|
||||
|
||||
/**
|
||||
* 日期范围参数
|
||||
*/
|
||||
params?: any;
|
||||
}
|
Reference in New Issue
Block a user