using SqlSugar; using System; namespace Model.Entity.Inspection { /// /// 数据转发规则(配置数据转发规则,支持通过消息通知的方式定时转发数据) /// public class DataForwardRuleEntity : BaseEntity { /// /// 转发规则名称 /// [SugarColumn(ColumnDescription = "转发规则名称", Length = 100)] public string ForwardName { get; set; } /// /// 源设备类型(空表示全部设备,如 TemperatureBox 温度箱) /// [SugarColumn(ColumnDescription = "源设备类型", Length = 64, IsNullable = true)] public string SourceDeviceType { get; set; } /// /// 转发间隔(秒) /// [SugarColumn(ColumnDescription = "转发间隔(秒)")] public int ForwardInterval { get; set; } = 60; /// /// 通知方式(Email 邮件 / Sms 短信 / Http 接口推送) /// [SugarColumn(ColumnDescription = "通知方式", Length = 32)] public string NotifyType { get; set; } /// /// 目标地址(邮箱 / 手机号 / 接口URL) /// [SugarColumn(ColumnDescription = "目标地址", Length = 200)] public string TargetAddress { get; set; } /// /// 是否启用 /// [SugarColumn(ColumnDescription = "是否启用")] public bool Enabled { get; set; } = true; /// /// 最近转发时间(系统统计) /// [SugarColumn(ColumnDescription = "最近转发时间", IsNullable = true)] public DateTime? LastForwardTime { get; set; } /// /// 备注 /// [SugarColumn(ColumnDescription = "备注", Length = 500, IsNullable = true)] public string Remark { get; set; } } }