物业代码生成
This commit is contained in:
@@ -0,0 +1,61 @@
|
||||
import type { CeremonialserveRoombookingVO, CeremonialserveRoombookingForm, CeremonialserveRoombookingQuery } 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 ceremonialserveRoombookingList(params?: CeremonialserveRoombookingQuery) {
|
||||
return requestClient.get<PageResult<CeremonialserveRoombookingVO>>('/property/ceremonialserveRoombooking/list', { params });
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出服务订阅列表
|
||||
* @param params
|
||||
* @returns 服务订阅列表
|
||||
*/
|
||||
export function ceremonialserveRoombookingExport(params?: CeremonialserveRoombookingQuery) {
|
||||
return commonExport('/property/ceremonialserveRoombooking/export', params ?? {});
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询服务订阅详情
|
||||
* @param id id
|
||||
* @returns 服务订阅详情
|
||||
*/
|
||||
export function ceremonialserveRoombookingInfo(id: ID) {
|
||||
return requestClient.get<CeremonialserveRoombookingVO>(`/property/ceremonialserveRoombooking/${id}`);
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增服务订阅
|
||||
* @param data
|
||||
* @returns void
|
||||
*/
|
||||
export function ceremonialserveRoombookingAdd(data: CeremonialserveRoombookingForm) {
|
||||
return requestClient.postWithMsg<void>('/property/ceremonialserveRoombooking', data);
|
||||
}
|
||||
|
||||
/**
|
||||
* 更新服务订阅
|
||||
* @param data
|
||||
* @returns void
|
||||
*/
|
||||
export function ceremonialserveRoombookingUpdate(data: CeremonialserveRoombookingForm) {
|
||||
return requestClient.putWithMsg<void>('/property/ceremonialserveRoombooking', data);
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除服务订阅
|
||||
* @param id id
|
||||
* @returns void
|
||||
*/
|
||||
export function ceremonialserveRoombookingRemove(id: ID | IDS) {
|
||||
return requestClient.deleteWithMsg<void>(`/property/ceremonialserveRoombooking/${id}`);
|
||||
}
|
69
apps/web-antd/src/api/property/ceremonialserveRoombooking/model.d.ts
vendored
Normal file
69
apps/web-antd/src/api/property/ceremonialserveRoombooking/model.d.ts
vendored
Normal file
@@ -0,0 +1,69 @@
|
||||
import type { PageQuery, BaseEntity } from '#/api/common';
|
||||
|
||||
export interface CeremonialserveRoombookingVO {
|
||||
/**
|
||||
* id
|
||||
*/
|
||||
id: string | number;
|
||||
|
||||
/**
|
||||
* 服务id
|
||||
*/
|
||||
ceremonialServeId: string | number;
|
||||
|
||||
/**
|
||||
* 预订id
|
||||
*/
|
||||
roomBookingId: string | number;
|
||||
|
||||
/**
|
||||
* 服务和预订总价格
|
||||
*/
|
||||
totalPrice: number;
|
||||
|
||||
}
|
||||
|
||||
export interface CeremonialserveRoombookingForm extends BaseEntity {
|
||||
/**
|
||||
* id
|
||||
*/
|
||||
id?: string | number;
|
||||
|
||||
/**
|
||||
* 服务id
|
||||
*/
|
||||
ceremonialServeId?: string | number;
|
||||
|
||||
/**
|
||||
* 预订id
|
||||
*/
|
||||
roomBookingId?: string | number;
|
||||
|
||||
/**
|
||||
* 服务和预订总价格
|
||||
*/
|
||||
totalPrice?: number;
|
||||
|
||||
}
|
||||
|
||||
export interface CeremonialserveRoombookingQuery extends PageQuery {
|
||||
/**
|
||||
* 服务id
|
||||
*/
|
||||
ceremonialServeId?: string | number;
|
||||
|
||||
/**
|
||||
* 预订id
|
||||
*/
|
||||
roomBookingId?: string | number;
|
||||
|
||||
/**
|
||||
* 服务和预订总价格
|
||||
*/
|
||||
totalPrice?: number;
|
||||
|
||||
/**
|
||||
* 日期范围参数
|
||||
*/
|
||||
params?: any;
|
||||
}
|
Reference in New Issue
Block a user