Aucune description

TbkUatmFavoritesGetRequest.php 1.6KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697
  1. <?php
  2. /**
  3. * TOP API: taobao.tbk.uatm.favorites.get request
  4. *
  5. * @author auto create
  6. * @since 1.0, 2018.01.19
  7. */
  8. class TbkUatmFavoritesGetRequest
  9. {
  10. /**
  11. * 需要返回的字段列表,不能为空,字段名之间使用逗号分隔
  12. **/
  13. private $fields;
  14. /**
  15. * 第几页,从1开始计数
  16. **/
  17. private $pageNo;
  18. /**
  19. * 默认20,页大小,即每一页的活动个数
  20. **/
  21. private $pageSize;
  22. /**
  23. * 默认值-1;选品库类型,1:普通选品组,2:高佣选品组,-1,同时输出所有类型的选品组
  24. **/
  25. private $type;
  26. private $apiParas = array();
  27. public function setFields($fields)
  28. {
  29. $this->fields = $fields;
  30. $this->apiParas["fields"] = $fields;
  31. }
  32. public function getFields()
  33. {
  34. return $this->fields;
  35. }
  36. public function setPageNo($pageNo)
  37. {
  38. $this->pageNo = $pageNo;
  39. $this->apiParas["page_no"] = $pageNo;
  40. }
  41. public function getPageNo()
  42. {
  43. return $this->pageNo;
  44. }
  45. public function setPageSize($pageSize)
  46. {
  47. $this->pageSize = $pageSize;
  48. $this->apiParas["page_size"] = $pageSize;
  49. }
  50. public function getPageSize()
  51. {
  52. return $this->pageSize;
  53. }
  54. public function setType($type)
  55. {
  56. $this->type = $type;
  57. $this->apiParas["type"] = $type;
  58. }
  59. public function getType()
  60. {
  61. return $this->type;
  62. }
  63. public function getApiMethodName()
  64. {
  65. return "taobao.tbk.uatm.favorites.get";
  66. }
  67. public function getApiParas()
  68. {
  69. return $this->apiParas;
  70. }
  71. public function check()
  72. {
  73. RequestCheckUtil::checkNotNull($this->fields,"fields");
  74. }
  75. public function putOtherTextParam($key, $value) {
  76. $this->apiParas[$key] = $value;
  77. $this->$key = $value;
  78. }
  79. }