This commit is contained in:
2025-04-08 16:52:10 +08:00
parent 13f8747e6d
commit fde99b1352

View File

@@ -1,4 +1,5 @@
using Dlhis.Entity.Common.Enums;
using Kurisu.AspNetCore.DataAccess.Entity;
using Kurisu.AspNetCore.DataAccess.SqlSugar;
using SqlSugar;
using SqlSugar.DbConvert;
@@ -6,7 +7,7 @@ using SqlSugar.DbConvert;
namespace Dlhis.Entity.Common.Entities;
[SugarTable(TableName = "OperateLogs", TableDescription = "操作日志")]
public class OperateLogEntity : SugarBaseEntity
public class OperateLogEntity : SugarBaseEntity, ITenantId
{
[SugarColumn(IsNullable = false, ColumnDataType = "varchar(50)", SqlParameterDbType = typeof(EnumToStringConvert))]
public OperateLogType Type { get; set; }
@@ -14,8 +15,11 @@ public class OperateLogEntity : SugarBaseEntity
[SugarColumn(IsNullable = false, ColumnDataType = "text")]
public string Content { get; set; }
[SugarColumn(IsNullable = true)]
public string Operator { get; set; }
/// <inheritdoc />
public string TenantId { get; set; }
}