OapiCrmObjectdataContactQueryRequest.php 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112
  1. <?php
  2. /**
  3. * dingtalk API: dingtalk.oapi.crm.objectdata.contact.query request
  4. *
  5. * @author auto create
  6. * @since 1.0, 2020.09.27
  7. */
  8. class OapiCrmObjectdataContactQueryRequest
  9. {
  10. /**
  11. * 用户ID
  12. **/
  13. private $currentOperatorUserid;
  14. /**
  15. * 分页游标
  16. **/
  17. private $cursor;
  18. /**
  19. * 分页大小
  20. **/
  21. private $pageSize;
  22. /**
  23. * 服务商组织 id,自建应用可以传入
  24. **/
  25. private $providerCorpid;
  26. /**
  27. * 查询条件
  28. **/
  29. private $queryDsl;
  30. private $apiParas = array();
  31. public function setCurrentOperatorUserid($currentOperatorUserid)
  32. {
  33. $this->currentOperatorUserid = $currentOperatorUserid;
  34. $this->apiParas["current_operator_userid"] = $currentOperatorUserid;
  35. }
  36. public function getCurrentOperatorUserid()
  37. {
  38. return $this->currentOperatorUserid;
  39. }
  40. public function setCursor($cursor)
  41. {
  42. $this->cursor = $cursor;
  43. $this->apiParas["cursor"] = $cursor;
  44. }
  45. public function getCursor()
  46. {
  47. return $this->cursor;
  48. }
  49. public function setPageSize($pageSize)
  50. {
  51. $this->pageSize = $pageSize;
  52. $this->apiParas["page_size"] = $pageSize;
  53. }
  54. public function getPageSize()
  55. {
  56. return $this->pageSize;
  57. }
  58. public function setProviderCorpid($providerCorpid)
  59. {
  60. $this->providerCorpid = $providerCorpid;
  61. $this->apiParas["provider_corpid"] = $providerCorpid;
  62. }
  63. public function getProviderCorpid()
  64. {
  65. return $this->providerCorpid;
  66. }
  67. public function setQueryDsl($queryDsl)
  68. {
  69. $this->queryDsl = $queryDsl;
  70. $this->apiParas["query_dsl"] = $queryDsl;
  71. }
  72. public function getQueryDsl()
  73. {
  74. return $this->queryDsl;
  75. }
  76. public function getApiMethodName()
  77. {
  78. return "dingtalk.oapi.crm.objectdata.contact.query";
  79. }
  80. public function getApiParas()
  81. {
  82. return $this->apiParas;
  83. }
  84. public function check()
  85. {
  86. RequestCheckUtil::checkNotNull($this->pageSize,"pageSize");
  87. }
  88. public function putOtherTextParam($key, $value) {
  89. $this->apiParas[$key] = $value;
  90. $this->$key = $value;
  91. }
  92. }