TemplateCreateByWordRequest.php 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192
  1. <?php
  2. class TemplateCreateByWordRequest extends SdkRequest {
  3. const REQUEST_URL = "/v2/template/createbyword"; // 附件接口地址
  4. private $tenantName;
  5. private $title;
  6. private $file;
  7. private $renameRepeatParam;
  8. public function getUrl() {
  9. return self::REQUEST_URL;
  10. }
  11. public function getHttpParamers() {
  12. $paramSwitcher = ParamSwitcher::instanceParam();
  13. $paramSwitcher->addParam('tenantName', $this->tenantName);
  14. $paramSwitcher->addParam('title', $this->title);
  15. $paramSwitcher->addParam('file',$this->file);
  16. $paramSwitcher->addParam('renameRepeatParam', $this->renameRepeatParam);
  17. $httpParameters = HttpParameter::httpPostParamer();
  18. $httpParameters->setParams($paramSwitcher->getParams());
  19. return $httpParameters;
  20. }
  21. /**
  22. * @return mixed
  23. */
  24. public function getTenantName()
  25. {
  26. return $this->tenantName;
  27. }
  28. /**
  29. * @param mixed $tenantName
  30. */
  31. public function setTenantName($tenantName)
  32. {
  33. $this->tenantName = $tenantName;
  34. }
  35. /**
  36. * @return mixed
  37. */
  38. public function getTitle()
  39. {
  40. return $this->title;
  41. }
  42. /**
  43. * @param mixed $title
  44. */
  45. public function setTitle($title)
  46. {
  47. $this->title = $title;
  48. }
  49. /**
  50. * @return mixed
  51. */
  52. public function getFile()
  53. {
  54. return $this->file;
  55. }
  56. /**
  57. * @param mixed $file
  58. */
  59. public function setFile($file)
  60. {
  61. $this->file = $file;
  62. }
  63. /**
  64. * @return mixed
  65. */
  66. public function getRenameRepeatParam()
  67. {
  68. return $this->renameRepeatParam;
  69. }
  70. /**
  71. * @param mixed $renameRepeatParam
  72. */
  73. public function setRenameRepeatParam($renameRepeatParam)
  74. {
  75. $this->renameRepeatParam = $renameRepeatParam;
  76. }
  77. }