OapiImChatServicegroupMemberQueryRequest.php 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102
  1. <?php
  2. /**
  3. * dingtalk API: dingtalk.oapi.im.chat.servicegroup.member.query request
  4. *
  5. * @author auto create
  6. * @since 1.0, 2020.03.30
  7. */
  8. class OapiImChatServicegroupMemberQueryRequest
  9. {
  10. /**
  11. * 开放的chatId
  12. **/
  13. private $chatId;
  14. /**
  15. * 0- 不包含群主,1-包含群主
  16. **/
  17. private $includeOwner;
  18. /**
  19. * 页码,从1开始
  20. **/
  21. private $pageNum;
  22. /**
  23. * 每页大小,最大100
  24. **/
  25. private $pageSize;
  26. private $apiParas = array();
  27. public function setChatId($chatId)
  28. {
  29. $this->chatId = $chatId;
  30. $this->apiParas["chat_id"] = $chatId;
  31. }
  32. public function getChatId()
  33. {
  34. return $this->chatId;
  35. }
  36. public function setIncludeOwner($includeOwner)
  37. {
  38. $this->includeOwner = $includeOwner;
  39. $this->apiParas["include_owner"] = $includeOwner;
  40. }
  41. public function getIncludeOwner()
  42. {
  43. return $this->includeOwner;
  44. }
  45. public function setPageNum($pageNum)
  46. {
  47. $this->pageNum = $pageNum;
  48. $this->apiParas["page_num"] = $pageNum;
  49. }
  50. public function getPageNum()
  51. {
  52. return $this->pageNum;
  53. }
  54. public function setPageSize($pageSize)
  55. {
  56. $this->pageSize = $pageSize;
  57. $this->apiParas["page_size"] = $pageSize;
  58. }
  59. public function getPageSize()
  60. {
  61. return $this->pageSize;
  62. }
  63. public function getApiMethodName()
  64. {
  65. return "dingtalk.oapi.im.chat.servicegroup.member.query";
  66. }
  67. public function getApiParas()
  68. {
  69. return $this->apiParas;
  70. }
  71. public function check()
  72. {
  73. RequestCheckUtil::checkNotNull($this->chatId,"chatId");
  74. RequestCheckUtil::checkMaxLength($this->chatId,128,"chatId");
  75. RequestCheckUtil::checkNotNull($this->pageNum,"pageNum");
  76. RequestCheckUtil::checkMinValue($this->pageNum,1,"pageNum");
  77. RequestCheckUtil::checkNotNull($this->pageSize,"pageSize");
  78. RequestCheckUtil::checkMaxValue($this->pageSize,100,"pageSize");
  79. RequestCheckUtil::checkMinValue($this->pageSize,1,"pageSize");
  80. }
  81. public function putOtherTextParam($key, $value) {
  82. $this->apiParas[$key] = $value;
  83. $this->$key = $value;
  84. }
  85. }