OapiAuthorizationRbacRoleMemberListRequest.php 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100
  1. <?php
  2. /**
  3. * dingtalk API: dingtalk.oapi.authorization.rbac.role.member.list request
  4. *
  5. * @author auto create
  6. * @since 1.0, 2021.01.21
  7. */
  8. class OapiAuthorizationRbacRoleMemberListRequest
  9. {
  10. /**
  11. * 微应用agenId,需要联系权限平台配置
  12. **/
  13. private $agentId;
  14. /**
  15. * 分页游标
  16. **/
  17. private $cursor;
  18. /**
  19. * 管理组id
  20. **/
  21. private $openRoleId;
  22. /**
  23. * 分页size
  24. **/
  25. private $size;
  26. private $apiParas = array();
  27. public function setAgentId($agentId)
  28. {
  29. $this->agentId = $agentId;
  30. $this->apiParas["agent_id"] = $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 setOpenRoleId($openRoleId)
  46. {
  47. $this->openRoleId = $openRoleId;
  48. $this->apiParas["open_role_id"] = $openRoleId;
  49. }
  50. public function getOpenRoleId()
  51. {
  52. return $this->openRoleId;
  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.authorization.rbac.role.member.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->cursor,"cursor");
  75. RequestCheckUtil::checkNotNull($this->openRoleId,"openRoleId");
  76. RequestCheckUtil::checkNotNull($this->size,"size");
  77. RequestCheckUtil::checkMaxValue($this->size,20,"size");
  78. }
  79. public function putOtherTextParam($key, $value) {
  80. $this->apiParas[$key] = $value;
  81. $this->$key = $value;
  82. }
  83. }