56 lines
1.6 KiB
C#
56 lines
1.6 KiB
C#
|
|
using Newtonsoft.Json;
|
|||
|
|
using SqlSugar;
|
|||
|
|
|
|||
|
|
namespace LY.App.Model
|
|||
|
|
{
|
|||
|
|
[SugarTable("ly_white_list")]
|
|||
|
|
public class Whitelist : BaseEntity
|
|||
|
|
{
|
|||
|
|
/// <summary>
|
|||
|
|
/// 设备序列号
|
|||
|
|
/// </summary>
|
|||
|
|
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; }
|
|||
|
|
[JsonConverter(typeof(ValueToStringConverter))]
|
|||
|
|
[SugarColumn(ColumnName = "position_id", ColumnDescription = "阵地id")]
|
|||
|
|
public long positionId { get; set; }
|
|||
|
|
public string positionName { get; set; }
|
|||
|
|
}
|
|||
|
|
public class AddWhitelist
|
|||
|
|
{
|
|||
|
|
/// <summary>
|
|||
|
|
/// 设备序列号
|
|||
|
|
/// </summary>
|
|||
|
|
public string sn { get; set; }
|
|||
|
|
/// <summary>
|
|||
|
|
/// 是否全天
|
|||
|
|
/// </summary>
|
|||
|
|
public bool allDay { get; set; }
|
|||
|
|
/// <summary>
|
|||
|
|
/// 开始时间
|
|||
|
|
/// </summary>
|
|||
|
|
public DateTime? startTime { get; set; }
|
|||
|
|
/// <summary>
|
|||
|
|
/// 结束时间
|
|||
|
|
/// </summary>
|
|||
|
|
public DateTime? endTime { get; set; }
|
|||
|
|
/// <summary>
|
|||
|
|
/// 阵地id
|
|||
|
|
/// </summary>
|
|||
|
|
public long positionId { get; set; }
|
|||
|
|
/// <summary>
|
|||
|
|
/// 阵地名称
|
|||
|
|
/// </summary>
|
|||
|
|
public string positionName { get; set; }
|
|||
|
|
}
|
|||
|
|
public class UpdateWhitelist : AddWhitelist
|
|||
|
|
{
|
|||
|
|
public long id { get; set; }
|
|||
|
|
}
|
|||
|
|
}
|