using SqlSugar; namespace Model.Entity.Inspection { /// /// 告警通知渠道(飞书/钉钉/企微 Webhook 机器人配置) /// public class AlertNotifyChannelEntity : BaseEntity { /// /// 渠道类型(1飞书/2钉钉/3企微) /// [SugarColumn(ColumnDescription = "渠道类型")] public NotifyChannelTypeEnum ChannelType { get; set; } /// /// 渠道名称(如:设备告警-研发飞书群) /// [SugarColumn(ColumnDescription = "渠道名称", Length = 100)] public string Name { get; set; } /// /// Webhook 地址 /// [SugarColumn(ColumnDescription = "Webhook地址", Length = 500)] public string WebhookUrl { get; set; } /// /// 加签密钥(钉钉/飞书机器人开启加签时填写,企微机器人无此项) /// [SugarColumn(ColumnDescription = "加签密钥", Length = 200, IsNullable = true)] public string Secret { get; set; } /// /// 推送模式(1直连推送/2Outbox跨网中转) /// [SugarColumn(ColumnDescription = "推送模式")] public NotifyPushModeEnum PushMode { get; set; } = NotifyPushModeEnum.Direct; /// /// 是否启用 /// [SugarColumn(ColumnDescription = "是否启用")] public bool IsEnabled { get; set; } = true; /// /// 备注 /// [SugarColumn(ColumnDescription = "备注", Length = 500, IsNullable = true)] public string Remark { get; set; } } }