@@ -17,6 +17,7 @@ namespace IRaCIS.Core.Application.ViewModel
|
||||
|
||||
public string? ActionUserName { get; set; }
|
||||
|
||||
public string ActionUserRoleShortName { get; set; }
|
||||
|
||||
public DateTime CreateTime { get; set; }
|
||||
public Guid CreateUserId { get; set; }
|
||||
|
||||
@@ -1130,7 +1130,7 @@ namespace IRaCIS.Core.Application.Service
|
||||
IsZhiZhun = t.IdentityUser.IsZhiZhun,
|
||||
FullName = t.IdentityUser.FullName,
|
||||
PermissionStr = t.UserTypeRole.PermissionStr,
|
||||
UserName = t.UserName,
|
||||
UserName = t.IdentityUser.UserName,
|
||||
UserTypeShortName = t.UserTypeRole.UserTypeShortName,
|
||||
}).FirstOrDefaultAsync();
|
||||
|
||||
|
||||
@@ -123,6 +123,7 @@ namespace IRaCIS.Core.Application.Service
|
||||
|
||||
|
||||
CreateMap<UserLog, UserLogView>()
|
||||
.ForMember(d => d.ActionUserRoleShortName, c => c.MapFrom(t => t.CreateUserRole.UserTypeRole.UserTypeShortName))
|
||||
.ForMember(d => d.TargetIdentityUserName, c => c.MapFrom(t => t.TargetIdentityUser.UserName));
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user