TemplateDetailRequest.php 835 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. <?php
  2. class TemplateDetailRequest extends SdkRequest {
  3. const REQUEST_URL = "/v2/template/list"; // 文件模板列表接口地址
  4. private $templateId; // 模板id
  5. function getUrl() {
  6. return self::REQUEST_URL;
  7. }
  8. function getHttpParamers() {
  9. $paramSwitcher = ParamSwitcher::instanceParam();
  10. $paramSwitcher->addParam('templateId', $this->templateId);
  11. $httpParameters = HttpParameter::httpGetParamer();
  12. $httpParameters->setParams($paramSwitcher->getParams());
  13. return $httpParameters;
  14. }
  15. /**
  16. * @return mixed
  17. */
  18. public function getTemplateId()
  19. {
  20. return $this->templateId;
  21. }
  22. /**
  23. * @param mixed $templateId
  24. */
  25. public function setTemplateId($templateId)
  26. {
  27. $this->templateId = $templateId;
  28. }
  29. }