Authored by iknitting

增加品牌列表页面用于跳转不同模板的type

... ... @@ -2611,3 +2611,79 @@ code为200即为成功,否则是失败。
"message": "Category Product List."
}
```
## 14、yoho所有品牌列表接口##
(method=app.brand.brandlist)
#### 请求参数
| 参数名称 | 参数类型 | 可否为空 | 示例 | 默认值 | 备注 |
|:-------| -----:|-----:|-----:|-----:|----:|
|yh_channel|string|是|1|无|频道id|
品牌店铺需求,需要在品牌列表的每个品牌上增加用于跳转的枚举值type:
无店铺:0--->品牌页
无单品店有多品店:1--->搜索页
有单品店:2--->店铺页面
请求示例
http://127.0.0.1:8080/gateway/?method=app.brand.brandlist&v=7&yh_channel=1&debug=XYZ
### 响应
code为200即为成功,否则是失败。
响应JSON格式如下所示:
```json
{
"alg": "SALT_MD5",
"code": 200,
"data": {
"brands": {
"": [
{
"brand_alif": "",
"brand_domain": "dirtlun",
"brand_ico": "http://img13.static.yhbimg.com/brandLogo/2016/03/23/13/02bcd71ac660607888bd58af8d21b8a0c1.jpg?imageMogr2/thumbnail/{width}x{height}/extent/{width}x{height}/background/d2hpdGU=/position/center/quality/80",
"brand_keyword": "",
"brand_name": "第二轮",
"brand_name_cn": "",
"brand_name_en": "第二轮",
"hot_keyword": "",
"id": "1559",
"is_hot": "2",
"is_show_new": "N",
"shop_id": 647,
"type": "2"
},
{
"brand_alif": "",
"brand_domain": "rtytry",
"brand_ico": "http://img10.static.yhbimg.com/brandLogo/2016/03/18/14/010e6e67e28597232f89fb4ddb34babf28.jpg?imageMogr2/thumbnail/{width}x{height}/extent/{width}x{height}/background/d2hpdGU=/position/center/quality/80",
"brand_keyword": "",
"brand_name": "请不要用我的品牌,谢谢",
"brand_name_cn": "",
"brand_name_en": "ytiuyi",
"hot_keyword": "",
"id": 1555,
"is_hot": "N",
"is_show_new": "N",
"type": "1"
}
],
"0~9": [
{
"brand_alif": "5",
"brand_domain": "5preview",
"brand_ico": "http://img13.static.yhbimg.com/brandLogo/2015/11/17/16/02202c3d541b9b0b67aaf32068b32f4884.jpg?imageMogr2/thumbnail/{width}x{height}/extent/{width}x{height}/background/d2hpdGU=/position/center/quality/80",
"brand_keyword": "趣味,休闲",
"brand_name": "5 PREVIEW",
"brand_name_cn": "",
"brand_name_en": "5 PREVIEW",
"hot_keyword": "",
"id": 526,
"is_hot": "N",
"is_show_new": "N",
"type": "0"
}
]
}
},
"message": "success"
}
```
\ No newline at end of file
... ...