1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192 |
- <?php
- class TemplateCreateByWordRequest extends SdkRequest {
- const REQUEST_URL = "/v2/template/createbyword"; // 附件接口地址
- private $tenantName;
- private $title;
- private $file;
- private $renameRepeatParam;
- public function getUrl() {
- return self::REQUEST_URL;
- }
- public function getHttpParamers() {
- $paramSwitcher = ParamSwitcher::instanceParam();
- $paramSwitcher->addParam('tenantName', $this->tenantName);
- $paramSwitcher->addParam('title', $this->title);
- $paramSwitcher->addParam('file',$this->file);
- $paramSwitcher->addParam('renameRepeatParam', $this->renameRepeatParam);
- $httpParameters = HttpParameter::httpPostParamer();
- $httpParameters->setParams($paramSwitcher->getParams());
- return $httpParameters;
- }
- /**
- * @return mixed
- */
- public function getTenantName()
- {
- return $this->tenantName;
- }
- /**
- * @param mixed $tenantName
- */
- public function setTenantName($tenantName)
- {
- $this->tenantName = $tenantName;
- }
- /**
- * @return mixed
- */
- public function getTitle()
- {
- return $this->title;
- }
- /**
- * @param mixed $title
- */
- public function setTitle($title)
- {
- $this->title = $title;
- }
- /**
- * @return mixed
- */
- public function getFile()
- {
- return $this->file;
- }
- /**
- * @param mixed $file
- */
- public function setFile($file)
- {
- $this->file = $file;
- }
- /**
- * @return mixed
- */
- public function getRenameRepeatParam()
- {
- return $this->renameRepeatParam;
- }
- /**
- * @param mixed $renameRepeatParam
- */
- public function setRenameRepeatParam($renameRepeatParam)
- {
- $this->renameRepeatParam = $renameRepeatParam;
- }
- }
|