新增多个功能模块
This commit is contained in:
61
apps/web-antd/src/api/property/serverbooking/index.ts
Normal file
61
apps/web-antd/src/api/property/serverbooking/index.ts
Normal file
@@ -0,0 +1,61 @@
|
||||
import type { ServerbookingVO, ServerbookingForm, ServerbookingQuery } 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 serverbookingList(params?: ServerbookingQuery) {
|
||||
return requestClient.get<PageResult<ServerbookingVO>>('/property/serverbooking/list', { params });
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出服务预约列表
|
||||
* @param params
|
||||
* @returns 服务预约列表
|
||||
*/
|
||||
export function serverbookingExport(params?: ServerbookingQuery) {
|
||||
return commonExport('/property/serverbooking/export', params ?? {});
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询服务预约详情
|
||||
* @param id id
|
||||
* @returns 服务预约详情
|
||||
*/
|
||||
export function serverbookingInfo(id: ID) {
|
||||
return requestClient.get<ServerbookingVO>(`/property/serverbooking/${id}`);
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增服务预约
|
||||
* @param data
|
||||
* @returns void
|
||||
*/
|
||||
export function serverbookingAdd(data: ServerbookingForm) {
|
||||
return requestClient.postWithMsg<void>('/property/serverbooking', data);
|
||||
}
|
||||
|
||||
/**
|
||||
* 更新服务预约
|
||||
* @param data
|
||||
* @returns void
|
||||
*/
|
||||
export function serverbookingUpdate(data: ServerbookingForm) {
|
||||
return requestClient.putWithMsg<void>('/property/serverbooking', data);
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除服务预约
|
||||
* @param id id
|
||||
* @returns void
|
||||
*/
|
||||
export function serverbookingRemove(id: ID | IDS) {
|
||||
return requestClient.deleteWithMsg<void>(`/property/serverbooking/${id}`);
|
||||
}
|
204
apps/web-antd/src/api/property/serverbooking/model.d.ts
vendored
Normal file
204
apps/web-antd/src/api/property/serverbooking/model.d.ts
vendored
Normal file
@@ -0,0 +1,204 @@
|
||||
import type { PageQuery, BaseEntity } from '#/api/common';
|
||||
|
||||
export interface ServerbookingVO {
|
||||
/**
|
||||
* 主键
|
||||
*/
|
||||
id: string | number;
|
||||
|
||||
/**
|
||||
* 服务id
|
||||
*/
|
||||
serverId: string | number;
|
||||
|
||||
/**
|
||||
* 预约数量
|
||||
*/
|
||||
serverNum: number;
|
||||
|
||||
/**
|
||||
* 预约类型
|
||||
*/
|
||||
bookingType: string;
|
||||
|
||||
/**
|
||||
* 服务封面
|
||||
*/
|
||||
serverImg: string;
|
||||
|
||||
/**
|
||||
* 预约时间
|
||||
*/
|
||||
bookingTime: string;
|
||||
|
||||
/**
|
||||
* 预约人姓名
|
||||
*/
|
||||
bookingUserNema: string;
|
||||
|
||||
/**
|
||||
* 预约人电话
|
||||
*/
|
||||
bookingUserPhone: string;
|
||||
|
||||
/**
|
||||
* 预约价格
|
||||
*/
|
||||
bookingPrice: number;
|
||||
|
||||
/**
|
||||
* 实付价格
|
||||
*/
|
||||
payPrice: number;
|
||||
|
||||
/**
|
||||
* 支付方式
|
||||
*/
|
||||
payType: number;
|
||||
|
||||
/**
|
||||
* 备注
|
||||
*/
|
||||
remark: string;
|
||||
|
||||
/**
|
||||
* 状态
|
||||
*/
|
||||
state: number;
|
||||
|
||||
/**
|
||||
* 创建时间
|
||||
*/
|
||||
createTime: string;
|
||||
|
||||
}
|
||||
|
||||
export interface ServerbookingForm extends BaseEntity {
|
||||
/**
|
||||
* 主键
|
||||
*/
|
||||
id?: string | number;
|
||||
|
||||
/**
|
||||
* 服务id
|
||||
*/
|
||||
serverId?: string | number;
|
||||
|
||||
/**
|
||||
* 预约数量
|
||||
*/
|
||||
serverNum?: number;
|
||||
|
||||
/**
|
||||
* 预约类型
|
||||
*/
|
||||
bookingType?: string;
|
||||
|
||||
/**
|
||||
* 服务封面
|
||||
*/
|
||||
serverImg?: string;
|
||||
|
||||
/**
|
||||
* 预约时间
|
||||
*/
|
||||
bookingTime?: string;
|
||||
|
||||
/**
|
||||
* 预约人姓名
|
||||
*/
|
||||
bookingUserNema?: string;
|
||||
|
||||
/**
|
||||
* 预约人电话
|
||||
*/
|
||||
bookingUserPhone?: string;
|
||||
|
||||
/**
|
||||
* 预约价格
|
||||
*/
|
||||
bookingPrice?: number;
|
||||
|
||||
/**
|
||||
* 实付价格
|
||||
*/
|
||||
payPrice?: number;
|
||||
|
||||
/**
|
||||
* 支付方式
|
||||
*/
|
||||
payType?: number;
|
||||
|
||||
/**
|
||||
* 备注
|
||||
*/
|
||||
remark?: string;
|
||||
|
||||
/**
|
||||
* 状态
|
||||
*/
|
||||
state?: number;
|
||||
|
||||
}
|
||||
|
||||
export interface ServerbookingQuery extends PageQuery {
|
||||
/**
|
||||
* 服务id
|
||||
*/
|
||||
serverId?: string | number;
|
||||
|
||||
/**
|
||||
* 预约数量
|
||||
*/
|
||||
serverNum?: number;
|
||||
|
||||
/**
|
||||
* 预约类型
|
||||
*/
|
||||
bookingType?: string;
|
||||
|
||||
/**
|
||||
* 服务封面
|
||||
*/
|
||||
serverImg?: string;
|
||||
|
||||
/**
|
||||
* 预约时间
|
||||
*/
|
||||
bookingTime?: string;
|
||||
|
||||
/**
|
||||
* 预约人姓名
|
||||
*/
|
||||
bookingUserNema?: string;
|
||||
|
||||
/**
|
||||
* 预约人电话
|
||||
*/
|
||||
bookingUserPhone?: string;
|
||||
|
||||
/**
|
||||
* 预约价格
|
||||
*/
|
||||
bookingPrice?: number;
|
||||
|
||||
/**
|
||||
* 实付价格
|
||||
*/
|
||||
payPrice?: number;
|
||||
|
||||
/**
|
||||
* 支付方式
|
||||
*/
|
||||
payType?: number;
|
||||
|
||||
/**
|
||||
* 状态
|
||||
*/
|
||||
state?: number;
|
||||
|
||||
/**
|
||||
* 日期范围参数
|
||||
*/
|
||||
params?: any;
|
||||
}
|
Reference in New Issue
Block a user