perf:【IoT 物联网】场景联动告警告警恢复需要选择告警配置

This commit is contained in:
puhui999
2025-07-05 22:05:44 +08:00
parent d0c8efdff8
commit 52827ca78a
3 changed files with 69 additions and 139 deletions

View File

@@ -94,20 +94,12 @@ interface ActionDeviceControl {
data: Record<string, any> // 具体数据
}
// 告警执行配置
interface ActionAlert {
receiveType: number // 接收方式
phoneNumbers?: string[] // 手机号列表
emails?: string[] // 邮箱列表
content: string // 通知内容
}
// 执行器配置
interface ActionConfig {
key: any // 解决组件索引重用 TODO @puhui999看看有没更好的解决方案呢。
type: number // 执行类型
deviceControl?: ActionDeviceControl // 设备控制
alert?: ActionAlert // 告警执行
alertConfigId?: number // 告警配置ID告警恢复时需要
}
// 主接口
@@ -127,7 +119,6 @@ export {
TriggerConditionParameter,
ActionConfig,
ActionDeviceControl,
ActionAlert,
IotRuleSceneTriggerTypeEnum,
IotRuleSceneActionTypeEnum,
IotDeviceMessageTypeEnum,