PddGoodsTemplatePropertyValueSearchRequest.php 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111
  1. <?php
  2. namespace Com\Pdd\Pop\Sdk\Api\Request;
  3. use Com\Pdd\Pop\Sdk\PopBaseHttpRequest;
  4. use Com\Pdd\Pop\Sdk\PopBaseJsonEntity;
  5. class PddGoodsTemplatePropertyValueSearchRequest extends PopBaseHttpRequest
  6. {
  7. public function __construct()
  8. {
  9. }
  10. /**
  11. * @JsonProperty(Long, "cat_id")
  12. */
  13. private $catId;
  14. /**
  15. * @JsonProperty(Integer, "page_num")
  16. */
  17. private $pageNum;
  18. /**
  19. * @JsonProperty(Integer, "page_size")
  20. */
  21. private $pageSize;
  22. /**
  23. * @JsonProperty(Long, "parent_vid")
  24. */
  25. private $parentVid;
  26. /**
  27. * @JsonProperty(Long, "template_pid")
  28. */
  29. private $templatePid;
  30. /**
  31. * @JsonProperty(String, "value")
  32. */
  33. private $value;
  34. /**
  35. * @JsonProperty(Long, "ref_pid")
  36. */
  37. private $refPid;
  38. protected function setUserParams(&$params)
  39. {
  40. $this->setUserParam($params, "cat_id", $this->catId);
  41. $this->setUserParam($params, "page_num", $this->pageNum);
  42. $this->setUserParam($params, "page_size", $this->pageSize);
  43. $this->setUserParam($params, "parent_vid", $this->parentVid);
  44. $this->setUserParam($params, "template_pid", $this->templatePid);
  45. $this->setUserParam($params, "value", $this->value);
  46. $this->setUserParam($params, "ref_pid", $this->refPid);
  47. }
  48. public function getVersion()
  49. {
  50. return "V1";
  51. }
  52. public function getDataType()
  53. {
  54. return "JSON";
  55. }
  56. public function getType()
  57. {
  58. return "pdd.goods.template.property.value.search";
  59. }
  60. public function setCatId($catId)
  61. {
  62. $this->catId = $catId;
  63. }
  64. public function setPageNum($pageNum)
  65. {
  66. $this->pageNum = $pageNum;
  67. }
  68. public function setPageSize($pageSize)
  69. {
  70. $this->pageSize = $pageSize;
  71. }
  72. public function setParentVid($parentVid)
  73. {
  74. $this->parentVid = $parentVid;
  75. }
  76. public function setTemplatePid($templatePid)
  77. {
  78. $this->templatePid = $templatePid;
  79. }
  80. public function setValue($value)
  81. {
  82. $this->value = $value;
  83. }
  84. public function setRefPid($refPid)
  85. {
  86. $this->refPid = $refPid;
  87. }
  88. }