Authored by liyalin

品牌品类改版

## 1、每个三级品类每个用户一个skn##
(method=app.sort.sknBigData)
请求方式:get
#### 请求参数
| 参数名称 | 参数类型 | 可否为空 | 示例 | 默认值 | 备注 |
|:-------| -----:|-----:|-----:|-----:|----:|
|uid|String|是|10961107|null|用户ID|
|udid|String|是|7ce5433b0eb9b527599fd5ef319773bc2f5d94d8|null|设备号|
|channel_id|Integer| 是| 1|null|频道|
|msort|String|是|8|null|产品大分类(二级品类)Id|
|app_type|int|是|null|0|客户端类型 0:有货 1:BLK|
注意,通用的头部没有列出。
请求示例
http://devapi.yohops.com?app_version=4.9.2&client_type=h5&method=app.sort.sknBigData&os_version=yohobuy%3Ah5&screen_size=720x1280&session_key=&debug=XYZ&channel_id=1&msort=8&uid=9963947&v=7&client_secret=420eeac80e35c7d5b2e1916a458fa5c3
### 响应
code为200即为成功且只会返回200,每次都会有响应结果。
响应JSON格式如下所示:
```json
{
"alg": "SALT_MD5",
"code": 200,
"data": {
"bannerImage": "http://img12.static.yhbimg.com/goodsimg/2015/11/28/02/027aa96b62c1bade16b8d441ca614f8054.jpg?imageMogr2/thumbnail/{width}x{height}/extent/{width}x{height}/background/d2hpdGU=/position/center/quality/80"
"sortSknInfo":[
{
"product_skn": 51144625,
"category_name": "羽绒服",
"category_id": "215",
"default_images": "http://img13.static.yhbimg.com/goodsimg/2015/09/28/05/02763f68a785ef6b67e5f225752988240d.jpg?imageMogr2/thumbnail/{width}x{height}/extent/{width}x{height}/background/d2hpdGU=/position/center/quality/80"
},
{
"product_skn": 51148345,
"category_name": "棉服",
"category_id": "51",
"default_images": "http://img11.static.yhbimg.com/goodsimg/2015/11/10/06/01b607ceadd565ad20a8a9d9d4d739fa14.jpg?imageMogr2/thumbnail/{width}x{height}/extent/{width}x{height}/background/d2hpdGU=/position/center/quality/80"
}
]
}
"md5": "08ec4fb8e05e4bc2617fd89bdf1793f8",
"message": "sort skn Info"
}
```
## 2、每个二级品类每个uid推荐6个品牌##
(method=app.sort.brandBigData)
#### 请求参数
| 参数名称 | 参数类型 | 可否为空 | 示例 | 默认值 | 备注 |
|:-------| -----:|-----:|-----:|-----:|----:|
|uid|String|是|10961107|null|用户ID|
|udid|String|是|7ce5433b0eb9b527599fd5ef319773bc2f5d94d8|null|设备号|
|channel_id|Integer| 是| 1|null|频道|
|msort|String|是|8|null|产品大分类(二级品类)Id|
|app_type|int|是|null|0|客户端类型 0:有货 1:BLK|
注意,通用的头部没有列出,同原来收藏品牌接口。
请求示例
http://devapi.yohops.com?app_version=4.9.2&client_type=h5&method=app.sort.sknBigData&os_version=yohobuy%3Ah5&screen_size=720x1280&session_key=&debug=XYZ&channel_id=1&msort=8&uid=9963947&v=7&client_secret=420eeac80e35c7d5b2e1916a458fa5c3
### 响应
code为200即为成功,否则是失败。
响应JSON格式如下所示:
```json
{
"alg": "SALT_MD5",
"code": 200,
"data": [
{
"brand_id": 444,
"brand_name": "EVD",
"brand_ico": "http://img12.static.yhbimg.com/brandLogo/2015/12/03/15/0266c8e46764959ef4fb7f34cb894017a6.jpg?imageMogr2/thumbnail/{width}x{height}/extent/{width}x{height}/background/d2hpdGU=/position/center/quality/80"
},
{
"brand_id": 560,
"brand_name": "GAWS",
"brand_ico": "http://img10.static.yhbimg.com/brandLogo/2014/06/30/10/01fd000f9e01e7b65155a91f89a2217982.jpg?imageMogr2/thumbnail/{width}x{height}/extent/{width}x{height}/background/d2hpdGU=/position/center/quality/80"
},
{
"brand_id": 144,
"brand_name": "VANS",
"brand_ico": "http://img12.static.yhbimg.com/brandLogo/2015/12/09/14/027499d999bcd003cccf4272340b8603fc.jpg?imageMogr2/thumbnail/{width}x{height}/extent/{width}x{height}/background/d2hpdGU=/position/center/quality/80"
},
{
"brand_id": 208,
"brand_name": "Life·After Life",
"brand_ico": "http://img11.static.yhbimg.com/brandLogo/2014/02/07/13/0118e52b6f94d0f566bb6e17b1a08ac165.png?imageMogr2/thumbnail/{width}x{height}/extent/{width}x{height}/background/d2hpdGU=/position/center/quality/80"
},
{
"brand_id": 354,
"brand_name": "CHEAP MONDAY",
"brand_ico": "http://img12.static.yhbimg.com/brandLogo/2015/12/10/09/0227bbdc3f9a25875134271a1c603613bb.jpg?imageMogr2/thumbnail/{width}x{height}/extent/{width}x{height}/background/d2hpdGU=/position/center/quality/80"
}
],
"md5": "8cd05100f51bdaed7fd4380e71e3af5b",
"message": "sort brand info"
}
```
## 3、每个频道每个用户给出13个品牌##
(method=app.channel.brandBigData)
#### 请求参数
| 参数名称 | 参数类型 | 可否为空 | 示例 | 默认值 | 备注 |
|:-------| -----:|-----:|-----:|-----:|----:|
|uid|String|是|10961107|null|用户ID|
|udid|String|是|7ce5433b0eb9b527599fd5ef319773bc2f5d94d8|null|设备号|
|channel_id|Integer| 是| 1|null|频道|
|app_type|int|是|null|0|客户端类型 0:有货 1:BLK|
注意,通用的头部没有列出,同原来取消收藏品牌接口。
请求示例
http://devapi.yohops.com?app_version=4.9.2&client_type=h5&method=app.sort.sknBigData&os_version=yohobuy%3Ah5&screen_size=720x1280&session_key=&debug=XYZ&channel_id=1&uid=9963947&v=7&client_secret=420eeac80e35c7d5b2e1916a458fa5c3
### 响应
code为200即为成功,否则是失败。
响应JSON格式如下所示:
```json
{
"alg": "SALT_MD5",
"code": 200,
"data": [
{
"brand_id": 444,
"brand_name": "EVD",
"brand_ico": "http://img12.static.yhbimg.com/brandLogo/2015/12/03/15/0266c8e46764959ef4fb7f34cb894017a6.jpg?imageMogr2/thumbnail/{width}x{height}/extent/{width}x{height}/background/d2hpdGU=/position/center/quality/80"
},
{
"brand_id": 560,
"brand_name": "GAWS",
"brand_ico": "http://img10.static.yhbimg.com/brandLogo/2014/06/30/10/01fd000f9e01e7b65155a91f89a2217982.jpg?imageMogr2/thumbnail/{width}x{height}/extent/{width}x{height}/background/d2hpdGU=/position/center/quality/80"
},
{
"brand_id": 144,
"brand_name": "VANS",
"brand_ico": "http://img12.static.yhbimg.com/brandLogo/2015/12/09/14/027499d999bcd003cccf4272340b8603fc.jpg?imageMogr2/thumbnail/{width}x{height}/extent/{width}x{height}/background/d2hpdGU=/position/center/quality/80"
},
{
"brand_id": 208,
"brand_name": "Life·After Life",
"brand_ico": "http://img11.static.yhbimg.com/brandLogo/2014/02/07/13/0118e52b6f94d0f566bb6e17b1a08ac165.png?imageMogr2/thumbnail/{width}x{height}/extent/{width}x{height}/background/d2hpdGU=/position/center/quality/80"
},
{
"brand_id": 354,
"brand_name": "CHEAP MONDAY",
"brand_ico": "http://img12.static.yhbimg.com/brandLogo/2015/12/10/09/0227bbdc3f9a25875134271a1c603613bb.jpg?imageMogr2/thumbnail/{width}x{height}/extent/{width}x{height}/background/d2hpdGU=/position/center/quality/80"
}
],
"md5": "8cd05100f51bdaed7fd4380e71e3af5b",
"message": "channel brand info"
}
```
... ...