Showing
2 changed files
with
371 additions
and
0 deletions
docs/PC-搜索文档整理_20160630.md
0 → 100644
This diff could not be displayed because it is too large.
docs/WAP-搜索文档整理.md
0 → 100644
1 | +## 1、搜索商品列表接口 | ||
2 | + | ||
3 | + | ||
4 | +>接口示例:http://192.168.102.216:8080/yohosearch/search.json?status=1&sales=Y&stocknumber=1&attribute_not=2&order=shelve_time%3Adesc&viewNum=60&page=1 | ||
5 | + | ||
6 | + | ||
7 | +### 字段说明 | ||
8 | +------------------------------------------------------- | ||
9 | +|参数名 |值 |描述 | | ||
10 | +|------ |---- |--- | | ||
11 | +|Status |1| 是否上架 1 或 2 | | ||
12 | +|sales |Y | 是否销售 | | ||
13 | +|stocknumber|1 | 库存量如“stocknumber=1”,则过滤出库存量>=1的商品 | | ||
14 | +|attribute_not|2 | 过滤商品属性,attribute_not=2过滤掉赠品 | | ||
15 | +|order |shelve_time:desc | 排序类型 按时间降序 | | ||
16 | +|viewNum |60 | 每页记录数默认为60 | | ||
17 | +|Page |1 | 当前页 | | ||
18 | + | ||
19 | + | ||
20 | +### 响应:code 200即为成功,否则为失败,响应json数据格式为下: | ||
21 | + { | ||
22 | + "code": 200, | ||
23 | + "data": { | ||
24 | + "page": 1, | ||
25 | + "page_total": 896, | ||
26 | + "product_list": [ | ||
27 | + { | ||
28 | + "brand_domain": "jnby", | ||
29 | + "brand_id": 1026, | ||
30 | + "brand_name": "JNBY", | ||
31 | + "cn_alphabet": "5F011001ChenShan", | ||
32 | + "default_images": "/2015/11/09/06/016a0f690a3766648b88c4105d81a69adf.jpg", | ||
33 | + "edit_time": 1467184537, | ||
34 | + "gender": "2", | ||
35 | + "goods_list": [ | ||
36 | + { | ||
37 | + "color_code": "333333", | ||
38 | + "color_id": "2", | ||
39 | + "color_name": "黑色", | ||
40 | + "color_value": "", | ||
41 | + "cover_1": "", | ||
42 | + "cover_2": "", | ||
43 | + "goods_id": "383613", | ||
44 | + "images_url": "/2015/11/09/06/016a0f690a3766648b88c4105d81a69adf.jpg", | ||
45 | + "is_default": "N", | ||
46 | + "product_skc": "295367", | ||
47 | + "status": "1" | ||
48 | + } | ||
49 | + ], | ||
50 | + "is_advance": "N", | ||
51 | + "is_discount": "Y", | ||
52 | + "is_global": "N", | ||
53 | + "is_limited": "N", | ||
54 | + "is_new": "Y", | ||
55 | + "is_outlets": 2, | ||
56 | + "is_promotion": 108, | ||
57 | + "is_soon_sold_out": "N", | ||
58 | + "is_special": "N", | ||
59 | + "market_price": 795, | ||
60 | + "max_sort_id": 1, | ||
61 | + "middle_sort_id": 12, | ||
62 | + "product_id": 299393, | ||
63 | + "product_name": "JNBY 经典黑修身长袖衬衫", | ||
64 | + "product_skn": 51166901, | ||
65 | + "sales_num": 0, | ||
66 | + "sales_phrase": "", | ||
67 | + "sales_price": 33, | ||
68 | + "shelve_time": 1467184537, | ||
69 | + "small_sort_id": 115, | ||
70 | + "status": 1, | ||
71 | + "stock_number": 35, | ||
72 | + "storage_num": 35, | ||
73 | + "vip1_price": 31.35, | ||
74 | + "vip2_price": 29.7, | ||
75 | + "vip3_price": 29.04, | ||
76 | + "vip_discount_type": 1, | ||
77 | + "vip_price": 0, | ||
78 | + "yohood_id": null | ||
79 | + } | ||
80 | + ] , | ||
81 | + "total": 53728 | ||
82 | + }, | ||
83 | + "message": "Search List." | ||
84 | + } | ||
85 | + | ||
86 | +------------------------------------------------------- | ||
87 | + | ||
88 | +## 2、潮流优选->详情页 NEW ARRIVAL 商品列表接口 | ||
89 | + | ||
90 | + | ||
91 | +>接口示例: | ||
92 | +http://192.168.102.216:8080/yohosearch/search.json?status=1&sales=Y&stocknumber=1&attribute_not=2&order=shelve_time%3Adesc&page=1&viewNum=6&brand=700&gender=1%2C3 | ||
93 | + | ||
94 | + | ||
95 | +### 字段说明 | ||
96 | +------------------------------------------------------- | ||
97 | +|参数名 |值 |描述 | | ||
98 | +|------ |---- |--- | | ||
99 | +|Status |1| 是否上架 1 或 2 | | ||
100 | +|sales |Y | 是否销售 | | ||
101 | +|stocknumber|1 | 库存量如“stocknumber=1”,则过滤出库存量>=1的商品 | | ||
102 | +|attribute_not|2 | 过滤商品属性,attribute_not=2过滤掉赠品 | | ||
103 | +|order |shelve_time:desc | 排序类型 按时间降序 | | ||
104 | +|viewNum |60 | 每页记录数默认为60 | | ||
105 | +|brand |700 | 品牌 | | ||
106 | +|gender|1,2,3 | 性别1-男2-女3-通用查多个性别以逗号分隔 | | ||
107 | + | ||
108 | + | ||
109 | + | ||
110 | + | ||
111 | +### 响应:code 200即为成功,否则为失败,响应json数据格式为下: | ||
112 | + { | ||
113 | + "code": 200, | ||
114 | + "data": { | ||
115 | + "page": 1, | ||
116 | + "page_total": 6, | ||
117 | + "product_list": [ | ||
118 | + { | ||
119 | + "brand_domain": "misbhv", | ||
120 | + "brand_id": 700, | ||
121 | + "brand_name": "MISBHV", | ||
122 | + "cn_alphabet": "MISBHVAFTERDARKFLEECETURTLENECKBLACKNO139HeiSe", | ||
123 | + "default_images": "/2015/09/14/02/026cfec8af9928bb187806526746dc1afa.jpg", | ||
124 | + "edit_time": 1442417903, | ||
125 | + "gender": "3", | ||
126 | + "goods_list": [ | ||
127 | + { | ||
128 | + "color_code": "333333", | ||
129 | + "color_id": "2", | ||
130 | + "color_name": "黑色", | ||
131 | + "color_value": "", | ||
132 | + "cover_1": "/2015/09/30/05/01c44a368224daffcc4619506dd18d6e44.jpg", | ||
133 | + "cover_2": "", | ||
134 | + "goods_id": "311487", | ||
135 | + "images_url": "/2015/09/14/02/026cfec8af9928bb187806526746dc1afa.jpg", | ||
136 | + "is_default": "N", | ||
137 | + "product_skc": "257101", | ||
138 | + "status": "1" | ||
139 | + } | ||
140 | + ], | ||
141 | + "is_advance": "N", | ||
142 | + "is_discount": "Y", | ||
143 | + "is_global": "N", | ||
144 | + "is_limited": "N", | ||
145 | + "is_new": "N", | ||
146 | + "is_outlets": 2, | ||
147 | + "is_promotion": 104, | ||
148 | + "is_soon_sold_out": "N", | ||
149 | + "is_special": "N", | ||
150 | + "market_price": 729, | ||
151 | + "max_sort_id": 1, | ||
152 | + "middle_sort_id": 16, | ||
153 | + "product_id": 237093, | ||
154 | + "product_name": "MISBHV After Dark fleece turtleneck", | ||
155 | + "product_skn": 51133401, | ||
156 | + "sales_num": 0, | ||
157 | + "sales_phrase": "", | ||
158 | + "sales_price": 649, | ||
159 | + "shelve_time": 1450491360, | ||
160 | + "small_sort_id": 119, | ||
161 | + "status": 1, | ||
162 | + "stock_number": 9, | ||
163 | + "storage_num": 9, | ||
164 | + "vip1_price": 0, | ||
165 | + "vip2_price": 0, | ||
166 | + "vip3_price": 0, | ||
167 | + "vip_discount_type": 3, | ||
168 | + "vip_price": 0, | ||
169 | + "yohood_id": null | ||
170 | + } | ||
171 | + ], | ||
172 | + "total": 36 | ||
173 | + }, | ||
174 | + "message": "Search List." | ||
175 | + } | ||
176 | + | ||
177 | +------------------------------------------------------- | ||
178 | + | ||
179 | +## 3、品牌详情页商品列表接口 | ||
180 | + | ||
181 | + | ||
182 | +>接口示例: | ||
183 | +http://192.168.102.216:8080/yohosearch/search.json?status=1&sales=Y&stocknumber=1&attribute_not=2&order=shelve_time%3Adesc&viewNum=60&brand=208&page=1 | ||
184 | + | ||
185 | + | ||
186 | +### 字段说明 | ||
187 | +------------------------------------------------------- | ||
188 | +|参数名 |值 |描述 | | ||
189 | +|------ |---- |--- | | ||
190 | +|Status |1| 是否上架 1 或 2 | | ||
191 | +|sales |Y | 是否销售 | | ||
192 | +|stocknumber|1 | 库存量如“stocknumber=1”,则过滤出库存量>=1的商品 | | ||
193 | +|attribute_not|2 | 过滤商品属性,attribute_not=2过滤掉赠品 | | ||
194 | +|order |shelve_time:desc | 排序类型 按时间降序 | | ||
195 | +|viewNum |60 | 每页记录数默认为60 | | ||
196 | +|brand |208 | 品牌 | | ||
197 | +|Page|1 | 当前页码 | | ||
198 | + | ||
199 | + | ||
200 | + | ||
201 | + | ||
202 | +### 响应:code 200即为成功,否则为失败,响应json数据格式为下: | ||
203 | + { | ||
204 | + "code": 200, | ||
205 | + "data": { | ||
206 | + "page": 1, | ||
207 | + "page_total": 8, | ||
208 | + "product_list": [ | ||
209 | + { | ||
210 | + "brand_domain": "lal", | ||
211 | + "brand_id": 208, | ||
212 | + "brand_name": "Life·After Life", | ||
213 | + "cn_alphabet": "LALA503SW137BKX2LIFEAFTERLIFEHaShiQiKaTongTuAnYuanLingMaoYi", | ||
214 | + "default_images": "/2015/10/21/03/02c9147bee49f1793f1d086d3b41d2b7a7.jpg", | ||
215 | + "edit_time": 1452741155, | ||
216 | + "gender": "3", | ||
217 | + "goods_list": [ | ||
218 | + { | ||
219 | + "color_code": "333333", | ||
220 | + "color_id": "2", | ||
221 | + "color_name": "黑色", | ||
222 | + "color_value": "", | ||
223 | + "cover_1": "", | ||
224 | + "cover_2": "/2015/10/26/01/02bef6b0cd3675a2e3572b68053da3fd60.jpg", | ||
225 | + "goods_id": "371821", | ||
226 | + "images_url": "/2015/10/21/03/02c9147bee49f1793f1d086d3b41d2b7a7.jpg", | ||
227 | + "is_default": "Y", | ||
228 | + "product_skc": "290265", | ||
229 | + "status": "1" | ||
230 | + }, | ||
231 | + { | ||
232 | + "color_code": "333333", | ||
233 | + "color_id": "2", | ||
234 | + "color_name": "黑色", | ||
235 | + "color_value": "", | ||
236 | + "cover_1": "/2015/11/02/08/01fef6dd7c123082f705613db836e6ed10.jpg", | ||
237 | + "cover_2": "", | ||
238 | + "goods_id": "371821", | ||
239 | + "images_url": "/2015/10/21/03/02c9147bee49f1793f1d086d3b41d2b7a7.jpg", | ||
240 | + "is_default": "Y", | ||
241 | + "product_skc": "290265", | ||
242 | + "status": "1" | ||
243 | + } | ||
244 | + ], | ||
245 | + "is_advance": "N", | ||
246 | + "is_discount": "Y", | ||
247 | + "is_global": "N", | ||
248 | + "is_limited": "N", | ||
249 | + "is_new": "N", | ||
250 | + "is_outlets": 2, | ||
251 | + "is_promotion": 101, | ||
252 | + "is_soon_sold_out": "N", | ||
253 | + "is_special": "N", | ||
254 | + "market_price": 319, | ||
255 | + "max_sort_id": 1, | ||
256 | + "middle_sort_id": 257, | ||
257 | + "product_id": 289723, | ||
258 | + "product_name": "Life·After Life 哈士奇卡通图案圆领毛衣【吴亦凡亲身试着】测试加价购商品名称过长显示", | ||
259 | + "product_skn": 51162543, | ||
260 | + "sales_num": 0, | ||
261 | + "sales_phrase": "跳楼大甩卖!", | ||
262 | + "sales_price": 129, | ||
263 | + "shelve_time": 1452741155, | ||
264 | + "small_sort_id": 258, | ||
265 | + "status": 1, | ||
266 | + "stock_number": 4742, | ||
267 | + "storage_num": 4742, | ||
268 | + "vip1_price": 0, | ||
269 | + "vip2_price": 0, | ||
270 | + "vip3_price": 0, | ||
271 | + "vip_discount_type": 1, | ||
272 | + "vip_price": 0, | ||
273 | + "yohood_id": null | ||
274 | + } | ||
275 | + ], | ||
276 | + "total": 445 | ||
277 | + }, | ||
278 | + "message": "Search List." | ||
279 | + } | ||
280 | + | ||
281 | +------------------------------------------------------- | ||
282 | + | ||
283 | +## 4、逛->相关推荐 | ||
284 | + | ||
285 | + | ||
286 | +>接口示例: | ||
287 | +http://192.168.102.216:8080/yohosearch/search.json?status=1&sales=Y&stocknumber=1&attribute_not=2&order=shelve_time%3Adesc&page=1&viewNum=5&query=51159630+51159661+51180447+51180452+51159636 | ||
288 | + | ||
289 | + | ||
290 | +### 字段说明 | ||
291 | +------------------------------------------------------- | ||
292 | +|参数名 |值 |描述 | | ||
293 | +|------ |---- |--- | | ||
294 | +|Status |1| 是否上架 1 或 2 | | ||
295 | +|sales |Y | 是否销售 | | ||
296 | +|stocknumber|1 | 库存量如“stocknumber=1”,则过滤出库存量>=1的商品 | | ||
297 | +|attribute_not|2 | 过滤商品属性,attribute_not=2过滤掉赠品 | | ||
298 | +|order |shelve_time:desc | 排序类型 按时间降序 | | ||
299 | +|Page|1 | 当前页码 | | ||
300 | +|viewNum |5 | 每页记录数默认为5 | | ||
301 | +|brand |700 | 品牌 | | ||
302 | +|query |51159630+51159661+51180447+51180452+51159636 | 关键字 | | ||
303 | + | ||
304 | + | ||
305 | + | ||
306 | + | ||
307 | +### 响应:code 200即为成功,否则为失败,响应json数据格式为下: | ||
308 | + { | ||
309 | + "code": 200, | ||
310 | + "data": { | ||
311 | + "page": 1, | ||
312 | + "page_total": 1, | ||
313 | + "product_list": [ | ||
314 | + { | ||
315 | + "brand_domain": "calvinklein", | ||
316 | + "brand_id": 1016, | ||
317 | + "brand_name": "Calvin Klein", | ||
318 | + "cn_alphabet": "CALVINKLEINLADIESXiLieJingZuanJingGangCaiZhiNvXingWanBiaoK4323104", | ||
319 | + "default_images": "/2016/01/05/02/0254660b4cb2f246795983acd8aa285898.jpg", | ||
320 | + "edit_time": 1451963868, | ||
321 | + "gender": "2", | ||
322 | + "goods_list": [ | ||
323 | + { | ||
324 | + "color_code": "333333", | ||
325 | + "color_id": "2", | ||
326 | + "color_name": "黑色", | ||
327 | + "color_value": "", | ||
328 | + "cover_1": "", | ||
329 | + "cover_2": "", | ||
330 | + "goods_id": "417385", | ||
331 | + "images_url": "/2016/01/05/02/0254660b4cb2f246795983acd8aa285898.jpg", | ||
332 | + "is_default": "Y", | ||
333 | + "product_skc": "314586", | ||
334 | + "status": "1" | ||
335 | + } | ||
336 | + ], | ||
337 | + "is_advance": "N", | ||
338 | + "is_discount": "Y", | ||
339 | + "is_global": "N", | ||
340 | + "is_limited": "N", | ||
341 | + "is_new": "N", | ||
342 | + "is_outlets": 2, | ||
343 | + "is_promotion": 0, | ||
344 | + "is_soon_sold_out": "N", | ||
345 | + "is_special": "N", | ||
346 | + "market_price": 2400, | ||
347 | + "max_sort_id": 8, | ||
348 | + "middle_sort_id": 59, | ||
349 | + "product_id": 324255, | ||
350 | + "product_name": "Calvin Klein Ladies系列晶钻女性腕表(黑色)K4323104", | ||
351 | + "product_skn": 51180452, | ||
352 | + "sales_num": 0, | ||
353 | + "sales_phrase": "", | ||
354 | + "sales_price": 1399, | ||
355 | + "shelve_time": 1452562800, | ||
356 | + "small_sort_id": 162, | ||
357 | + "status": 1, | ||
358 | + "stock_number": 3, | ||
359 | + "storage_num": 3, | ||
360 | + "vip1_price": 0, | ||
361 | + "vip2_price": 0, | ||
362 | + "vip3_price": 0, | ||
363 | + "vip_discount_type": 1, | ||
364 | + "vip_price": 0, | ||
365 | + "yohood_id": null | ||
366 | + } | ||
367 | + ], | ||
368 | + "total": 5 | ||
369 | + }, | ||
370 | + "message": "Search List." | ||
371 | + } |
-
Please register or login to post a comment