优惠券订单及其他脚本

TbkItemRecommendGetRequest.php 1.5KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798
  1. <?php
  2. /**
  3. * TOP API: taobao.tbk.item.recommend.get request
  4. *
  5. * @author auto create
  6. * @since 1.0, 2018.07.25
  7. */
  8. class TbkItemRecommendGetRequest
  9. {
  10. /**
  11. * 返回数量,默认20,最大值40
  12. **/
  13. private $count;
  14. /**
  15. * 需返回的字段列表
  16. **/
  17. private $fields;
  18. /**
  19. * 商品Id
  20. **/
  21. private $numIid;
  22. /**
  23. * 链接形式:1:PC,2:无线,默认:1
  24. **/
  25. private $platform;
  26. private $apiParas = array();
  27. public function setCount($count)
  28. {
  29. $this->count = $count;
  30. $this->apiParas["count"] = $count;
  31. }
  32. public function getCount()
  33. {
  34. return $this->count;
  35. }
  36. public function setFields($fields)
  37. {
  38. $this->fields = $fields;
  39. $this->apiParas["fields"] = $fields;
  40. }
  41. public function getFields()
  42. {
  43. return $this->fields;
  44. }
  45. public function setNumIid($numIid)
  46. {
  47. $this->numIid = $numIid;
  48. $this->apiParas["num_iid"] = $numIid;
  49. }
  50. public function getNumIid()
  51. {
  52. return $this->numIid;
  53. }
  54. public function setPlatform($platform)
  55. {
  56. $this->platform = $platform;
  57. $this->apiParas["platform"] = $platform;
  58. }
  59. public function getPlatform()
  60. {
  61. return $this->platform;
  62. }
  63. public function getApiMethodName()
  64. {
  65. return "taobao.tbk.item.recommend.get";
  66. }
  67. public function getApiParas()
  68. {
  69. return $this->apiParas;
  70. }
  71. public function check()
  72. {
  73. RequestCheckUtil::checkNotNull($this->fields,"fields");
  74. RequestCheckUtil::checkNotNull($this->numIid,"numIid");
  75. }
  76. public function putOtherTextParam($key, $value) {
  77. $this->apiParas[$key] = $value;
  78. $this->$key = $value;
  79. }
  80. }