agentId = $agentId; $this->apiParas["agent_id"] = $agentId; } public function getAgentId() { return $this->agentId; } public function setDuration($duration) { $this->duration = $duration; $this->apiParas["duration"] = $duration; } public function getDuration() { return $this->duration; } public function setIsvCode($isvCode) { $this->isvCode = $isvCode; $this->apiParas["isv_code"] = $isvCode; } public function getIsvCode() { return $this->isvCode; } public function getApiMethodName() { return "dingtalk.oapi.cspace.auth.update"; } public function getApiParas() { return $this->apiParas; } public function check() { RequestCheckUtil::checkNotNull($this->agentId,"agentId"); RequestCheckUtil::checkNotNull($this->isvCode,"isvCode"); } public function putOtherTextParam($key, $value) { $this->apiParas[$key] = $value; $this->$key = $value; } }