Authored by zhaoqi

gateway接口切换

... ... @@ -1852,11 +1852,222 @@ code为200即为成功且只会返回200,每次都会有响应结果。
]
}
]
},
"message": "sort List."
}
#### gateway接口
sort整合在返回的filter的group_sort中
####method=web.regular.groupsort
#### 接口参数
#### 接口返回
```json
{
"alg": "SALT_MD5",
"code": 200,
"data": {
"sort": [
{
"sort_id": "1",
"sort_name": "上衣",
"order_by": "100",
"count": 22712,
"sub": [
{
"sort_id": "11",
"sort_name": "T恤",
"order_by": "50",
"count": 5316
},
{
"sort_id": "412",
"sort_name": "套装",
"order_by": "0",
"count": 26
}
]
},
{
"sort_id": "3",
"sort_name": "裤装",
"order_by": "90",
"count": 5950,
"sub": [
{
"sort_id": "26",
"sort_name": "休闲裤",
"order_by": "30",
"count": 3415
},
{
"sort_id": "347",
"sort_name": "西裤",
"order_by": "0",
"count": 28
}
]
},
{
"sort_id": "6",
"sort_name": "鞋靴",
"order_by": "70",
"count": 3251,
"sub": [
{
"sort_id": "44",
"sort_name": "休闲/运动鞋",
"order_by": "22",
"count": 2002
},
{
"sort_id": "298",
"sort_name": "厚底鞋",
"order_by": "0",
"count": 2
}
]
},
{
"sort_id": "7",
"sort_name": "包类/装备",
"order_by": "60",
"count": 5907,
"sub": [
{
"sort_id": "49",
"sort_name": "双肩包",
"order_by": "20",
"count": 2001
},
{
"sort_id": "350",
"sort_name": "mini包",
"order_by": "0",
"count": 7
}
]
},
{
"sort_id": "8",
"sort_name": "服配",
"order_by": "50",
"count": 7121,
"sub": [
{
"sort_id": "61",
"sort_name": "太阳镜/眼镜",
"order_by": "20",
"count": 1117
},
{
"sort_id": "294",
"sort_name": "口罩",
"order_by": "0",
"count": 2
}
]
},
{
"sort_id": "308",
"sort_name": "内衣/家居服",
"order_by": "40",
"count": 1086,
"sub": [
{
"sort_id": "309",
"sort_name": "内裤",
"order_by": "10",
"count": 683
},
{
"sort_id": "363",
"sort_name": "文胸",
"order_by": "8",
"count": 82
},
{
"sort_id": "356",
"sort_name": "家居服",
"order_by": "6",
"count": 309
},
{
"sort_id": "358",
"sort_name": "家居鞋",
"order_by": "2",
"count": 8
}
]
},
{
"sort_id": "241",
"sort_name": "pinleimingcheng",
"order_by": "22",
"count": 3,
"sub": [
]
},
{
"sort_id": "10",
"sort_name": "创意生活",
"order_by": "20",
"count": 4432,
"sub": [
{
"sort_id": "103",
"sort_name": "数码3C",
"order_by": "28",
"count": 1831
},
{
"sort_id": "259",
"sort_name": "美妆",
"order_by": "20",
"count": 433
}
]
},
{
"sort_id": "360",
"sort_name": "泳衣",
"order_by": "10",
"count": 2,
"sub": [
{
"sort_id": "361",
"sort_name": "泳衣",
"order_by": "0",
"count": 2
}
]
},
{
"sort_id": "365",
"sort_name": "潮童",
"order_by": "0",
"count": 1425,
"sub": [
{
"sort_id": "396",
"sort_name": "卫衣",
"order_by": "0",
"count": 175
},
{
"sort_id": "427",
"sort_name": "手帕",
"order_by": "0",
"count": 1
}
]
}
]
},
"md5": "d2e4119f80394b74e127b8ec3f9b8e2d",
"message": "sort List."
}
```
-------------------------------------------------------
## 四、最近上架
... ... @@ -1887,6 +2098,33 @@ sort整合在返回的filter的group_sort中
#### gateway接口
暂无,需要新增接口
####method=web.regular.recent
#### 请求参数
| 参数名称 | 参数类型 | 可否为空 | 示例 | 默认值 | 备注 |
|:-------| -----:|-----:|-----:|-----:|----:|
|yh_channel|string|是|1|null|频道|
|order|string|是|s_n_desc|null|排序规则|
#### 接口返回
```json
{
"alg": "SALT_MD5",
"code": 200,
"data": {
"recent": {
"2016-06-29": 3,
"2016-06-28": 3,
"2016-06-27": 1,
"2016-06-18": 6,
"2016-06-06": 1,
"2016-06-02": 3,
"2016-05-27": 8
}
},
"md5": "d2e4119f80394b74e127b8ec3f9b8e2d",
"message": "recentShelveDay List."
}
```
## 五、折扣区间
###### 全部折扣(http://list.yohobuy.com/sale?msort=365)
... ... @@ -1920,7 +2158,36 @@ sort整合在返回的filter的group_sort中
-------------------------------------------------------
#### gateway接口
暂无,需要新增接口
#### method=web.regular.discount
#### 请求参数
| 参数名称 | 参数类型 | 可否为空 | 示例 | 默认值 | 备注 |
|:-------| -----:|-----:|-----:|-----:|----:|
|msort|string|是|365|null|一级类目|
#### 接口返回
```json
{
"alg": "SALT_MD5",
"code": 200,
"data": {
"discount": {
"0.01,0.399": {
"count": 33225,
"name": "1~3"
},
"0.4,0.699": {
"count": 63367,
"name": "4~6"
},
"0.7,0.999": {
"count": 28892,
"name": "7~9"
}
}
},
"md5": "d2e4119f80394b74e127b8ec3f9b8e2d",
"message": "discount List."
}
```
## 六、搜索词提示 :
###### 搜索输入框(http://search.yohobuy.com/?query=nike)
... ... @@ -2049,6 +2316,26 @@ method=app.search.fuzzy
-------------------------------------------------------
#### gateway接口
暂无,需要新增接口
#### method=web.search.shopInfo
#### 请求参数
| 参数名称 | 参数类型 | 可否为空 | 示例 | 默认值 | 备注 |
|:-------| -----:|-----:|-----:|-----:|----:|
|keyword|string|否|nike|null|关键词|
#### 接口返回
```json
{
"alg": "SALT_MD5",
"code": 200,
"data": {
"brand_domain": "nike",
"brand_ico": "/2015/04/10/16/02963cdc1aeab10959bfeccc400aaa8de8.jpg",
"brand_name": "Nike",
"id": 248
},
"md5": "d2e4119f80394b74e127b8ec3f9b8e2d",
"message": "shops info"
}
```
## 八、获取品牌列表 :
###### 你可能喜欢的品牌(http://www.yohobuy.com/home)
... ... @@ -2090,7 +2377,45 @@ method=app.search.fuzzy
-------------------------------------------------------
#### gateway接口
暂无,需要新增接口
#### method=web.search.favorBrand
#### 请求参数
| 参数名称 | 参数类型 | 可否为空 | 示例 | 默认值 | 备注 |
|:-------| -----:|-----:|-----:|-----:|----:|
#### 接口返回
```json
{
"alg": "SALT_MD5",
"code": 200,
"data": [
{
"brand_alif": "0",
"brand_domain": "004",
"brand_ico": "/2011/06/26/19/016f21d6a39d5071e1864943253dcdefde.jpg",
"brand_keyword": "004,服装,包类",
"brand_name": "004",
"brand_name_cn": "零零肆12121",
"brand_name_en": "jipeng",
"hot_keyword": "004",
"id": 1,
"is_hot": ""
},
{
"brand_alif": "D",
"brand_domain": "DOUCAN",
"brand_ico": "/2016/06/30/17/011ed7ff4510bcbd4a9e4242cc99b7ff99.jpg",
"brand_keyword": "",
"brand_name": "DOUCAN",
"brand_name_cn": "DOUCAN",
"brand_name_en": "DOUCAN",
"hot_keyword": "",
"id": 1726,
"is_hot": "N"
}
],
"md5": "d2e4119f80394b74e127b8ec3f9b8e2d",
"message": "brands info"
}
```
>
PS: 菜单导航
1、男生(新品到着、 服饰、 鞋履、 包袋、 配饰 · 其他)
... ...
... ... @@ -89,7 +89,125 @@ http://192.168.102.216:8080/yohosearch/search.json?status=1&sales=Y&stocknumber=
##### gateway接口
暂无根据多个skn查询的接口,待新增
method=h5.product.batch
#### 请求参数
| 参数名称 | 参数类型 | 可否为空 | 示例 | 默认值 | 备注 |
|:-------| -----:|-----:|-----:|-----:|----:|
|brand|string|是|649|null|品牌id|
|order|string|是|s_n_desc|null|排序规则|
|limit|int|是|20|20|每页数据大小|
|page|int|是|1|1|当前页|
|productSkn|string|否|5002700,5001700|null|商品skn,多个skn以逗号分隔|
#### 接口返回
```json
{
"alg": "SALT_MD5",
"code": 200,
"data": {
"page": 1,
"page_total": 14,
"product_list": [
{
"brand_domain": "macropus",
"brand_id": 350,
"brand_name": "MACROPUS",
"cn_alphabet": "MACROPUSShuangJianBaoMCPA601BK807",
"default_images": "http://img10.static.yhbimg.com/goodsimg/2016/01/21/07/010fb0f71f0a0dce9619e097d5b9f6eb37.jpg?imageMogr2/thumbnail/{width}x{height}/extent/{width}x{height}/background/d2hpdGU=/position/center/quality/80",
"edit_time": 1457575980,
"gender": "3",
"goods_list": [
{
"color_code": "333333",
"color_id": "2",
"color_name": "黑色",
"color_value": "",
"cover_1": "http://img10.static.yhbimg.com/goodsimg/2016/01/21/07/010fb0f71f0a0dce9619e097d5b9f6eb37.jpg?imageMogr2/thumbnail/{width}x{height}/extent/{width}x{height}/background/d2hpdGU=/position/center/quality/80",
"cover_2": "",
"goods_id": "404967",
"images_url": "http://img10.static.yhbimg.com/goodsimg/2016/01/04/11/018c2c3e31c131f773cd371bdeda2b8a8a.jpg?imageMogr2/thumbnail/{width}x{height}/extent/{width}x{height}/background/d2hpdGU=/position/center/quality/80",
"is_default": "Y",
"product_skc": "306738",
"status": "1"
},
{
"color_code": "0000fe",
"color_id": "7",
"color_name": "蓝色",
"color_value": "",
"cover_1": "",
"cover_2": "http://img13.static.yhbimg.com/goodsimg/2016/01/21/07/021eeadc25e5956078a62766de8c613902.jpg?imageMogr2/thumbnail/{width}x{height}/extent/{width}x{height}/background/d2hpdGU=/position/center/quality/80",
"goods_id": "404969",
"images_url": "http://img12.static.yhbimg.com/goodsimg/2015/12/31/10/0242349adc8ca268b3945553c1e462440a.jpg?imageMogr2/thumbnail/{width}x{height}/extent/{width}x{height}/background/d2hpdGU=/position/center/quality/80",
"is_default": "N",
"product_skc": "306739",
"status": "1"
},
{
"color_code": "b9b7af",
"color_id": "3",
"color_name": "灰色",
"color_value": "",
"cover_1": "",
"cover_2": "http://img11.static.yhbimg.com/goodsimg/2016/01/21/07/017ee07092f40285d9cca35711fca60947.jpg?imageMogr2/thumbnail/{width}x{height}/extent/{width}x{height}/background/d2hpdGU=/position/center/quality/80",
"goods_id": "404971",
"images_url": "http://img11.static.yhbimg.com/goodsimg/2016/01/04/06/015f740b62058711b47dc5a620c7a0ab97.jpg?imageMogr2/thumbnail/{width}x{height}/extent/{width}x{height}/background/d2hpdGU=/position/center/quality/80",
"is_default": "N",
"product_skc": "306740",
"status": "1"
},
{
"color_code": "ee0000",
"color_id": "11",
"color_name": "红色",
"color_value": "",
"cover_1": "http://img12.static.yhbimg.com/goodsimg/2016/01/21/07/022b6e53cfc1ecb42d62cc1a44a1697a7a.jpg?imageMogr2/thumbnail/{width}x{height}/extent/{width}x{height}/background/d2hpdGU=/position/center/quality/80",
"cover_2": "",
"goods_id": "404973",
"images_url": "http://img13.static.yhbimg.com/goodsimg/2016/01/04/05/02820d9667af1de64df0dd4a3ed3489abd.jpg?imageMogr2/thumbnail/{width}x{height}/extent/{width}x{height}/background/d2hpdGU=/position/center/quality/80",
"is_default": "N",
"product_skc": "306741",
"status": "1"
}
],
"is_advance": "N",
"is_discount": "N",
"is_limited": "N",
"is_new": "Y",
"is_outlets": 2,
"is_promotion": 103,
"is_soon_sold_out": "N",
"is_special": "N",
"market_price": 369,
"max_sort_id": 7,
"middle_sort_id": 49,
"product_id": 314499,
"product_name": "MACROPUS 时尚军装系列 双肩包(男女通用)",
"product_skn": 51174855,
"sales_num": 0,
"sales_phrase": "",
"sales_price": 369,
"shelve_time": 1457575980,
"small_sort_id": 152,
"status": 1,
"stock_number": 1073,
"storage_num": 1073,
"tags": [
"is_new"
],
"vip1_price": 350.55,
"vip2_price": 332.1,
"vip3_price": 324.72,
"vip_discount_type": 4,
"vip_price": 295
}
],
"total": 26
},
"md5": "d2e4119f80394b74e127b8ec3f9b8e2d",
"message": "Search List."
}
```
### B.悬停浮动商品列表接口
>访问地址:http://guang.m.yohobuy.com/info/index?id=50853
... ... @@ -177,9 +295,7 @@ http://192.168.102.216:8080/yohosearch/search.json?status=1&sales=Y&stocknumber=
}
##### gateway接口
暂无,待新增
见上面method=h5.product.batch
### C.品牌介绍页面 NEW ARRIVAL 商品列表接口
>访问地址: http://guang.m.yohobuy.com/plustar/brandinfo?id=342&gender=1%2C3
... ...