using SqlSugar; using SqlSugar.DbConvert; using Microsoft.Extensions.Logging; using Kurisu.SqlSugar; namespace Dlhis.Entity.Common; /// /// api日志表 /// [SugarTable(TableName = "Logs", TableDescription = "api日志表")] public class ApiLogEntity : SugarBaseEntity { /// /// 时间 /// [SugarColumn(ColumnDescription = "时间")] public string Timestamp { get; set; } /// /// 级别 /// [SugarColumn(ColumnDescription = "级别", SqlParameterDbType = typeof(EnumToStringConvert))] public LogLevel Level { get; set; } /// /// 模板 /// [SugarColumn(ColumnDescription = "模板")] public string Template { get; set; } /// /// 消息内容 /// [SugarColumn(ColumnDescription = "消息内容")] public string Message { get; set; } /// /// 异常内容 /// [SugarColumn(ColumnDescription = "异常内容")] public string Exception { get; set; } /// /// 属性 /// [SugarColumn(ColumnDescription = "属性")] public string Properties { get; set; } /// /// 时间 /// [SugarColumn(ColumnDescription = "时间")] public DateTime _ts { get; set; } }