using Newtonsoft.Json.Converters;
using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace DI_Electrical.Models
{
public class ec_wire_group_log
{
public ec_wire_group_log()
{
}
public ec_wire_group_log(Action OperateType, string WireGroupID)
{
this.OperateType = OperateType;
this.WireGroupID = WireGroupID;
}
///
///
///
///
///
/// 因为的关系,所以时间是有值的
public ec_wire_group_log(Action OperateType, string WireGroupID, DateTime? createtime)
{
this.OperateType = OperateType;
this.WireGroupID = WireGroupID;
if (createtime != null)
{
this.CreateTime = createtime;
}
}
#region 实体成员
///
/// 操作日志ID
///
///
public string WireGroupLogID { get; set; }
///
/// 信号ID
///
///
public string WireGroupID { get; set; }
///
/// 操作类型
///
///
[JsonConverter(typeof(StringEnumConverter))]
public Action OperateType { get; set; }
///
/// 备注
///
///
public string ExtraMsg { get; set; }
///
/// 创建人
///
///
public string CreateUserID { get; set; }
///
/// 创建时间
///
///
public DateTime? CreateTime { get; set; }
///
/// 更新人
///
///
public string UpdateUserID { get; set; }
///
/// 更新时间
///
///
public DateTime? UpdateTime { get; set; }
#endregion
#region 扩展字段
///
/// 创建人名称
///
///
public string CreateUserName { get; set; }
#endregion
}
}