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

PersonSetInfoDto.cs 708 B

7 months ago
7 months ago
1234567891011121314151617181920212223242526
  1. namespace SafeCampus.Application.Services.Business.PersonSetInfoService;
  2. public class PersonSetInfoDto
  3. {
  4. /// <summary>
  5. /// 班级id
  6. /// </summary>
  7. public string PersonSetId { get; set; }
  8. /// <summary>
  9. /// 班级名称
  10. /// </summary>
  11. public string PersonSetName { get; set; }
  12. public string UserId { get; set; }
  13. public string UserName { get; set; }
  14. }
  15. public class PersonSetInfoDtoMapper : IRegister
  16. {
  17. public void Register(TypeAdapterConfig config)
  18. {
  19. config.ForType<PersonSetInfo, PersonSetInfoDto>()
  20. .Map(x => x.UserId, x => x.ClassTeacherItem.UserId)
  21. .Map(x => x.UserName, x => x.ClassTeacherItem.SysUserItem.Name);
  22. }
  23. }