SearchWareRequest.php 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123
  1. <?php
  2. class SearchWareRequest
  3. {
  4. private $apiParas = array();
  5. public function getApiMethodName(){
  6. return "jingdong.search.ware";
  7. }
  8. public function getApiParas(){
  9. if(empty($this->apiParas)){
  10. return "{}";
  11. }
  12. return $this->apiParas;
  13. }
  14. public function check(){
  15. }
  16. public function putOtherTextParam($key, $value){
  17. $this->apiParas[$key] = $value;
  18. $this->$key = $value;
  19. }
  20. private $version;
  21. public function setVersion($version){
  22. $this->version = $version;
  23. }
  24. public function getVersion(){
  25. return $this->version;
  26. }
  27. private $key;
  28. public function setKey($key){
  29. $this->key = $key;
  30. $this->apiParas["key"] = $key;
  31. }
  32. public function getKey(){
  33. return $this->key;
  34. }
  35. private $filtType;
  36. public function setFiltType($filtType){
  37. $this->filtType = $filtType;
  38. $this->apiParas["filt_type"] = $filtType;
  39. }
  40. public function getFiltType(){
  41. return $this->filtType;
  42. }
  43. private $areaIds;
  44. public function setAreaIds($areaIds){
  45. $this->areaIds = $areaIds;
  46. $this->apiParas["area_ids"] = $areaIds;
  47. }
  48. public function getAreaIds(){
  49. return $this->areaIds;
  50. }
  51. private $sortType;
  52. public function setSortType($sortType){
  53. $this->sortType = $sortType;
  54. $this->apiParas["sort_type"] = $sortType;
  55. }
  56. public function getSortType(){
  57. return $this->sortType;
  58. }
  59. private $page;
  60. public function setPage($page){
  61. $this->page = $page;
  62. $this->apiParas["page"] = $page;
  63. }
  64. public function getPage(){
  65. return $this->page;
  66. }
  67. private $charset;
  68. public function setCharset($charset){
  69. $this->charset = $charset;
  70. $this->apiParas["charset"] = $charset;
  71. }
  72. public function getCharset(){
  73. return $this->charset;
  74. }
  75. private $urlencode;
  76. public function setUrlencode($urlencode){
  77. $this->urlencode = $urlencode;
  78. $this->apiParas["urlencode"] = $urlencode;
  79. }
  80. public function getUrlencode(){
  81. return $this->urlencode;
  82. }
  83. }