WarningNoticeTarget.cs 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6. namespace XYY.Service.Standard.DingDing.Dto
  7. {
  8. /// <summary>
  9. /// 警告通知对象
  10. /// </summary>
  11. public class WarningNoticeTarget
  12. {
  13. /// <summary>
  14. /// 对象名
  15. /// </summary>
  16. public string TargetName
  17. {
  18. get; set;
  19. }
  20. /// <summary>
  21. /// 服务类型
  22. /// </summary>
  23. public string ServiceType
  24. {
  25. get; set;
  26. }
  27. }
  28. public class ActionCardNoticeTarget : WarningNoticeTarget
  29. {
  30. /// <summary>
  31. /// 按钮布局,0是竖向,1是横向
  32. /// </summary>
  33. public string ButtonOrient { get; set; }
  34. public List<ActionCardButton> Buttons { get; set; }
  35. public string Text { get; set; }
  36. public string Title { get; set; }
  37. public bool ToAllUser { get; set; }
  38. public List<int> UserIds { get; set; }
  39. }
  40. public class ActionCardButton
  41. {
  42. public string Text { get; set; }
  43. public string Link { get; set; }
  44. }
  45. }