avatarMediaId = $avatarMediaId; $this->apiParas["avatar_media_id"] = $avatarMediaId; } public function getAvatarMediaId() { return $this->avatarMediaId; } public function setBrief($brief) { $this->brief = $brief; $this->apiParas["brief"] = $brief; } public function getBrief() { return $this->brief; } public function setDesc($desc) { $this->desc = $desc; $this->apiParas["desc"] = $desc; } public function getDesc() { return $this->desc; } public function setName($name) { $this->name = $name; $this->apiParas["name"] = $name; } public function getName() { return $this->name; } public function setPreviewMediaId($previewMediaId) { $this->previewMediaId = $previewMediaId; $this->apiParas["preview_media_id"] = $previewMediaId; } public function getPreviewMediaId() { return $this->previewMediaId; } public function getApiMethodName() { return "dingtalk.oapi.serviceaccount.add"; } public function getApiParas() { return $this->apiParas; } public function check() { RequestCheckUtil::checkNotNull($this->avatarMediaId,"avatarMediaId"); RequestCheckUtil::checkMaxLength($this->brief,60,"brief"); RequestCheckUtil::checkNotNull($this->desc,"desc"); RequestCheckUtil::checkMaxLength($this->desc,200,"desc"); RequestCheckUtil::checkNotNull($this->name,"name"); RequestCheckUtil::checkMaxLength($this->name,30,"name"); RequestCheckUtil::checkNotNull($this->previewMediaId,"previewMediaId"); } public function putOtherTextParam($key, $value) { $this->apiParas[$key] = $value; $this->$key = $value; } }