CategoryDetailRequest.php 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. <?php
  2. class CategoryDetailRequest extends SdkRequest {
  3. const REQUEST_URL = "/v2/category/detail";
  4. private $categoryId;// 业务分类Id
  5. private $categoryName;// 业务分类名称
  6. private $tenantName;// 公司名称
  7. function getUrl() {
  8. return self::REQUEST_URL;
  9. }
  10. function getHttpParamers() {
  11. $paramSwitcher = ParamSwitcher::instanceParam();
  12. $paramSwitcher->addParam('categoryId', $this->categoryId);
  13. $paramSwitcher->addParam('categoryName', $this->categoryName);
  14. $paramSwitcher->addParam('tenantName',$this->tenantName);
  15. $httpParameters = HttpParameter::httpGetParamer();
  16. $httpParameters->setParams($paramSwitcher->getParams());
  17. return $httpParameters;
  18. }
  19. /**
  20. * @return mixed
  21. */
  22. public function getCategoryId()
  23. {
  24. return $this->categoryId;
  25. }
  26. /**
  27. * @param mixed $categoryId
  28. */
  29. public function setCategoryId($categoryId)
  30. {
  31. $this->categoryId = $categoryId;
  32. }
  33. /**
  34. * @return mixed
  35. */
  36. public function getCategoryName()
  37. {
  38. return $this->categoryName;
  39. }
  40. /**
  41. * @param mixed $categoryName
  42. */
  43. public function setCategoryName($categoryName)
  44. {
  45. $this->categoryName = $categoryName;
  46. }
  47. /**
  48. * @return mixed
  49. */
  50. public function getTenantName()
  51. {
  52. return $this->tenantName;
  53. }
  54. /**
  55. * @param mixed $tenantName
  56. */
  57. public function setTenantName($tenantName)
  58. {
  59. $this->tenantName = $tenantName;
  60. }
  61. }