templateContent = $templateContent; $this->apiParas["template_content"] = $templateContent; } public function getTemplateContent() { return $this->templateContent; } public function setTemplateName($templateName) { $this->templateName = $templateName; $this->apiParas["template_name"] = $templateName; } public function getTemplateName() { return $this->templateName; } public function getApiMethodName() { return "tmall.item.sizemapping.template.create"; } public function getApiParas() { return $this->apiParas; } public function check() { RequestCheckUtil::checkNotNull($this->templateContent,"templateContent"); RequestCheckUtil::checkMaxLength($this->templateContent,8000,"templateContent"); RequestCheckUtil::checkNotNull($this->templateName,"templateName"); RequestCheckUtil::checkMaxLength($this->templateName,20,"templateName"); } public function putOtherTextParam($key, $value) { $this->apiParas[$key] = $value; $this->$key = $value; } }