| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778 |
- <?php
- namespace Com\Pdd\Pop\Sdk\Api\Request;
- use Com\Pdd\Pop\Sdk\PopBaseHttpRequest;
- use Com\Pdd\Pop\Sdk\PopBaseJsonEntity;
- class PddGoodsMaterialCreateRequest extends PopBaseHttpRequest
- {
- public function __construct()
- {
- }
- /**
- * @JsonProperty(String, "content")
- */
- private $content;
- /**
- * @JsonProperty(Long, "file_id")
- */
- private $fileId;
- /**
- * @JsonProperty(Long, "goods_id")
- */
- private $goodsId;
- /**
- * @JsonProperty(Integer, "material_type")
- */
- private $materialType;
- protected function setUserParams(&$params)
- {
- $this->setUserParam($params, "content", $this->content);
- $this->setUserParam($params, "file_id", $this->fileId);
- $this->setUserParam($params, "goods_id", $this->goodsId);
- $this->setUserParam($params, "material_type", $this->materialType);
- }
- public function getVersion()
- {
- return "V1";
- }
- public function getDataType()
- {
- return "JSON";
- }
- public function getType()
- {
- return "pdd.goods.material.create";
- }
- public function setContent($content)
- {
- $this->content = $content;
- }
- public function setFileId($fileId)
- {
- $this->fileId = $fileId;
- }
- public function setGoodsId($goodsId)
- {
- $this->goodsId = $goodsId;
- }
- public function setMaterialType($materialType)
- {
- $this->materialType = $materialType;
- }
- }
|