WarningNoticeTarget.cs 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Threading.Tasks;
  5. namespace XYY.Api.WarningNotice.WarningNoticeService
  6. {
  7. /// <summary>
  8. /// 警告通知对象
  9. /// </summary>
  10. public class WarningNoticeTarget
  11. {
  12. /// <summary>
  13. /// 对象名
  14. /// </summary>
  15. public string TargetName
  16. {
  17. get; set;
  18. }
  19. /// <summary>
  20. /// 服务类型
  21. /// </summary>
  22. public string ServiceType
  23. {
  24. get; set;
  25. }
  26. }
  27. public class Appendix
  28. {
  29. public string Url
  30. {
  31. get; set;
  32. }
  33. public string Title
  34. {
  35. get; set;
  36. }
  37. }
  38. public class TextMessageNoticeTarget : WarningNoticeTarget
  39. {
  40. public string Content
  41. {
  42. get; set;
  43. }
  44. public string FileName
  45. {
  46. get; set;
  47. }
  48. public string FileStringBase64
  49. {
  50. get; set;
  51. }
  52. public string[] UserId
  53. {
  54. get; set;
  55. }
  56. public string[] CustomerId
  57. {
  58. get; set;
  59. }
  60. public string[] Phones
  61. {
  62. get; set;
  63. }
  64. public string Hook
  65. {
  66. get; set;
  67. }
  68. }
  69. public class LinkMessageNoticeTarget : WarningNoticeTarget
  70. {
  71. public string Link { get; set; }
  72. public string PicUrl { get; set; }
  73. public string Title { get; set; }
  74. public string Text { get; set; }
  75. public bool ToAllUser { get; set; }
  76. public List<string> UserIds { get; set; }
  77. }
  78. public class ActionCardNoticeTarget : WarningNoticeTarget
  79. {
  80. /// <summary>
  81. /// 按钮布局,0是竖向,1是横向
  82. /// </summary>
  83. public string ButtonOrient { get; set; }
  84. public List<ActionCardButton> Buttons { get; set; }
  85. public string Text { get; set; }
  86. public string Title { get; set; }
  87. public bool ToAllUser { get; set; }
  88. public List<int> UserIds { get; set; }
  89. }
  90. public class ActionCardButton
  91. {
  92. public string Text { get; set; }
  93. public string Link { get; set; }
  94. }
  95. }