From a3b52dc9ffc10f4272090d7cd36496e816fe77d3 Mon Sep 17 00:00:00 2001 From: hang <872297557@qq.com> Date: Thu, 13 Jul 2023 14:07:13 +0800 Subject: [PATCH] =?UTF-8?q?hang-=E7=94=A8=E6=88=B7=E7=99=BB=E5=BD=95?= =?UTF-8?q?=E6=97=A5=E5=BF=97=20-04?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Service/Management/DTO/UserLogViewModel.cs | 15 +++++++++++---- IRaCIS.Core.Domain/Management/UserLog.cs | 2 +- 2 files changed, 12 insertions(+), 5 deletions(-) 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; }