agentId = $agentId; $this->apiParas["agent_id"] = $agentId; } public function getAgentId() { return $this->agentId; } public function setCursor($cursor) { $this->cursor = $cursor; $this->apiParas["cursor"] = $cursor; } public function getCursor() { return $this->cursor; } public function setSize($size) { $this->size = $size; $this->apiParas["size"] = $size; } public function getSize() { return $this->size; } public function getApiMethodName() { return "dingtalk.oapi.authorization.rbac.role.list"; } public function getApiParas() { return $this->apiParas; } public function check() { RequestCheckUtil::checkNotNull($this->agentId,"agentId"); RequestCheckUtil::checkNotNull($this->cursor,"cursor"); RequestCheckUtil::checkNotNull($this->size,"size"); RequestCheckUtil::checkMaxValue($this->size,20,"size"); } public function putOtherTextParam($key, $value) { $this->apiParas[$key] = $value; $this->$key = $value; } }