This commit is contained in:
2025-06-24 11:11:56 +08:00
parent 96a9234239
commit 053a6d4f69
13 changed files with 799 additions and 13 deletions

View File

@@ -0,0 +1,61 @@
import type { BookingVO, BookingForm, BookingQuery } 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 bookingList(params?: BookingQuery) {
return requestClient.get<PageResult<BookingVO>>('/property/booking/list', { params });
}
/**
* 导出会议预约列表
* @param params
* @returns 会议预约列表
*/
export function bookingExport(params?: BookingQuery) {
return commonExport('/property/booking/export', params ?? {});
}
/**
* 查询会议预约详情
* @param id id
* @returns 会议预约详情
*/
export function bookingInfo(id: ID) {
return requestClient.get<BookingVO>(`/property/booking/${id}`);
}
/**
* 新增会议预约
* @param data
* @returns void
*/
export function bookingAdd(data: BookingForm) {
return requestClient.postWithMsg<void>('/property/booking', data);
}
/**
* 更新会议预约
* @param data
* @returns void
*/
export function bookingUpdate(data: BookingForm) {
return requestClient.putWithMsg<void>('/property/booking', data);
}
/**
* 删除会议预约
* @param id id
* @returns void
*/
export function bookingRemove(id: ID | IDS) {
return requestClient.deleteWithMsg<void>(`/property/booking/${id}`);
}

View File

@@ -0,0 +1,224 @@
import type { PageQuery, BaseEntity } from '#/api/common';
export interface BookingVO {
/**
* 主键
*/
id: string | number;
/**
* 会议室名称
*/
name: string;
/**
* 会议室id
*/
meetId: string | number;
/**
* 会议室地址
*/
meetLocation: string;
/**
* 所属单位
*/
unit: string;
/**
* 预定人
*/
person: string;
/**
* 联系方式
*/
phone: string;
/**
* 预定开始时间
*/
scheduledStarttime: string;
/**
* 预定结束时间
*/
scheduledEndtime: string;
/**
* 参会人数
*/
personSum: number;
/**
* 费用
*/
price: number;
/**
* 是否包含增值服务
*/
attach: number;
/**
* 支付状态
*/
payState: number;
/**
* 状态
*/
state: number;
/**
* 创建时间
*/
createTime: string;
}
export interface BookingForm extends BaseEntity {
/**
* 主键
*/
id?: string | number;
/**
* 会议室名称
*/
name?: string;
/**
* 会议室id
*/
meetId?: string | number;
/**
* 会议室地址
*/
meetLocation?: string;
/**
* 所属单位
*/
unit?: string;
/**
* 预定人
*/
person?: string;
/**
* 联系方式
*/
phone?: string;
/**
* 预定开始时间
*/
scheduledStarttime?: string;
/**
* 预定结束时间
*/
scheduledEndtime?: string;
/**
* 参会人数
*/
personSum?: number;
/**
* 费用
*/
price?: number;
/**
* 是否包含增值服务
*/
attach?: number;
/**
* 支付状态
*/
payState?: number;
/**
* 状态
*/
state?: number;
}
export interface BookingQuery extends PageQuery {
/**
* 会议室名称
*/
name?: string;
/**
* 会议室id
*/
meetId?: string | number;
/**
* 会议室地址
*/
meetLocation?: string;
/**
* 所属单位
*/
unit?: string;
/**
* 预定人
*/
person?: string;
/**
* 联系方式
*/
phone?: string;
/**
* 预定开始时间
*/
scheduledStarttime?: string;
/**
* 预定结束时间
*/
scheduledEndtime?: string;
/**
* 参会人数
*/
personSum?: number;
/**
* 费用
*/
price?: number;
/**
* 是否包含增值服务
*/
attach?: number;
/**
* 支付状态
*/
payState?: number;
/**
* 状态
*/
state?: number;
/**
* 日期范围参数
*/
params?: any;
}