PddDdkOauthGoodsRecommendGetRequest.php 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100
  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 PddDdkOauthGoodsRecommendGetRequest 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. protected function setUserParams(&$params)
  35. {
  36. $this->setUserParam($params, "channel_type", $this->channelType);
  37. $this->setUserParam($params, "custom_parameters", $this->customParameters);
  38. $this->setUserParam($params, "limit", $this->limit);
  39. $this->setUserParam($params, "list_id", $this->listId);
  40. $this->setUserParam($params, "offset", $this->offset);
  41. $this->setUserParam($params, "pid", $this->pid);
  42. }
  43. public function getVersion()
  44. {
  45. return "V1";
  46. }
  47. public function getDataType()
  48. {
  49. return "JSON";
  50. }
  51. public function getType()
  52. {
  53. return "pdd.ddk.oauth.goods.recommend.get";
  54. }
  55. public function setChannelType($channelType)
  56. {
  57. $this->channelType = $channelType;
  58. }
  59. public function setCustomParameters($customParameters)
  60. {
  61. $this->customParameters = $customParameters;
  62. }
  63. public function setLimit($limit)
  64. {
  65. $this->limit = $limit;
  66. }
  67. public function setListId($listId)
  68. {
  69. $this->listId = $listId;
  70. }
  71. public function setOffset($offset)
  72. {
  73. $this->offset = $offset;
  74. }
  75. public function setPid($pid)
  76. {
  77. $this->pid = $pid;
  78. }
  79. }