OapiWikiGroupPublicListRequest.php 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697
  1. <?php
  2. /**
  3. * dingtalk API: dingtalk.oapi.wiki.group.public.list request
  4. *
  5. * @author auto create
  6. * @since 1.0, 2020.10.16
  7. */
  8. class OapiWikiGroupPublicListRequest
  9. {
  10. /**
  11. * 个人授权信息
  12. **/
  13. private $authCode;
  14. /**
  15. * 分页游标(默认0)
  16. **/
  17. private $cursor;
  18. /**
  19. * 1:管理员 2:编辑权限 3:只读权限
  20. **/
  21. private $roleType;
  22. /**
  23. * 分页大小(默认20)
  24. **/
  25. private $size;
  26. private $apiParas = array();
  27. public function setAuthCode($authCode)
  28. {
  29. $this->authCode = $authCode;
  30. $this->apiParas["auth_code"] = $authCode;
  31. }
  32. public function getAuthCode()
  33. {
  34. return $this->authCode;
  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 setRoleType($roleType)
  46. {
  47. $this->roleType = $roleType;
  48. $this->apiParas["role_type"] = $roleType;
  49. }
  50. public function getRoleType()
  51. {
  52. return $this->roleType;
  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.group.public.list";
  66. }
  67. public function getApiParas()
  68. {
  69. return $this->apiParas;
  70. }
  71. public function check()
  72. {
  73. RequestCheckUtil::checkNotNull($this->authCode,"authCode");
  74. RequestCheckUtil::checkNotNull($this->roleType,"roleType");
  75. }
  76. public function putOtherTextParam($key, $value) {
  77. $this->apiParas[$key] = $value;
  78. $this->$key = $value;
  79. }
  80. }