PddDdkGoodsRecommendGetRequest.php 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122
  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 PddDdkGoodsRecommendGetRequest extends PopBaseHttpRequest
  6. {
  7. public function __construct()
  8. {
  9. }
  10. /**
  11. * @JsonProperty(Integer, "channel_type")
  12. */
  13. private $channelType;
  14. /**
  15. * @JsonProperty(String, "custom_parameters")
  16. */
  17. private $customParameters;
  18. /**
  19. * @JsonProperty(Integer, "limit")
  20. */
  21. private $limit;
  22. /**
  23. * @JsonProperty(String, "list_id")
  24. */
  25. private $listId;
  26. /**
  27. * @JsonProperty(Integer, "offset")
  28. */
  29. private $offset;
  30. /**
  31. * @JsonProperty(String, "pid")
  32. */
  33. private $pid;
  34. /**
  35. * @JsonProperty(Long, "cat_id")
  36. */
  37. private $catId;
  38. /**
  39. * @JsonProperty(List<Long>, "goods_ids")
  40. */
  41. private $goodsIds;
  42. protected function setUserParams(&$params)
  43. {
  44. $this->setUserParam($params, "channel_type", $this->channelType);
  45. $this->setUserParam($params, "custom_parameters", $this->customParameters);
  46. $this->setUserParam($params, "limit", $this->limit);
  47. $this->setUserParam($params, "list_id", $this->listId);
  48. $this->setUserParam($params, "offset", $this->offset);
  49. $this->setUserParam($params, "pid", $this->pid);
  50. $this->setUserParam($params, "cat_id", $this->catId);
  51. $this->setUserParam($params, "goods_ids", $this->goodsIds);
  52. }
  53. public function getVersion()
  54. {
  55. return "V1";
  56. }
  57. public function getDataType()
  58. {
  59. return "JSON";
  60. }
  61. public function getType()
  62. {
  63. return "pdd.ddk.goods.recommend.get";
  64. }
  65. public function setChannelType($channelType)
  66. {
  67. $this->channelType = $channelType;
  68. }
  69. public function setCustomParameters($customParameters)
  70. {
  71. $this->customParameters = $customParameters;
  72. }
  73. public function setLimit($limit)
  74. {
  75. $this->limit = $limit;
  76. }
  77. public function setListId($listId)
  78. {
  79. $this->listId = $listId;
  80. }
  81. public function setOffset($offset)
  82. {
  83. $this->offset = $offset;
  84. }
  85. public function setPid($pid)
  86. {
  87. $this->pid = $pid;
  88. }
  89. public function setCatId($catId)
  90. {
  91. $this->catId = $catId;
  92. }
  93. public function setGoodsIds($goodsIds)
  94. {
  95. $this->goodsIds = $goodsIds;
  96. }
  97. }