2025-07-09 18:18:48 +08:00
|
|
|
import type { RoomBookingVO, RoomBookingForm, RoomBookingQuery,GetMeetNameVO } from './model';
|
2025-06-18 11:03:42 +08:00
|
|
|
|
|
|
|
import type { ID, IDS } from '#/api/common';
|
|
|
|
import type { PageResult } from '#/api/common';
|
|
|
|
|
|
|
|
import { commonExport } from '#/api/helper';
|
|
|
|
import { requestClient } from '#/api/request';
|
|
|
|
|
2025-07-09 18:18:48 +08:00
|
|
|
/**
|
|
|
|
* 查询会议室名称列表
|
|
|
|
* @param getMeetName 后端约定传'getMeetName'
|
|
|
|
* @returns 会议室名称列表
|
|
|
|
*/
|
|
|
|
export function getMeetName() {
|
|
|
|
return requestClient.get<PageResult<GetMeetNameVO>>(`/property/enum-fetcher/enum-values/${'getMeetName'}`);
|
|
|
|
}
|
|
|
|
|
2025-06-18 11:03:42 +08:00
|
|
|
/**
|
|
|
|
* 查询会议管理列表
|
|
|
|
* @param params
|
|
|
|
* @returns 会议管理列表
|
|
|
|
*/
|
|
|
|
export function roomBookingList(params?: RoomBookingQuery) {
|
|
|
|
return requestClient.get<PageResult<RoomBookingVO>>('/property/roomBooking/list', { params });
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* 导出会议管理列表
|
|
|
|
* @param params
|
|
|
|
* @returns 会议管理列表
|
|
|
|
*/
|
|
|
|
export function roomBookingExport(params?: RoomBookingQuery) {
|
|
|
|
return commonExport('/property/roomBooking/export', params ?? {});
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* 查询会议管理详情
|
|
|
|
* @param id id
|
|
|
|
* @returns 会议管理详情
|
|
|
|
*/
|
|
|
|
export function roomBookingInfo(id: ID) {
|
|
|
|
return requestClient.get<RoomBookingVO>(`/property/roomBooking/${id}`);
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* 新增会议管理
|
|
|
|
* @param data
|
|
|
|
* @returns void
|
|
|
|
*/
|
|
|
|
export function roomBookingAdd(data: RoomBookingForm) {
|
|
|
|
return requestClient.postWithMsg<void>('/property/roomBooking', data);
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* 更新会议管理
|
|
|
|
* @param data
|
|
|
|
* @returns void
|
|
|
|
*/
|
|
|
|
export function roomBookingUpdate(data: RoomBookingForm) {
|
|
|
|
return requestClient.putWithMsg<void>('/property/roomBooking', data);
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* 删除会议管理
|
|
|
|
* @param id id
|
|
|
|
* @returns void
|
|
|
|
*/
|
|
|
|
export function roomBookingRemove(id: ID | IDS) {
|
|
|
|
return requestClient.deleteWithMsg<void>(`/property/roomBooking/${id}`);
|
|
|
|
}
|
2025-07-09 18:18:48 +08:00
|
|
|
/**
|
|
|
|
* 按照日期查询已预约会议预约记录列表
|
|
|
|
* @param params
|
|
|
|
* @returns 会议预约列表
|
|
|
|
*/
|
|
|
|
export function meetbookingAppointmentList(params?: MeetbookingAppointmentQuery) {
|
|
|
|
return requestClient.get<PageResult<MeetbookingVO>>('/property/meetbooking/appointment-list', { params });
|
|
|
|
}
|