GoodsSearchParamBean.php 6.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346
  1. <?php
  2. namespace App\Http\Bean\Util\Pdd\Ddk;
  3. use App\Http\Bean\BaseBean;
  4. class GoodsSearchParamBean extends BaseBean
  5. {
  6. /**
  7. * 活动商品标记数组,例:[4,7],4-秒杀,7-百亿补贴,10851-千万补贴,31-品牌黑标,10564-精选爆品-官方直推爆款,10584-精选爆品-团长推荐,24-品牌高佣,其他的值请忽略
  8. */
  9. private $activity_tags;
  10. /**
  11. * 自定义屏蔽一级/二级/三级类目ID,自定义数量不超过20个;使用pdd.goods.cats.get接口获取cat_id
  12. */
  13. private $block_cats;
  14. /**
  15. * 屏蔽商品类目包:1-拼多多小程序屏蔽的类目&关键词;2-虚拟类目;3-医疗器械;4-处方药;5-非处方药
  16. */
  17. private $block_cat_packages;
  18. /**
  19. * 商品类目ID,使用pdd.goods.cats.get接口获取
  20. */
  21. private $cat_id;
  22. /**
  23. * 自定义参数json
  24. */
  25. private $custom_parameters;
  26. /**
  27. * 商品goodsSign列表,例如:["c9r2omogKFFAc7WBwvbZU1ikIb16_J3CTa8HNN"]
  28. */
  29. private $goods_sign_list;
  30. /**
  31. * 是否为品牌商品
  32. */
  33. private $is_brand_goods;
  34. /**
  35. * 商品关键词,与opt_id字段选填一个或全部填写。可支持goods_id、拼多多链接(即拼多多app商详的链接)、进宝长链/短链(即为pdd.ddk.goods.promotion.url.generate接口生成的长短链)
  36. */
  37. private $keyword;
  38. /**
  39. * 翻页时建议填写前页返回的list_id值
  40. */
  41. private $list_id;
  42. /**
  43. * 店铺类型,1-个人,2-企业,3-旗舰店,4-专卖店,5-专营店,6-普通店(未传为全部)
  44. */
  45. private $merchant_type;
  46. /**
  47. * 店铺类型数组,例如:[1,2]
  48. */
  49. private $merchant_type_list;
  50. /**
  51. * 商品标签类目ID,使用pdd.goods.opt.get获取
  52. */
  53. private $opt_id;
  54. /**
  55. * 第几页
  56. */
  57. private $page;
  58. /**
  59. * 每页数量
  60. */
  61. private $page_size;
  62. /**
  63. * 推广位ID
  64. */
  65. private $pid;
  66. /**
  67. * 筛选范围列表 样例:[{"range_id":0,"range_from":1,"range_to":1500},{"range_id":1,"range_from":1,"range_to":1500}]
  68. */
  69. private $range_list;
  70. /**
  71. * @return mixed
  72. */
  73. public function getActivityTags()
  74. {
  75. return $this->activity_tags;
  76. }
  77. /**
  78. * @param mixed $activity_tags
  79. */
  80. public function setActivityTags($activity_tags)
  81. {
  82. $this->activity_tags = $activity_tags;
  83. }
  84. /**
  85. * @return mixed
  86. */
  87. public function getBlockCats()
  88. {
  89. return $this->block_cats;
  90. }
  91. /**
  92. * @param mixed $block_cats
  93. */
  94. public function setBlockCats($block_cats)
  95. {
  96. $this->block_cats = $block_cats;
  97. }
  98. /**
  99. * @return mixed
  100. */
  101. public function getBlockCatPackages()
  102. {
  103. return $this->block_cat_packages;
  104. }
  105. /**
  106. * @param mixed $block_cat_packages
  107. */
  108. public function setBlockCatPackages($block_cat_packages)
  109. {
  110. $this->block_cat_packages = $block_cat_packages;
  111. }
  112. /**
  113. * @return mixed
  114. */
  115. public function getCatId()
  116. {
  117. return $this->cat_id;
  118. }
  119. /**
  120. * @param mixed $cat_id
  121. */
  122. public function setCatId($cat_id)
  123. {
  124. $this->cat_id = $cat_id;
  125. }
  126. /**
  127. * @return mixed
  128. */
  129. public function getCustomParameters()
  130. {
  131. return $this->custom_parameters;
  132. }
  133. /**
  134. * @param mixed $custom_parameters
  135. */
  136. public function setCustomParameters($custom_parameters)
  137. {
  138. $this->custom_parameters = $custom_parameters;
  139. }
  140. /**
  141. * @return mixed
  142. */
  143. public function getGoodsSignList()
  144. {
  145. return $this->goods_sign_list;
  146. }
  147. /**
  148. * @param mixed $goods_sign_list
  149. */
  150. public function setGoodsSignList($goods_sign_list)
  151. {
  152. $this->goods_sign_list = $goods_sign_list;
  153. }
  154. /**
  155. * @return mixed
  156. */
  157. public function getIsBrandGoods()
  158. {
  159. return $this->is_brand_goods;
  160. }
  161. /**
  162. * @param mixed $is_brand_goods
  163. */
  164. public function setIsBrandGoods($is_brand_goods)
  165. {
  166. $this->is_brand_goods = $is_brand_goods;
  167. }
  168. /**
  169. * @return mixed
  170. */
  171. public function getKeyword()
  172. {
  173. return $this->keyword;
  174. }
  175. /**
  176. * @param mixed $keyword
  177. */
  178. public function setKeyword($keyword)
  179. {
  180. $this->keyword = $keyword;
  181. }
  182. /**
  183. * @return mixed
  184. */
  185. public function getListId()
  186. {
  187. return $this->list_id;
  188. }
  189. /**
  190. * @param mixed $list_id
  191. */
  192. public function setListId($list_id)
  193. {
  194. $this->list_id = $list_id;
  195. }
  196. /**
  197. * @return mixed
  198. */
  199. public function getMerchantType()
  200. {
  201. return $this->merchant_type;
  202. }
  203. /**
  204. * @param mixed $merchant_type
  205. */
  206. public function setMerchantType($merchant_type)
  207. {
  208. $this->merchant_type = $merchant_type;
  209. }
  210. /**
  211. * @return mixed
  212. */
  213. public function getMerchantTypeList()
  214. {
  215. return $this->merchant_type_list;
  216. }
  217. /**
  218. * @param mixed $merchant_type_list
  219. */
  220. public function setMerchantTypeList($merchant_type_list)
  221. {
  222. $this->merchant_type_list = $merchant_type_list;
  223. }
  224. /**
  225. * @return mixed
  226. */
  227. public function getOptId()
  228. {
  229. return $this->opt_id;
  230. }
  231. /**
  232. * @param mixed $opt_id
  233. */
  234. public function setOptId($opt_id)
  235. {
  236. $this->opt_id = $opt_id;
  237. }
  238. /**
  239. * @return mixed
  240. */
  241. public function getPage()
  242. {
  243. return $this->page;
  244. }
  245. /**
  246. * @param mixed $page
  247. */
  248. public function setPage($page)
  249. {
  250. $this->page = $page;
  251. }
  252. /**
  253. * @return mixed
  254. */
  255. public function getPageSize()
  256. {
  257. return $this->page_size;
  258. }
  259. /**
  260. * @param mixed $page_size
  261. */
  262. public function setPageSize($page_size)
  263. {
  264. $this->page_size = $page_size;
  265. }
  266. /**
  267. * @return mixed
  268. */
  269. public function getPid()
  270. {
  271. return $this->pid;
  272. }
  273. /**
  274. * @param mixed $pid
  275. */
  276. public function setPid($pid)
  277. {
  278. $this->pid = $pid;
  279. }
  280. /**
  281. * @return mixed
  282. */
  283. public function getRangeList()
  284. {
  285. return $this->range_list;
  286. }
  287. /**
  288. * @param mixed $range_list
  289. */
  290. public function setRangeList($range_list)
  291. {
  292. $this->range_list = $range_list;
  293. }
  294. }