namespace SafeCampus.Application.Services.Business.PersonInfoService; public class PersonInfoDto { /// /// 人员id /// public string PersonId { get; set; } /// /// 人员名称 /// public string Name { get; set; } /// /// 年龄 /// public int Age { get; set; } /// /// 性别 /// public string Gender { get; set; } /// /// 手机号 /// public string Phone { get; set; } /// /// 扩展属性 /// public string ExtData { get; set; } /// /// 人脸大小阈值 /// public int FaceSizeLimit { get; set; } /// ///人脸质量分阈值 /// public float QualityScore { get; set; } /// /// 班级id /// public string PersonSetId { get; set; } /// /// 班级名称 /// public string PersonSetName { get; set; } /// /// 寝室名称 /// public string DormitoryName { get; set; } /// /// 人脸列表 /// public List PersonFacesList { get; set; } /// /// 创建时间 /// public DateTime CreateTime { get; set; } } public class PersonInfoDtoMapper : IRegister { public void Register(TypeAdapterConfig config) { config.ForType() //.Map(dest => dest.CameraName, src => src.CameraId.GetDescriptionByEnum()); .Map(dest => dest.PersonSetId, src => src.PersonSetId) .Map(dest => dest.PersonSetName, src => src.PersonSetInfoItem.PersonSetName) .Map(dest => dest.DormitoryName, src => src.DormitoryInfoItem.Name); } }