diff --git a/IRaCIS.Core.Application/Service/Management/DTO/UserLogViewModel.cs b/IRaCIS.Core.Application/Service/Management/DTO/UserLogViewModel.cs index ac60efbdc..c7d2b37ab 100644 --- a/IRaCIS.Core.Application/Service/Management/DTO/UserLogViewModel.cs +++ b/IRaCIS.Core.Application/Service/Management/DTO/UserLogViewModel.cs @@ -18,15 +18,22 @@ namespace IRaCIS.Core.Application.ViewModel public int OptType { get; set; } - public string LoginUserName { get; set; } + public string? LoginUserName { get; set; } - public UserTypeEnum LoginUserTypeEnum { get; set; } + public UserTypeEnum? LoginUserTypeEnum { get; set; } + + public DateTime CreateTime { get; set; } + public Guid CreateUserId { get; set; } - public string OptUserName { get; set; } + public string? OptUserName { get; set; } - public UserTypeEnum OptUserTypeEnum { get; set; } + public UserTypeEnum? OptUserTypeEnum { get; set; } + + public Guid? LoginUserId { get; set; } + + public Guid? OptUserId { get; set; } } ///UserLogQuery 列表查询参数模型 diff --git a/IRaCIS.Core.Domain/Management/UserLog.cs b/IRaCIS.Core.Domain/Management/UserLog.cs index 3425460d1..6aeb2c909 100644 --- a/IRaCIS.Core.Domain/Management/UserLog.cs +++ b/IRaCIS.Core.Domain/Management/UserLog.cs @@ -19,7 +19,7 @@ namespace IRaCIS.Core.Domain.Models - public string IP { get; set; } + public string IP { get; set; } = string.Empty; public DateTime CreateTime { get; set; }