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; } }