| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117 |
- <?php
- namespace Com\Pdd\Pop\Sdk\Api\Request;
- use Com\Pdd\Pop\Sdk\PopBaseHttpRequest;
- use Com\Pdd\Pop\Sdk\PopBaseJsonEntity;
- class PddGoodsSpuSearchRequest extends PopBaseHttpRequest
- {
- public function __construct()
- {
- }
- /**
- * @JsonProperty(Long, "cat_id")
- */
- private $catId;
- /**
- * @JsonProperty(List<\Com\Pdd\Pop\Sdk\Api\Request\PddGoodsSpuSearchRequest_KeyPropItem>, "key_prop")
- */
- private $keyProp;
- /**
- * @JsonProperty(String, "spu_name")
- */
- private $spuName;
- protected function setUserParams(&$params)
- {
- $this->setUserParam($params, "cat_id", $this->catId);
- $this->setUserParam($params, "key_prop", $this->keyProp);
- $this->setUserParam($params, "spu_name", $this->spuName);
- }
- public function getVersion()
- {
- return "V1";
- }
- public function getDataType()
- {
- return "JSON";
- }
- public function getType()
- {
- return "pdd.goods.spu.search";
- }
- public function setCatId($catId)
- {
- $this->catId = $catId;
- }
- public function setKeyProp($keyProp)
- {
- $this->keyProp = $keyProp;
- }
- public function setSpuName($spuName)
- {
- $this->spuName = $spuName;
- }
- }
- class PddGoodsSpuSearchRequest_KeyPropItem extends PopBaseJsonEntity
- {
- public function __construct()
- {
- }
- /**
- * @JsonProperty(Long, "ref_pid")
- */
- private $refPid;
- /**
- * @JsonProperty(String, "value_unit")
- */
- private $valueUnit;
- /**
- * @JsonProperty(String, "value")
- */
- private $value;
- /**
- * @JsonProperty(Long, "vid")
- */
- private $vid;
- public function setRefPid($refPid)
- {
- $this->refPid = $refPid;
- }
- public function setValueUnit($valueUnit)
- {
- $this->valueUnit = $valueUnit;
- }
- public function setValue($value)
- {
- $this->value = $value;
- }
- public function setVid($vid)
- {
- $this->vid = $vid;
- }
- }
|