using Newtonsoft.Json; using SqlSugar; namespace LY.App.Model { [SugarTable("ly_white_list")] public class Whitelist : BaseEntity { /// /// 设备型号 /// public string model { get; set; } /// /// 设备序列号 /// public string sn { get; set; } [SugarColumn(ColumnName = "all_day", ColumnDescription = "是否全天")] public bool allDay { get; set; } [SugarColumn(IsNullable = true)] public DateTime? startTime { get; set; } [SugarColumn(IsNullable = true)] public DateTime? endTime { get; set; } [SugarColumn(ColumnName = "position_id", ColumnDescription = "阵地id", IsJson = true)] public List positionId { get; set; } [SugarColumn(IsIgnore = true)] public List positionIds { get; set; } /// /// 所属单位 /// public string company { get; set; } /// /// 备注 /// public string mark { get; set; } } public class AddWhitelist { /// /// 设备型号 /// public string model { get; set; } /// /// 设备序列号 /// public string sn { get; set; } /// /// 是否全天 /// public bool allDay { get; set; } /// /// 开始时间 /// public DateTime? startTime { get; set; } /// /// 结束时间 /// public DateTime? endTime { get; set; } /// /// 阵地id /// public List positionId { get; set; } /// /// 所属单位 /// public string company { get; set; } /// /// 备注 /// public string mark { get; set; } } public class UpdateWhitelist : AddWhitelist { public long id { get; set; } } }