123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566 |
- <?php
- /**
- * dingtalk API: dingtalk.oapi.authorization.rbac.role.query request
- *
- * @author auto create
- * @since 1.0, 2021.02.01
- */
- class OapiAuthorizationRbacRoleQueryRequest
- {
- /**
- * 微应用agenId,需要联系权限平台配置
- **/
- private $agentId;
-
- /**
- * 管理组id
- **/
- private $openRoleIds;
-
- private $apiParas = array();
-
- public function setAgentId($agentId)
- {
- $this->agentId = $agentId;
- $this->apiParas["agent_id"] = $agentId;
- }
- public function getAgentId()
- {
- return $this->agentId;
- }
- public function setOpenRoleIds($openRoleIds)
- {
- $this->openRoleIds = $openRoleIds;
- $this->apiParas["open_role_ids"] = $openRoleIds;
- }
- public function getOpenRoleIds()
- {
- return $this->openRoleIds;
- }
- public function getApiMethodName()
- {
- return "dingtalk.oapi.authorization.rbac.role.query";
- }
-
- public function getApiParas()
- {
- return $this->apiParas;
- }
-
- public function check()
- {
-
- RequestCheckUtil::checkNotNull($this->agentId,"agentId");
- RequestCheckUtil::checkNotNull($this->openRoleIds,"openRoleIds");
- RequestCheckUtil::checkMaxListSize($this->openRoleIds,999,"openRoleIds");
- }
-
- public function putOtherTextParam($key, $value) {
- $this->apiParas[$key] = $value;
- $this->$key = $value;
- }
- }
|