OapiDdpaasObjectdataQueryRequest.php 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129
  1. <?php
  2. /**
  3. * dingtalk API: dingtalk.oapi.ddpaas.objectdata.query request
  4. *
  5. * @author auto create
  6. * @since 1.0, 2020.06.28
  7. */
  8. class OapiDdpaasObjectdataQueryRequest
  9. {
  10. /**
  11. * 钉钉PaaS 应用 ID
  12. **/
  13. private $appUuid;
  14. /**
  15. * 用户ID
  16. **/
  17. private $currentOperatorUserid;
  18. /**
  19. * 查询游标
  20. **/
  21. private $cursor;
  22. /**
  23. * 钉钉 PaaS 表单编号
  24. **/
  25. private $formCode;
  26. /**
  27. * 查询条件DSL
  28. **/
  29. private $queryDsl;
  30. /**
  31. * 分页限制
  32. **/
  33. private $size;
  34. private $apiParas = array();
  35. public function setAppUuid($appUuid)
  36. {
  37. $this->appUuid = $appUuid;
  38. $this->apiParas["app_uuid"] = $appUuid;
  39. }
  40. public function getAppUuid()
  41. {
  42. return $this->appUuid;
  43. }
  44. public function setCurrentOperatorUserid($currentOperatorUserid)
  45. {
  46. $this->currentOperatorUserid = $currentOperatorUserid;
  47. $this->apiParas["current_operator_userid"] = $currentOperatorUserid;
  48. }
  49. public function getCurrentOperatorUserid()
  50. {
  51. return $this->currentOperatorUserid;
  52. }
  53. public function setCursor($cursor)
  54. {
  55. $this->cursor = $cursor;
  56. $this->apiParas["cursor"] = $cursor;
  57. }
  58. public function getCursor()
  59. {
  60. return $this->cursor;
  61. }
  62. public function setFormCode($formCode)
  63. {
  64. $this->formCode = $formCode;
  65. $this->apiParas["form_code"] = $formCode;
  66. }
  67. public function getFormCode()
  68. {
  69. return $this->formCode;
  70. }
  71. public function setQueryDsl($queryDsl)
  72. {
  73. $this->queryDsl = $queryDsl;
  74. $this->apiParas["query_dsl"] = $queryDsl;
  75. }
  76. public function getQueryDsl()
  77. {
  78. return $this->queryDsl;
  79. }
  80. public function setSize($size)
  81. {
  82. $this->size = $size;
  83. $this->apiParas["size"] = $size;
  84. }
  85. public function getSize()
  86. {
  87. return $this->size;
  88. }
  89. public function getApiMethodName()
  90. {
  91. return "dingtalk.oapi.ddpaas.objectdata.query";
  92. }
  93. public function getApiParas()
  94. {
  95. return $this->apiParas;
  96. }
  97. public function check()
  98. {
  99. RequestCheckUtil::checkNotNull($this->appUuid,"appUuid");
  100. RequestCheckUtil::checkNotNull($this->formCode,"formCode");
  101. }
  102. public function putOtherTextParam($key, $value) {
  103. $this->apiParas[$key] = $value;
  104. $this->$key = $value;
  105. }
  106. }