media = $media; $this->apiParas["media"] = $media; } public function getMedia() { return $this->media; } public function setType($type) { $this->type = $type; $this->apiParas["type"] = $type; } public function getType() { return $this->type; } public function getApiMethodName() { return "dingtalk.oapi.media.upload"; } public function getApiParas() { return $this->apiParas; } public function check() { RequestCheckUtil::checkNotNull($this->media,"media"); } public function putOtherTextParam($key, $value) { $this->apiParas[$key] = $value; $this->$key = $value; } }