62 lines
1.8 KiB
TypeScript
62 lines
1.8 KiB
TypeScript
|
import type { AlarmEventAttachmentsVO, AlarmEventAttachmentsForm, AlarmEventAttachmentsQuery } 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 alarmEventAttachmentsList(params?: AlarmEventAttachmentsQuery) {
|
||
|
return requestClient.get<PageResult<AlarmEventAttachmentsVO>>('/sis/alarmEventAttachments/list', { params });
|
||
|
}
|
||
|
|
||
|
/**
|
||
|
* 导出【请填写功能名称】列表
|
||
|
* @param params
|
||
|
* @returns 【请填写功能名称】列表
|
||
|
*/
|
||
|
export function alarmEventAttachmentsExport(params?: AlarmEventAttachmentsQuery) {
|
||
|
return commonExport('/sis/alarmEventAttachments/export', params ?? {});
|
||
|
}
|
||
|
|
||
|
/**
|
||
|
* 查询【请填写功能名称】详情
|
||
|
* @param id id
|
||
|
* @returns 【请填写功能名称】详情
|
||
|
*/
|
||
|
export function alarmEventAttachmentsInfo(id: ID) {
|
||
|
return requestClient.get<AlarmEventAttachmentsVO>(`/sis/alarmEventAttachments/${id}`);
|
||
|
}
|
||
|
|
||
|
/**
|
||
|
* 新增【请填写功能名称】
|
||
|
* @param data
|
||
|
* @returns void
|
||
|
*/
|
||
|
export function alarmEventAttachmentsAdd(data: AlarmEventAttachmentsForm) {
|
||
|
return requestClient.postWithMsg<void>('/sis/alarmEventAttachments', data);
|
||
|
}
|
||
|
|
||
|
/**
|
||
|
* 更新【请填写功能名称】
|
||
|
* @param data
|
||
|
* @returns void
|
||
|
*/
|
||
|
export function alarmEventAttachmentsUpdate(data: AlarmEventAttachmentsForm) {
|
||
|
return requestClient.putWithMsg<void>('/sis/alarmEventAttachments', data);
|
||
|
}
|
||
|
|
||
|
/**
|
||
|
* 删除【请填写功能名称】
|
||
|
* @param id id
|
||
|
* @returns void
|
||
|
*/
|
||
|
export function alarmEventAttachmentsRemove(id: ID | IDS) {
|
||
|
return requestClient.deleteWithMsg<void>(`/sis/alarmEventAttachments/${id}`);
|
||
|
}
|