namespace SafeCampus.Application.Services.Business.PersonSetInfoService; public class PersonSetInfoDto { /// /// 班级id /// public string PersonSetId { get; set; } /// /// 班级名称 /// public string PersonSetName { get; set; } /// /// 专业id /// public long MajorId { get; set; } /// /// 班主任id /// public long TeacherId { get; set; } public string PushUserId { get; set; } public string UserName { get; set; } public string MajorName { get; set; } public string DepartmentName { get; set; } public SysUser SysUserItem { get; set; } } public class PersonSetInfoDtoMapper : IRegister { public void Register(TypeAdapterConfig config) { config.ForType() .Map(x=>x.TeacherId,x=>x.ClassTeacherItem.Id) .Map(x => x.PushUserId, x => x.ClassTeacherItem.UserId) .Map(x => x.UserName, x => x.ClassTeacherItem.SysUserItem.Name) .Map(x => x.SysUserItem, x => x.ClassTeacherItem.SysUserItem) .Map(x=>x.DepartmentName,x=>x.MajorInfoItem.DepartmentInfoItem.Name) .Map(x=>x.MajorName,x=>x.MajorInfoItem.Name); } }