| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122 |
- <?php
- namespace Com\Pdd\Pop\Sdk\Api\Request;
- use Com\Pdd\Pop\Sdk\PopBaseHttpRequest;
- use Com\Pdd\Pop\Sdk\PopBaseJsonEntity;
- class PddDdkGoodsRecommendGetRequest extends PopBaseHttpRequest
- {
- public function __construct()
- {
- }
- /**
- * @JsonProperty(Integer, "channel_type")
- */
- private $channelType;
- /**
- * @JsonProperty(String, "custom_parameters")
- */
- private $customParameters;
- /**
- * @JsonProperty(Integer, "limit")
- */
- private $limit;
- /**
- * @JsonProperty(String, "list_id")
- */
- private $listId;
- /**
- * @JsonProperty(Integer, "offset")
- */
- private $offset;
- /**
- * @JsonProperty(String, "pid")
- */
- private $pid;
- /**
- * @JsonProperty(Long, "cat_id")
- */
- private $catId;
- /**
- * @JsonProperty(List<Long>, "goods_ids")
- */
- private $goodsIds;
- protected function setUserParams(&$params)
- {
- $this->setUserParam($params, "channel_type", $this->channelType);
- $this->setUserParam($params, "custom_parameters", $this->customParameters);
- $this->setUserParam($params, "limit", $this->limit);
- $this->setUserParam($params, "list_id", $this->listId);
- $this->setUserParam($params, "offset", $this->offset);
- $this->setUserParam($params, "pid", $this->pid);
- $this->setUserParam($params, "cat_id", $this->catId);
- $this->setUserParam($params, "goods_ids", $this->goodsIds);
- }
- public function getVersion()
- {
- return "V1";
- }
- public function getDataType()
- {
- return "JSON";
- }
- public function getType()
- {
- return "pdd.ddk.goods.recommend.get";
- }
- public function setChannelType($channelType)
- {
- $this->channelType = $channelType;
- }
- public function setCustomParameters($customParameters)
- {
- $this->customParameters = $customParameters;
- }
- public function setLimit($limit)
- {
- $this->limit = $limit;
- }
- public function setListId($listId)
- {
- $this->listId = $listId;
- }
- public function setOffset($offset)
- {
- $this->offset = $offset;
- }
- public function setPid($pid)
- {
- $this->pid = $pid;
- }
- public function setCatId($catId)
- {
- $this->catId = $catId;
- }
- public function setGoodsIds($goodsIds)
- {
- $this->goodsIds = $goodsIds;
- }
- }
|