修改提交
continuous-integration/drone/push Build is passing Details

Uat_IRC_Net8
hang 2024-12-24 17:06:42 +08:00
parent 1badf2610e
commit 89cd31cd03
2 changed files with 19 additions and 8 deletions

View File

@ -218,9 +218,18 @@ namespace IRaCIS.Application.Contracts
}
public class UserAddUserType
public class IdentityUserTypeDTO: UserAddUserType
{
public Guid Id { get; set; }
public string UserTypeShortName { get; set; }
public DateTime CreateTime { get; set; }
public DateTime UpdateTime { get; set; }
}
public class UserAddUserType
{
public UserTypeEnum UserTypeEnum { get; set; }
@ -228,9 +237,7 @@ namespace IRaCIS.Application.Contracts
public bool IsUserRoleDisabled { get; set; }
public DateTime CreateTime { get; set; }
public DateTime UpdateTime { get; set; }
}
public class EditPasswordCommand
@ -286,17 +293,15 @@ namespace IRaCIS.Application.Contracts
public class UserListDTO : UserInfo
{
//public bool CanEditUserType { get; set; }
public DateTime CreateTime { get; set; }
public Guid IdentityUserId { get; set; }
public Guid Id { get; set; }
public string FullName { get; set; }
public List<UserAddUserType> UserRoleList { get; set; }
public List<IdentityUserTypeDTO> UserRoleList { get; set; }
}

View File

@ -154,6 +154,12 @@ namespace IRaCIS.Core.Application.Service
CreateMap<IdentityUser, UserListDTO>();
CreateMap<User, UserAddUserType>();
CreateMap<User, IdentityUserTypeDTO>()
.ForMember(d => d.UserTypeShortName, c => c.MapFrom(t => t.UserTypeRole.UserTypeShortName));
}
}