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