OapiWikiDocListRequest.php 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697
  1. <?php
  2. /**
  3. * dingtalk API: dingtalk.oapi.wiki.doc.list request
  4. *
  5. * @author auto create
  6. * @since 1.0, 2020.10.16
  7. */
  8. class OapiWikiDocListRequest
  9. {
  10. /**
  11. * 应用agentId
  12. **/
  13. private $agentid;
  14. /**
  15. * 分页游标(默认0)
  16. **/
  17. private $cursor;
  18. /**
  19. * 知识本ID(加密后的值)
  20. **/
  21. private $repoId;
  22. /**
  23. * 分页大小(默认20)
  24. **/
  25. private $size;
  26. private $apiParas = array();
  27. public function setAgentid($agentid)
  28. {
  29. $this->agentid = $agentid;
  30. $this->apiParas["agentid"] = $agentid;
  31. }
  32. public function getAgentid()
  33. {
  34. return $this->agentid;
  35. }
  36. public function setCursor($cursor)
  37. {
  38. $this->cursor = $cursor;
  39. $this->apiParas["cursor"] = $cursor;
  40. }
  41. public function getCursor()
  42. {
  43. return $this->cursor;
  44. }
  45. public function setRepoId($repoId)
  46. {
  47. $this->repoId = $repoId;
  48. $this->apiParas["repo_id"] = $repoId;
  49. }
  50. public function getRepoId()
  51. {
  52. return $this->repoId;
  53. }
  54. public function setSize($size)
  55. {
  56. $this->size = $size;
  57. $this->apiParas["size"] = $size;
  58. }
  59. public function getSize()
  60. {
  61. return $this->size;
  62. }
  63. public function getApiMethodName()
  64. {
  65. return "dingtalk.oapi.wiki.doc.list";
  66. }
  67. public function getApiParas()
  68. {
  69. return $this->apiParas;
  70. }
  71. public function check()
  72. {
  73. RequestCheckUtil::checkNotNull($this->agentid,"agentid");
  74. RequestCheckUtil::checkNotNull($this->repoId,"repoId");
  75. }
  76. public function putOtherTextParam($key, $value) {
  77. $this->apiParas[$key] = $value;
  78. $this->$key = $value;
  79. }
  80. }