平安校园
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.
 
 
 
 
 
 

32 lines
946 B

  1. namespace SafeCampus.Application.Services.Business.ClassTeacherService;
  2. public class ClassTeacherDto
  3. {
  4. public long Id { get; set; }
  5. /// <summary>
  6. /// 班主任用户id
  7. /// </summary>
  8. public long UserId { get; set; }
  9. /// <summary>
  10. /// 班级id
  11. /// </summary>
  12. public string PersonSetId { get; set; }
  13. /// <summary>
  14. /// 班主任名称
  15. /// </summary>
  16. public string Name { get; set; }
  17. /// <summary>
  18. /// 班主任联系方式
  19. /// </summary>
  20. public string Phone { get; set; }
  21. }
  22. public class ClassTeacherDtoMapper : IRegister
  23. {
  24. public void Register(TypeAdapterConfig config)
  25. {
  26. config.ForType<ClassTeacher, ClassTeacherDto>()
  27. //.Map(dest => dest.CameraName, src => src.CameraId.GetDescriptionByEnum<CameraType>());
  28. .Map(dest => dest.Name, src => src.SysUserItem.Name)
  29. .Map(dest => dest.Phone, src => src.SysUserItem.Phone);
  30. }
  31. }