获取用户详情返回数组
continuous-integration/drone/push Build is passing Details

Test_HIR_Net8
hang 2025-08-21 10:47:40 +08:00
parent 1847e6f76f
commit ce25556a9f
2 changed files with 4 additions and 1 deletions

View File

@ -171,6 +171,8 @@ namespace IRaCIS.Application.Contracts
public Guid Id { get; set; }
public List<UserAccountInfo> AccountList { get; set; }
public List<Guid> HospitalGroupIdList { get; set; }
}
public class UserInfo

View File

@ -73,7 +73,8 @@ namespace IRaCIS.Core.Application.Service
CreateMap<UserType, TrialUserType>()
.ForMember(d => d.UserType, u => u.MapFrom(t => t.UserTypeName));
CreateMap<IdentityUser, UserDetailDTO>();
CreateMap<IdentityUser, UserDetailDTO>()
.ForMember(d => d.HospitalGroupIdList, u => u.MapFrom(s => s.IdentityUserHospitalGroupList.Select(t => t.HospitalGroupId)));
CreateMap<IdentityUser, UserListDTO>()