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

CameraInfoDto.cs 506 B

3 months ago
12345678910111213141516
  1. namespace SafeCampus.Application.Services.Business.CameraInfoService;
  2. public class CameraInfoDto:CameraInfo
  3. {
  4. public string UserName { get; set; }
  5. public string GroupName { get; set; }
  6. }
  7. public class CameraInfoDtoMapper : IRegister
  8. {
  9. public void Register(TypeAdapterConfig config)
  10. {
  11. config.ForType<CameraInfo, CameraInfoDto>()
  12. .Map(dest => dest.GroupName, src => src.CameraGroupItem.Name)
  13. .Map(dest => dest.UserName, src => src.SysUserItem.Name);
  14. }
  15. }