refactor: 格式化代码消除警告信息
This commit is contained in:
parent
7ce614554f
commit
09de55a641
|
@ -19,21 +19,23 @@ public class Dict
|
||||||
/// </summary>
|
/// </summary>
|
||||||
[Required(ErrorMessage = "{0}不可为空")]
|
[Required(ErrorMessage = "{0}不可为空")]
|
||||||
[Display(Name = "字典标签")]
|
[Display(Name = "字典标签")]
|
||||||
public string Category { get; set; } = "";
|
public string? Category { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 获得/设置 字典名称
|
/// 获得/设置 字典名称
|
||||||
/// </summary>
|
/// </summary>
|
||||||
[Required(ErrorMessage = "{0}不可为空")]
|
[Required(ErrorMessage = "{0}不可为空")]
|
||||||
[Display(Name = "字典名称")]
|
[Display(Name = "字典名称")]
|
||||||
public string Name { get; set; } = "";
|
[NotNull]
|
||||||
|
public string? Name { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 获得/设置 字典字典值
|
/// 获得/设置 字典字典值
|
||||||
/// </summary>
|
/// </summary>
|
||||||
[Required(ErrorMessage = "{0}不可为空")]
|
[Required(ErrorMessage = "{0}不可为空")]
|
||||||
[Display(Name = "字典代码")]
|
[Display(Name = "字典代码")]
|
||||||
public string Code { get; set; } = "";
|
[NotNull]
|
||||||
|
public string? Code { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 获得/设置 字典定义值 0 表示系统使用,1 表示用户自定义 默认为 1
|
/// 获得/设置 字典定义值 0 表示系统使用,1 表示用户自定义 默认为 1
|
||||||
|
|
|
@ -16,7 +16,8 @@ public class LoginLog
|
||||||
/// 获得/设置 用户名
|
/// 获得/设置 用户名
|
||||||
/// </summary>
|
/// </summary>
|
||||||
[DisplayName("登录名称")]
|
[DisplayName("登录名称")]
|
||||||
public string UserName { get; set; } = "";
|
[NotNull]
|
||||||
|
public string? UserName { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 获得/设置 登录时间
|
/// 获得/设置 登录时间
|
||||||
|
@ -28,35 +29,41 @@ public class LoginLog
|
||||||
/// 获得/设置 登录IP地址
|
/// 获得/设置 登录IP地址
|
||||||
/// </summary>
|
/// </summary>
|
||||||
[DisplayName("主机")]
|
[DisplayName("主机")]
|
||||||
public string Ip { get; set; } = "";
|
[NotNull]
|
||||||
|
public string? Ip { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 获得/设置 登录浏览器
|
/// 获得/设置 登录浏览器
|
||||||
/// </summary>
|
/// </summary>
|
||||||
[DisplayName("浏览器")]
|
[DisplayName("浏览器")]
|
||||||
public string Browser { get; set; } = "";
|
[NotNull]
|
||||||
|
public string? Browser { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 获得/设置 登录操作系统
|
/// 获得/设置 登录操作系统
|
||||||
/// </summary>
|
/// </summary>
|
||||||
[DisplayName("操作系统")]
|
[DisplayName("操作系统")]
|
||||||
public string OS { get; set; } = "";
|
[NotNull]
|
||||||
|
public string? OS { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 获得/设置 登录地点
|
/// 获得/设置 登录地点
|
||||||
/// </summary>
|
/// </summary>
|
||||||
[DisplayName("登录地点")]
|
[DisplayName("登录地点")]
|
||||||
public string City { get; set; } = "";
|
[NotNull]
|
||||||
|
public string? City { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 获得/设置 登录是否成功
|
/// 获得/设置 登录是否成功
|
||||||
/// </summary>
|
/// </summary>
|
||||||
[DisplayName("登录结果")]
|
[DisplayName("登录结果")]
|
||||||
public string Result { get; set; } = "";
|
[NotNull]
|
||||||
|
public string? Result { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 获得/设置 用户 UserAgent
|
/// 获得/设置 用户 UserAgent
|
||||||
/// </summary>
|
/// </summary>
|
||||||
[DisplayName("登录名称")]
|
[DisplayName("登录名称")]
|
||||||
public string UserAgent { get; set; } = "";
|
[NotNull]
|
||||||
|
public string? UserAgent { get; set; }
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue