using SqlSugar;
namespace DorisTest
{
///
/// 日志记录表
///
[SugarTable("LogEntity111")]
public class LogEntity
{
///
/// 主键
///
[SugarColumn(IsPrimaryKey = true)]
public long Id { get; set; }
///
/// 地址
///
[SugarColumn(IsNullable = true)]
public string? Url { get; set; }
///
/// 方法
///
[SugarColumn(IsNullable = true)]
public string? Method { get; set; }
///
/// 数据-请求体
///
[SugarColumn(IsNullable = true)]
public string? Data { get; set; }
///
/// 数据-返回(包括异常信息)
///
[SugarColumn(IsNullable = true)]
public string? RsData { get; set; }
///
/// 是否成功
///
[SugarColumn(IsNullable = true)]
public bool? IsSuccess { get; set; }
///
/// Header
///
[SugarColumn(IsNullable = true, IsJson = true )]
public Dictionary Header { get; set; }
///
/// Token
///
[SugarColumn(IsNullable = true)]
public string? Token { get; set; }
///
/// 客户端ip
///
[SugarColumn(IsNullable = true)]
public string ClientHost { get; set; }
///
/// 应用标识
///
[SugarColumn(IsNullable = true)]
public string? AppId { get; set; }
///
/// 应用的Ip
///
[SugarColumn(IsNullable = true)]
public string? AppHost { get; set; }
///
/// 持续时长
///
[SugarColumn(IsNullable = true)]
public int? RunTime { get; set; }
///
/// 创建时间
///
public DateTime /*long*/ CreateTime { get; set; }
public LogEntity()
{
CreateTime = DateTime.Now;
//CreateTime = DateTime.Now.ToFileTimeUtc();
}
}
}