新增多个功能模块

This commit is contained in:
2025-06-23 09:27:28 +08:00
parent c783f365c8
commit 255481861a
66 changed files with 8555 additions and 6 deletions

View File

@@ -0,0 +1,61 @@
import type { MeetbookingVO, MeetbookingForm, MeetbookingQuery } 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 meetbookingList(params?: MeetbookingQuery) {
return requestClient.get<PageResult<MeetbookingVO>>('/property/meetbooking/list', { params });
}
/**
* 导出会议预约列表
* @param params
* @returns 会议预约列表
*/
export function meetbookingExport(params?: MeetbookingQuery) {
return commonExport('/property/meetbooking/export', params ?? {});
}
/**
* 查询会议预约详情
* @param id id
* @returns 会议预约详情
*/
export function meetbookingInfo(id: ID) {
return requestClient.get<MeetbookingVO>(`/property/meetbooking/${id}`);
}
/**
* 新增会议预约
* @param data
* @returns void
*/
export function meetbookingAdd(data: MeetbookingForm) {
return requestClient.postWithMsg<void>('/property/meetbooking', data);
}
/**
* 更新会议预约
* @param data
* @returns void
*/
export function meetbookingUpdate(data: MeetbookingForm) {
return requestClient.putWithMsg<void>('/property/meetbooking', data);
}
/**
* 删除会议预约
* @param id id
* @returns void
*/
export function meetbookingRemove(id: ID | IDS) {
return requestClient.deleteWithMsg<void>(`/property/meetbooking/${id}`);
}

View File

@@ -0,0 +1,224 @@
import type { PageQuery, BaseEntity } from '#/api/common';
export interface MeetbookingVO {
/**
* 主键
*/
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 MeetbookingForm 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 MeetbookingQuery 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;
}