新增多个功能模块
This commit is contained in:
61
apps/web-antd/src/api/property/meetbooking/index.ts
Normal file
61
apps/web-antd/src/api/property/meetbooking/index.ts
Normal 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}`);
|
||||
}
|
Reference in New Issue
Block a user