平安校园
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

81 lines
2.2 KiB

  1. namespace SafeCampus.Application.Services.Business.PersonInfoService;
  2. public class PersonInfoDto
  3. {
  4. /// <summary>
  5. /// 人员id
  6. /// </summary>
  7. public string PersonId { get; set; }
  8. /// <summary>
  9. /// 人员名称
  10. /// </summary>
  11. public string Name { get; set; }
  12. /// <summary>
  13. /// 年龄
  14. /// </summary>
  15. public int Age { get; set; }
  16. /// <summary>
  17. /// 性别
  18. /// </summary>
  19. public string Gender { get; set; }
  20. /// <summary>
  21. /// 手机号
  22. /// </summary>
  23. public string Phone { get; set; }
  24. /// <summary>
  25. /// 扩展属性
  26. /// </summary>
  27. public string ExtData { get; set; }
  28. /// <summary>
  29. /// 人脸大小阈值
  30. /// </summary>
  31. public int FaceSizeLimit { get; set; }
  32. /// <summary>
  33. ///人脸质量分阈值
  34. /// </summary>
  35. public float QualityScore { get; set; }
  36. /// <summary>
  37. /// 班级id
  38. /// </summary>
  39. public string PersonSetId { get; set; }
  40. /// <summary>
  41. /// 班级名称
  42. /// </summary>
  43. public string PersonSetName { get; set; }
  44. /// <summary>
  45. /// 寝室名称
  46. /// </summary>
  47. public string DormitoryName { get; set; }
  48. /// <summary>
  49. /// 人脸列表
  50. /// </summary>
  51. public List<PersonFaces> Faces { get; set; }
  52. /// <summary>
  53. /// 创建时间
  54. /// </summary>
  55. public DateTime CreateTime { get; set; }
  56. /// <summary>
  57. /// 考勤列表
  58. /// </summary>
  59. public List<Attendance> Attendances { get; set; }
  60. /// <summary>
  61. /// 出勤状态
  62. /// </summary>
  63. public string State { get; set; }
  64. /// <summary>
  65. /// 进班时间
  66. /// </summary>
  67. public DateTime? InsTime { get; set; }
  68. }
  69. public class PersonInfoDtoMapper : IRegister
  70. {
  71. public void Register(TypeAdapterConfig config)
  72. {
  73. config.ForType<PersonInfo, PersonInfoDto>()
  74. //.Map(dest => dest.CameraName, src => src.CameraId.GetDescriptionByEnum<CameraType>());
  75. .Map(dest => dest.PersonSetId, src => src.PersonSetId)
  76. .Map(dest => dest.PersonSetName, src => src.PersonSetInfoItem.PersonSetName)
  77. .Map(dest => dest.Faces, src => src.PersonFacesList)
  78. .Map(dest => dest.DormitoryName, src => src.DormitoryInfoItem.Name);
  79. }
  80. }