From 0f682dd1843551f4a4c7cc76bfa54ec019bc5e16 Mon Sep 17 00:00:00 2001 From: he <109787524@qq.com> Date: Fri, 14 Mar 2025 14:40:14 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- IRaCIS.Core.Application/Service/Doctor/DTO/AttachmentModel.cs | 2 ++ IRaCIS.Core.Application/Service/Doctor/_MapConfig.cs | 1 + 2 files changed, 3 insertions(+) diff --git a/IRaCIS.Core.Application/Service/Doctor/DTO/AttachmentModel.cs b/IRaCIS.Core.Application/Service/Doctor/DTO/AttachmentModel.cs index d4fba5827..1b1eea265 100644 --- a/IRaCIS.Core.Application/Service/Doctor/DTO/AttachmentModel.cs +++ b/IRaCIS.Core.Application/Service/Doctor/DTO/AttachmentModel.cs @@ -24,6 +24,8 @@ public string FirstName { get; set; } = string.Empty; public string FullName => LastName + " / " + FirstName; public string LastName { get; set; } = string.Empty; + + public string UserName { get; set; } } public class SetAttachmentAuthorizedView diff --git a/IRaCIS.Core.Application/Service/Doctor/_MapConfig.cs b/IRaCIS.Core.Application/Service/Doctor/_MapConfig.cs index 6d5c78e1a..2b48f6ac7 100644 --- a/IRaCIS.Core.Application/Service/Doctor/_MapConfig.cs +++ b/IRaCIS.Core.Application/Service/Doctor/_MapConfig.cs @@ -76,6 +76,7 @@ namespace IRaCIS.Core.Application.Service .ForMember(d => d.ChineseName, u => u.MapFrom(t => t.Doctor.ChineseName)) .ForMember(d => d.FirstName, u => u.MapFrom(t => t.Doctor.FirstName)) .ForMember(d => d.LastName, u => u.MapFrom(t => t.Doctor.LastName)) + .ForMember(d => d.UserName, u => u.MapFrom(t => t.Doctor.UserRole.UserName)) ; CreateMap(); CreateMap();