Просмотр исходного кода

😒调整日志相关表字段可空

zuohuaijun 3 лет назад
Родитель
Сommit
42e4cba251

+ 1 - 1
Admin.NET/Admin.NET.Core/Entity/SysLogDiff.cs

@@ -47,5 +47,5 @@ public class SysLogDiff : EntityBase
     /// 耗时
     /// </summary>
     [SugarColumn(ColumnDescription = "耗时")]
-    public long Elapsed { get; set; }
+    public long? Elapsed { get; set; }
 }

+ 2 - 2
Admin.NET/Admin.NET.Core/Entity/SysLogOp.cs

@@ -12,13 +12,13 @@ public class SysLogOp : SysLogVis
     /// </summary>
     [SugarColumn(ColumnDescription = "请求方式", Length = 32)]
     [MaxLength(32)]
-    public string HttpMethod { get; set; }
+    public string? HttpMethod { get; set; }
 
     /// <summary>
     /// 请求地址
     /// </summary>
     [SugarColumn(ColumnDescription = "请求地址", ColumnDataType = StaticConfig.CodeFirst_BigString)]
-    public string RequestUrl { get; set; }
+    public string? RequestUrl { get; set; }
 
     /// <summary>
     /// 请求参数

+ 6 - 6
Admin.NET/Admin.NET.Core/Entity/SysLogVis.cs

@@ -12,28 +12,28 @@ public class SysLogVis : EntityTenant
     /// </summary>
     [SugarColumn(ColumnDescription = "模块名称", Length = 256)]
     [MaxLength(256)]
-    public string ControllerName { get; set; }
+    public string? ControllerName { get; set; }
 
     /// <summary>
     /// 方法名称
     ///</summary>
     [SugarColumn(ColumnDescription = "方法名称", Length = 256)]
     [MaxLength(256)]
-    public string ActionName { get; set; }
+    public string? ActionName { get; set; }
 
     /// <summary>
     /// 显示名称
     ///</summary>
     [SugarColumn(ColumnDescription = "显示名称", Length = 256)]
     [MaxLength(256)]
-    public string DisplayTitle { get; set; }
+    public string? DisplayTitle { get; set; }
 
     /// <summary>
     /// 执行状态
     /// </summary>
     [SugarColumn(ColumnDescription = "执行状态", Length = 32)]
     [MaxLength(32)]
-    public string Status { get; set; }
+    public string? Status { get; set; }
 
     /// <summary>
     /// IP地址
@@ -79,13 +79,13 @@ public class SysLogVis : EntityTenant
     /// 操作用时
     /// </summary>
     [SugarColumn(ColumnDescription = "操作用时")]
-    public long Elapsed { get; set; }
+    public long? Elapsed { get; set; }
 
     /// <summary>
     /// 日志时间
     /// </summary>
     [SugarColumn(ColumnDescription = "日志时间")]
-    public DateTime LogDateTime { get; set; }
+    public DateTime? LogDateTime { get; set; }
 
     /// <summary>
     /// 账号