namespace SafeCampus.Application.Services.Business.ClassTeacherService;
public class ClassTeacherDto
{
public long Id { get; set; }
///
/// 班主任用户id
///
public long UserId { get; set; }
///
/// 班级id
///
public string PersonSetId { get; set; }
///
/// 班主任名称
///
public string Name { get; set; }
///
/// 班主任联系方式
///
public string Phone { get; set; }
}
public class ClassTeacherDtoMapper : IRegister
{
public void Register(TypeAdapterConfig config)
{
config.ForType()
//.Map(dest => dest.CameraName, src => src.CameraId.GetDescriptionByEnum());
.Map(dest => dest.Name, src => src.SysUserItem.Name)
.Map(dest => dest.Phone, src => src.SysUserItem.Phone);
}
}