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

50 lines
1.4 KiB

  1. using MoYu.DataValidation;
  2. using System.ComponentModel.DataAnnotations;
  3. namespace SafeCampus.Application.Services.Business.CameraInfoService;
  4. public class SetPushPersonGroupInput
  5. {
  6. /// <summary>
  7. /// 分组Id
  8. /// </summary>
  9. [IdNotNull(ErrorMessage = "Id不能为空")]
  10. [DataValidation(ValidationTypes.Numeric)]
  11. public virtual long GroupId { get; set; }
  12. /// <summary>
  13. /// 人员id
  14. /// </summary>
  15. [IdNotNull(ErrorMessage = "Id不能为空")]
  16. [DataValidation(ValidationTypes.Numeric)]
  17. public virtual long UserId { get; set; }
  18. }
  19. public class SetPushPersonInput
  20. {
  21. /// <summary>
  22. /// 人员id
  23. /// </summary>
  24. [IdNotNull(ErrorMessage = "Id不能为空")]
  25. [DataValidation(ValidationTypes.Numeric)]
  26. public virtual long UserId { get; set; }
  27. /// <summary>
  28. /// 摄像头Id列表
  29. /// </summary>
  30. [IdsNotNull(ErrorMessage = "IdList不能为空")]
  31. public List<long> Ids { get; set; } = new List<long>();
  32. }
  33. public class SetPushPersonWarnInput
  34. {
  35. /// <summary>
  36. /// 告警类型编码
  37. /// </summary>
  38. [IdNotNull(ErrorMessage = "告警类型编码")]
  39. public virtual string WarnCode { get; set; }
  40. /// <summary>
  41. /// 人员id
  42. /// </summary>
  43. [IdNotNull(ErrorMessage = "Id不能为空")]
  44. [DataValidation(ValidationTypes.Numeric)]
  45. public virtual long UserId { get; set; }
  46. }