OapiRobotMessageOrggrouptaskQueryRequest.php 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128
  1. <?php
  2. /**
  3. * dingtalk API: dingtalk.oapi.robot.message.orggrouptask.query request
  4. *
  5. * @author auto create
  6. * @since 1.0, 2022.02.08
  7. */
  8. class OapiRobotMessageOrggrouptaskQueryRequest
  9. {
  10. /**
  11. * 申请到的企业机器人唯一标识符
  12. **/
  13. private $chatbotId;
  14. /**
  15. * 分页游标
  16. **/
  17. private $cursor;
  18. /**
  19. * 开放的群ID
  20. **/
  21. private $openConversationId;
  22. /**
  23. * 每页请求数量
  24. **/
  25. private $pageSize;
  26. /**
  27. * 用于查询发送进度的唯一标识
  28. **/
  29. private $processQueryKey;
  30. /**
  31. * 机器人webhook中的access_token参数,与chatbot_id+open_conversation_id 只需要填1种
  32. **/
  33. private $token;
  34. private $apiParas = array();
  35. public function setChatbotId($chatbotId)
  36. {
  37. $this->chatbotId = $chatbotId;
  38. $this->apiParas["chatbot_id"] = $chatbotId;
  39. }
  40. public function getChatbotId()
  41. {
  42. return $this->chatbotId;
  43. }
  44. public function setCursor($cursor)
  45. {
  46. $this->cursor = $cursor;
  47. $this->apiParas["cursor"] = $cursor;
  48. }
  49. public function getCursor()
  50. {
  51. return $this->cursor;
  52. }
  53. public function setOpenConversationId($openConversationId)
  54. {
  55. $this->openConversationId = $openConversationId;
  56. $this->apiParas["open_conversation_id"] = $openConversationId;
  57. }
  58. public function getOpenConversationId()
  59. {
  60. return $this->openConversationId;
  61. }
  62. public function setPageSize($pageSize)
  63. {
  64. $this->pageSize = $pageSize;
  65. $this->apiParas["page_size"] = $pageSize;
  66. }
  67. public function getPageSize()
  68. {
  69. return $this->pageSize;
  70. }
  71. public function setProcessQueryKey($processQueryKey)
  72. {
  73. $this->processQueryKey = $processQueryKey;
  74. $this->apiParas["process_query_key"] = $processQueryKey;
  75. }
  76. public function getProcessQueryKey()
  77. {
  78. return $this->processQueryKey;
  79. }
  80. public function setToken($token)
  81. {
  82. $this->token = $token;
  83. $this->apiParas["token"] = $token;
  84. }
  85. public function getToken()
  86. {
  87. return $this->token;
  88. }
  89. public function getApiMethodName()
  90. {
  91. return "dingtalk.oapi.robot.message.orggrouptask.query";
  92. }
  93. public function getApiParas()
  94. {
  95. return $this->apiParas;
  96. }
  97. public function check()
  98. {
  99. RequestCheckUtil::checkNotNull($this->processQueryKey,"processQueryKey");
  100. }
  101. public function putOtherTextParam($key, $value) {
  102. $this->apiParas[$key] = $value;
  103. $this->$key = $value;
  104. }
  105. }