| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272 |
- <?php
- namespace Com\Pdd\Pop\Sdk\Api\Request;
- use Com\Pdd\Pop\Sdk\PopBaseHttpRequest;
- use Com\Pdd\Pop\Sdk\PopBaseJsonEntity;
- class PddDdkGoodsSearchRequest extends PopBaseHttpRequest
- {
- public function __construct()
- {
- }
- /**
- * @JsonProperty(List<Integer>, "activity_tags")
- */
- private $activityTags;
- /**
- * @JsonProperty(Long, "cat_id")
- */
- private $catId;
- /**
- * @JsonProperty(String, "custom_parameters")
- */
- private $customParameters;
- /**
- * @JsonProperty(List<Long>, "goods_id_list")
- */
- private $goodsIdList;
- /**
- * @JsonProperty(Boolean, "is_brand_goods")
- */
- private $isBrandGoods;
- /**
- * @JsonProperty(String, "keyword")
- */
- private $keyword;
- /**
- * @JsonProperty(String, "list_id")
- */
- private $listId;
- /**
- * @JsonProperty(Integer, "merchant_type")
- */
- private $merchantType;
- /**
- * @JsonProperty(List<Integer>, "merchant_type_list")
- */
- private $merchantTypeList;
- /**
- * @JsonProperty(Long, "opt_id")
- */
- private $optId;
- /**
- * @JsonProperty(Integer, "page")
- */
- private $page;
- /**
- * @JsonProperty(Integer, "page_size")
- */
- private $pageSize;
- /**
- * @JsonProperty(String, "pid")
- */
- private $pid;
- /**
- * @JsonProperty(List<\Com\Pdd\Pop\Sdk\Api\Request\PddDdkGoodsSearchRequest_RangeListItem>, "range_list")
- */
- private $rangeList;
- /**
- * @JsonProperty(Integer, "sort_type")
- */
- private $sortType;
- /**
- * @JsonProperty(Boolean, "with_coupon")
- */
- private $withCoupon;
- /**
- * @JsonProperty(List<Integer>, "block_cats")
- */
- private $blockCats;
- /**
- * @JsonProperty(List<Integer>, "block_cat_packages")
- */
- private $blockCatPackages;
- protected function setUserParams(&$params)
- {
- $this->setUserParam($params, "activity_tags", $this->activityTags);
- $this->setUserParam($params, "cat_id", $this->catId);
- $this->setUserParam($params, "custom_parameters", $this->customParameters);
- $this->setUserParam($params, "goods_id_list", $this->goodsIdList);
- $this->setUserParam($params, "is_brand_goods", $this->isBrandGoods);
- $this->setUserParam($params, "keyword", $this->keyword);
- $this->setUserParam($params, "list_id", $this->listId);
- $this->setUserParam($params, "merchant_type", $this->merchantType);
- $this->setUserParam($params, "merchant_type_list", $this->merchantTypeList);
- $this->setUserParam($params, "opt_id", $this->optId);
- $this->setUserParam($params, "page", $this->page);
- $this->setUserParam($params, "page_size", $this->pageSize);
- $this->setUserParam($params, "pid", $this->pid);
- $this->setUserParam($params, "range_list", $this->rangeList);
- $this->setUserParam($params, "sort_type", $this->sortType);
- $this->setUserParam($params, "with_coupon", $this->withCoupon);
- $this->setUserParam($params, "block_cats", $this->blockCats);
- $this->setUserParam($params, "block_cat_packages", $this->blockCatPackages);
- }
- public function getVersion()
- {
- return "V1";
- }
- public function getDataType()
- {
- return "JSON";
- }
- public function getType()
- {
- return "pdd.ddk.goods.search";
- }
- public function setActivityTags($activityTags)
- {
- $this->activityTags = $activityTags;
- }
- public function setCatId($catId)
- {
- $this->catId = $catId;
- }
- public function setCustomParameters($customParameters)
- {
- $this->customParameters = $customParameters;
- }
- public function setGoodsIdList($goodsIdList)
- {
- $this->goodsIdList = $goodsIdList;
- }
- public function setIsBrandGoods($isBrandGoods)
- {
- $this->isBrandGoods = $isBrandGoods;
- }
- public function setKeyword($keyword)
- {
- $this->keyword = $keyword;
- }
- public function setListId($listId)
- {
- $this->listId = $listId;
- }
- public function setMerchantType($merchantType)
- {
- $this->merchantType = $merchantType;
- }
- public function setMerchantTypeList($merchantTypeList)
- {
- $this->merchantTypeList = $merchantTypeList;
- }
- public function setOptId($optId)
- {
- $this->optId = $optId;
- }
- public function setPage($page)
- {
- $this->page = $page;
- }
- public function setPageSize($pageSize)
- {
- $this->pageSize = $pageSize;
- }
- public function setPid($pid)
- {
- $this->pid = $pid;
- }
- public function setRangeList($rangeList)
- {
- $this->rangeList = $rangeList;
- }
- public function setSortType($sortType)
- {
- $this->sortType = $sortType;
- }
- public function setWithCoupon($withCoupon)
- {
- $this->withCoupon = $withCoupon;
- }
- public function setBlockCats($blockCats)
- {
- $this->blockCats = $blockCats;
- }
- public function setBlockCatPackages($blockCatPackages)
- {
- $this->blockCatPackages = $blockCatPackages;
- }
- }
- class PddDdkGoodsSearchRequest_RangeListItem extends PopBaseJsonEntity
- {
- public function __construct()
- {
- }
- /**
- * @JsonProperty(Long, "range_from")
- */
- private $rangeFrom;
- /**
- * @JsonProperty(Integer, "range_id")
- */
- private $rangeId;
- /**
- * @JsonProperty(Long, "range_to")
- */
- private $rangeTo;
- public function setRangeFrom($rangeFrom)
- {
- $this->rangeFrom = $rangeFrom;
- }
- public function setRangeId($rangeId)
- {
- $this->rangeId = $rangeId;
- }
- public function setRangeTo($rangeTo)
- {
- $this->rangeTo = $rangeTo;
- }
- }
|