平安校园
Nie możesz wybrać więcej, niż 25 tematów Tematy muszą się zaczynać od litery lub cyfry, mogą zawierać myślniki ('-') i mogą mieć do 35 znaków.
 
 
 
 
 
 

55 wiersze
1.6 KiB

  1. namespace SafeCampus.Application.Services.Business.ClassRoomCallTaskService;
  2. public class ClassRoomCallTaskDto
  3. {
  4. /// <summary>
  5. /// ID
  6. /// </summary>
  7. public long Id { get; set; }
  8. /// <summary>
  9. /// 摄像头id
  10. /// </summary>
  11. public string CameraId { get; set; }
  12. /// <summary>
  13. /// 摄像头名称
  14. /// </summary>
  15. public string CameraName { get; set; }
  16. /// <summary>
  17. /// 摄像头所属分组名称
  18. /// </summary>
  19. public string CameraGroup { get; set; }
  20. /// <summary>
  21. /// 点名任务id
  22. /// </summary>
  23. public string TaskId { get; set; }
  24. /// <summary>
  25. /// 点名持续时间,单位为分钟,取值[1, 100]
  26. /// </summary>
  27. public int ContinueTime { get; set; }
  28. /// <summary>
  29. /// 人员底库id
  30. /// </summary>
  31. public string PersonSetId { get; set; }
  32. /// <summary>
  33. /// 匹配相似度阈值(如果没传,系统默认用0.5)
  34. /// </summary>
  35. public float Similarity { get; set; }
  36. /// <summary>
  37. /// 创建时间
  38. /// </summary>
  39. public DateTime CreateTime { get; set; }
  40. /// <summary>
  41. /// 结束时间
  42. /// </summary>
  43. public DateTime EndTime { get; set; }
  44. }
  45. public class ClassRoomCallTaskDtoMapper : IRegister
  46. {
  47. public void Register(TypeAdapterConfig config)
  48. {
  49. config.ForType<ClassRoomCallTask, ClassRoomCallTaskDto>()
  50. //.Map(dest => dest.CameraName, src => src.CameraId.GetDescriptionByEnum<CameraType>());
  51. .Map(dest => dest.CameraName, src => src.CameraInfoItem.SensorName)
  52. .Map(dest => dest.CameraGroup, src => src.CameraInfoItem.CameraGroupItem.Name);
  53. }
  54. }