PddGoodsMaterialCreateRequest.php 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  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 PddGoodsMaterialCreateRequest extends PopBaseHttpRequest
  6. {
  7. public function __construct()
  8. {
  9. }
  10. /**
  11. * @JsonProperty(String, "content")
  12. */
  13. private $content;
  14. /**
  15. * @JsonProperty(Long, "file_id")
  16. */
  17. private $fileId;
  18. /**
  19. * @JsonProperty(Long, "goods_id")
  20. */
  21. private $goodsId;
  22. /**
  23. * @JsonProperty(Integer, "material_type")
  24. */
  25. private $materialType;
  26. protected function setUserParams(&$params)
  27. {
  28. $this->setUserParam($params, "content", $this->content);
  29. $this->setUserParam($params, "file_id", $this->fileId);
  30. $this->setUserParam($params, "goods_id", $this->goodsId);
  31. $this->setUserParam($params, "material_type", $this->materialType);
  32. }
  33. public function getVersion()
  34. {
  35. return "V1";
  36. }
  37. public function getDataType()
  38. {
  39. return "JSON";
  40. }
  41. public function getType()
  42. {
  43. return "pdd.goods.material.create";
  44. }
  45. public function setContent($content)
  46. {
  47. $this->content = $content;
  48. }
  49. public function setFileId($fileId)
  50. {
  51. $this->fileId = $fileId;
  52. }
  53. public function setGoodsId($goodsId)
  54. {
  55. $this->goodsId = $goodsId;
  56. }
  57. public function setMaterialType($materialType)
  58. {
  59. $this->materialType = $materialType;
  60. }
  61. }