Authored by caoyan

add

## 1、PC根据域名查询品牌接口##
(method=web.brand.byDomain)
#### 请求参数
| 参数名称 | 参数类型 | 可否为空 | 示例 | 默认值 | 备注 |
|:-------| -----:|-----:|-----:|-----:|----:|
|domain|String|否|004|null|域名|
注意,通用的头部没有列出。
请求示例
http://devapi.yoho.cn:58078/?debug=XYZ&app_version=3.8.2&client_type=android&os_version=yohobuy%3Ah5&screen_size=720x1280&v=7&method=web.brand.byDomain&domain=004
### 响应
code为200即为成功,否则是失败。
响应JSON格式如下所示:
```json
{
"alg": "SALT_MD5",
"code": 200,
"data": {
"brandAlif": "0",
"brand_banner": "http://img12.static.yhbimg.com/brandBanner/2014/09/03/03/02197fb080acea9425d32dc2402d83910c.jpg?imageMogr2/thumbnail/{width}x{height}/extent/{width}x{height}/background/d2hpdGU=/position/center/quality/90",
"brand_domain": "004",
"brand_ico": "http://img10.static.yhbimg.com/brandLogo/2011/06/26/19/016f21d6a39d5071e1864943253dcdefde.jpg?imageMogr2/thumbnail/{width}x{height}/extent/{width}x{height}/background/d2hpdGU=/position/center/quality/90",
"brand_id": 1,
"brand_name": "004",
"brand_name_cn": "零零肆",
"brand_name_en": "004"
},
"md5": "2890de38da3dc48c30246f88c257bca2",
"message": "brand info"
}
```
## 2、PC查询品牌分类接口##
(method=web.brand.folder)
#### 请求参数
| 参数名称 | 参数类型 | 可否为空 | 示例 | 默认值 | 备注 |
|:-------| -----:|-----:|-----:|-----:|----:|
|brand_id|int|否|248|0|品牌id|
|status|int|是|1|1|状态|
注意,通用的头部没有列出。
请求示例
http://devapi.yoho.cn:58078/?debug=XYZ&app_version=3.8.2&client_type=android&os_version=yohobuy%3Ah5&screen_size=720x1280&v=7&method=web.brand.folder&brand_id=248&status=2&client_secret=3f31be8d35adb60425882cbb7298afa9
### 响应
code为200即为成功,否则是失败。
响应JSON格式如下所示:
```json
{
"alg": "SALT_MD5",
"code": 200,
"data": [
{
"brand_id": 248,
"brand_sort_ico": "http://img13.static.yhbimg.com/brandBanner/2015/04/03/10/020ca8ededdc8087357f6cadcb93f98d3f.jpg?imageView/{mode}/w/{width}/h/{height}",
"brand_sort_name": "HUARACHE",
"id": 1188,
"order_by": 12,
"parent_id": 0,
"status": 1
},
{
"brand_id": 248,
"brand_sort_ico": "http://img11.static.yhbimg.com/brandBanner/2015/04/03/10/0162828177b1c5ecb3967df0944b2887e2.jpg?imageView/{mode}/w/{width}/h/{height}",
"brand_sort_name": "FLIGHT",
"id": 1176,
"order_by": 11,
"parent_id": 0,
"status": 1
},
{
"brand_id": 248,
"brand_sort_ico": "http://img11.static.yhbimg.com/brandBanner/2014/04/24/06/0102a8ebab1244f71af26c1348e62fd1fb.jpg?imageView/{mode}/w/{width}/h/{height}",
"brand_sort_name": "AIRMAX",
"id": 260,
"order_by": 10,
"parent_id": 0,
"status": 1
},
{
"brand_id": 248,
"brand_sort_ico": "http://img12.static.yhbimg.com/brandBanner/2014/04/24/07/02391a5e71663242380adb7adfed190295.jpg?imageView/{mode}/w/{width}/h/{height}",
"brand_sort_name": "复古跑鞋",
"id": 261,
"order_by": 4,
"parent_id": 0,
"status": 1
},
{
"brand_id": 248,
"brand_sort_ico": "http://img11.static.yhbimg.com/brandBanner/2015/04/03/10/0170918b0458f3867362440ddef083c6d0.jpg?imageView/{mode}/w/{width}/h/{height}",
"brand_sort_name": "凉拖",
"id": 1189,
"order_by": 2,
"parent_id": 0,
"status": 1
},
{
"brand_id": 248,
"brand_sort_ico": "http://img11.static.yhbimg.com/brandBanner/2014/04/24/07/01ed6baae9ca98b88fc2e32fc79bc9d54b.jpg?imageView/{mode}/w/{width}/h/{height}",
"brand_sort_name": "OTHERS",
"id": 38,
"order_by": 1,
"parent_id": 0,
"status": 1
}
],
"md5": "e24c0c724646c486236bf24b7cb2a9a5",
"message": "brand info"
}
```
## 3、PC查询品牌系列接口##
(method=web.brand.series)
#### 请求参数
| 参数名称 | 参数类型 | 可否为空 | 示例 | 默认值 | 备注 |
|:-------| -----:|-----:|-----:|-----:|----:|
|brand_id|int|否|248|0|品牌id|
|status|int|是|1|1|状态|
注意,通用的头部没有列出。
请求示例
http://devapi.yoho.cn:58078/?debug=XYZ&app_version=3.8.2&client_type=android&os_version=yohobuy%3Ah5&screen_size=720x1280&v=7&method=web.brand.series&brand_id=248&status=2&client_secret=3f31be8d35adb60425882cbb7298afa9
### 响应
code为200即为成功,否则是失败。
响应JSON格式如下所示:
```json
{
"alg": "SALT_MD5",
"code": 200,
"data": [
{
"brand_id": 248,
"id": 7,
"order_by": 2,
"series_banner": "http://img11.static.yhbimg.com/brandBanner/2012/04/05/17/01801f6679d23f0d48ae8efcdce17cb4a5.jpg",
"series_name": "NSW",
"status": 0
},
{
"brand_id": 248,
"id": 8,
"order_by": 1,
"series_banner": "http://img13.static.yhbimg.com/brandBanner/2012/08/09/18/026e278aebf5b351b34ffe2312510ea717.jpg",
"series_name": "Action Sports",
"status": 0
}
],
"md5": "89445294eb4487a1233cff63b1df01e7",
"message": "brand info"
}
```
## 4、PC批量查询品牌系列接口##
(method=web.brand.info)
#### 请求参数
| 参数名称 | 参数类型 | 可否为空 | 示例 | 默认值 | 备注 |
|:-------| -----:|-----:|-----:|-----:|----:|
|ids|int|否|248,187|0|品牌id列表|
注意,通用的头部没有列出。
请求示例
http://devapi.yoho.cn:58078/?debug=XYZ&app_version=3.8.2&client_type=android&os_version=yohobuy%3Ah5&screen_size=720x1280&v=7&method=web.brand.info&ids=248,187&client_secret=3f31be8d35adb60425882cbb7298afa9
### 响应
code为200即为成功,否则是失败。
响应JSON格式如下所示:
```json
{
"alg": "SALT_MD5",
"code": 200,
"data": [
{
"brand_domain": "nike",
"brand_id": 248,
"brand_name": "Nike"
},
{
"brand_domain": "wan",
"brand_id": 187,
"brand_name": "顽"
}
],
"md5": "695436f6e76f1a62d9fd7f588018dd06",
"message": "brand info"
}
```
\ No newline at end of file
... ...