62 lines
1.5 KiB
TypeScript
62 lines
1.5 KiB
TypeScript
|
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 });
|
||
|
}
|
||
|
|
||
|
/**
|
||
|
* 导出会议室增值服务列表
|
||
|
* @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}`);
|
||
|
}
|