From fde99b1352d44489f313c28c10e9eba2bff28236 Mon Sep 17 00:00:00 2001 From: liguoyang Date: Tue, 8 Apr 2025 16:52:10 +0800 Subject: [PATCH] add . --- Src/Dlhis.Entity/Common/Entities/OperateLogEntity.cs | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/Src/Dlhis.Entity/Common/Entities/OperateLogEntity.cs b/Src/Dlhis.Entity/Common/Entities/OperateLogEntity.cs index 9844134d..f50b9354 100644 --- a/Src/Dlhis.Entity/Common/Entities/OperateLogEntity.cs +++ b/Src/Dlhis.Entity/Common/Entities/OperateLogEntity.cs @@ -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; } + + /// + public string TenantId { get; set; } } \ No newline at end of file