admin-vben5/apps/web-antd/src/api/property/roomBooking/conferenceAddServices/index.ts

65 lines
1.6 KiB
TypeScript
Raw Normal View History

2025-06-23 09:27:28 +08:00
import type { AttachVO, AttachForm, AttachQuery } 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 attachList(params?: AttachQuery) {
return requestClient.get<PageResult<AttachVO>>('/property/attach/list', { params });
}
2025-07-08 17:33:42 +08:00
export function attachListAll() {
2025-07-09 10:36:42 +08:00
return requestClient.get<AttachVO[]>('/property/attach/attachList', );
2025-07-08 17:33:42 +08:00
}
2025-06-23 09:27:28 +08:00
/**
*
* @param params
* @returns
*/
export function attachExport(params?: AttachQuery) {
return commonExport('/property/attach/export', params ?? {});
}
/**
*
* @param id id
* @returns
*/
export function attachInfo(id: ID) {
return requestClient.get<AttachVO>(`/property/attach/${id}`);
}
/**
*
* @param data
* @returns void
*/
export function attachAdd(data: AttachForm) {
return requestClient.postWithMsg<void>('/property/attach', data);
}
/**
*
* @param data
* @returns void
*/
export function attachUpdate(data: AttachForm) {
return requestClient.putWithMsg<void>('/property/attach', data);
}
/**
*
* @param id id
* @returns void
*/
export function attachRemove(id: ID | IDS) {
return requestClient.deleteWithMsg<void>(`/property/attach/${id}`);
}