fix 优化操作日志

This commit is contained in:
2025-03-04 10:27:20 +08:00
parent 3e0752d852
commit 2f32885663
3 changed files with 33 additions and 12 deletions

View File

@@ -5,17 +5,17 @@ using SqlSugar.DbConvert;
namespace Dlhis.Entity.Common.Entities;
[SugarTable(TableName = "OperateLogs")]
[SugarTable(TableName = "OperateLogs", TableDescription = "操作日志")]
public class OperateLogEntity : SugarBaseEntity
{
[SugarColumn(IsNullable = false, SqlParameterDbType = typeof(EnumToStringConvert))]
[SugarColumn(IsNullable = false, ColumnDataType = "varchar(50)", SqlParameterDbType = typeof(EnumToStringConvert))]
public OperateLogType Type { get; set; }
[SugarColumn(IsNullable = true, ColumnDataType = "text")]
public string Request { get; set; }
[SugarColumn(IsNullable = false, ColumnDataType = "text")]
public string Content { get; set; }
[SugarColumn(IsNullable = false)]
public string Content { get; set; }
public string Operator { get; set; }
}