Some checks are pending
Gitea Actions Demo / Explore-Gitea-Actions (push) Waiting to run
160 lines
2.3 KiB
TypeScript
160 lines
2.3 KiB
TypeScript
import type { PageQuery, BaseEntity } from '#/api/common';
|
||
|
||
export interface AlarmEventsVO {
|
||
/**
|
||
* 报警记录ID
|
||
*/
|
||
id: string | number;
|
||
|
||
/**
|
||
* 报警事件类型
|
||
*/
|
||
type: number;
|
||
|
||
/**
|
||
* 报警记录级别(1:一般,2:中级,3:紧急)
|
||
*/
|
||
level: number;
|
||
|
||
/**
|
||
* 报警设备ip
|
||
*/
|
||
deviceIp: string;
|
||
|
||
/**
|
||
* 报警设备名称
|
||
*/
|
||
deviceName: string;
|
||
|
||
/**
|
||
* 设备所属区域id
|
||
*/
|
||
deviceGroupId: string | number;
|
||
|
||
/**
|
||
* 设备所属区域名称
|
||
*/
|
||
deviceGroupName: string;
|
||
|
||
/**
|
||
* 设备告警时间
|
||
*/
|
||
reportTime: string;
|
||
|
||
/**
|
||
* 1:未处理,2:已处理-忽略,3:已处理-生成工单
|
||
*/
|
||
state: number;
|
||
|
||
/**
|
||
* 工单id,需要state=3才会写入
|
||
*/
|
||
workOrderId: string | number;
|
||
|
||
}
|
||
|
||
export interface AlarmEventsForm extends BaseEntity {
|
||
/**
|
||
* 报警记录ID
|
||
*/
|
||
id?: string | number;
|
||
|
||
/**
|
||
* 报警事件类型
|
||
*/
|
||
type?: number;
|
||
|
||
/**
|
||
* 报警记录级别(1:一般,2:中级,3:紧急)
|
||
*/
|
||
level?: number;
|
||
|
||
/**
|
||
* 报警设备ip
|
||
*/
|
||
deviceIp?: string;
|
||
|
||
/**
|
||
* 报警设备名称
|
||
*/
|
||
deviceName?: string;
|
||
|
||
/**
|
||
* 设备所属区域id
|
||
*/
|
||
deviceGroupId?: string | number;
|
||
|
||
/**
|
||
* 设备所属区域名称
|
||
*/
|
||
deviceGroupName?: string;
|
||
|
||
/**
|
||
* 设备告警时间
|
||
*/
|
||
reportTime?: string;
|
||
|
||
/**
|
||
* 1:未处理,2:已处理-忽略,3:已处理-生成工单
|
||
*/
|
||
state?: number;
|
||
|
||
/**
|
||
* 工单id,需要state=3才会写入
|
||
*/
|
||
workOrderId?: string | number;
|
||
|
||
}
|
||
|
||
export interface AlarmEventsQuery extends PageQuery {
|
||
/**
|
||
* 报警事件类型
|
||
*/
|
||
type?: number;
|
||
|
||
/**
|
||
* 报警记录级别(1:一般,2:中级,3:紧急)
|
||
*/
|
||
level?: number;
|
||
|
||
/**
|
||
* 报警设备ip
|
||
*/
|
||
deviceIp?: string;
|
||
|
||
/**
|
||
* 报警设备名称
|
||
*/
|
||
deviceName?: string;
|
||
|
||
/**
|
||
* 设备所属区域id
|
||
*/
|
||
deviceGroupId?: string | number;
|
||
|
||
/**
|
||
* 设备所属区域名称
|
||
*/
|
||
deviceGroupName?: string;
|
||
|
||
/**
|
||
* 设备告警时间
|
||
*/
|
||
reportTime?: string;
|
||
|
||
/**
|
||
* 1:未处理,2:已处理-忽略,3:已处理-生成工单
|
||
*/
|
||
state?: number;
|
||
|
||
/**
|
||
* 工单id,需要state=3才会写入
|
||
*/
|
||
workOrderId?: string | number;
|
||
|
||
/**
|
||
* 日期范围参数
|
||
*/
|
||
params?: any;
|
||
}
|