agentId = $agentId; $this->apiParas["agent_id"] = $agentId; } public function getAgentId() { return $this->agentId; } public function setFile($file) { $this->file = $file; $this->apiParas["file"] = $file; } public function getFile() { return $this->file; } public function setFileSize($fileSize) { $this->fileSize = $fileSize; $this->apiParas["file_size"] = $fileSize; } public function getFileSize() { return $this->fileSize; } public function getApiMethodName() { return "dingtalk.oapi.file.upload.single"; } public function getApiParas() { return $this->apiParas; } public function check() { } public function putOtherTextParam($key, $value) { $this->apiParas[$key] = $value; $this->$key = $value; } }