简要描述:
- 商品品牌接口
请求域名:
- http://yunzshop.com
请求URL:
POST/app/index.php?i=1&c=entry&do=shop&m=yun_shop&route=goods.brand.get-brand
参数:
| 参数名 | 是否必须 | 类型 | 说明 |
|---|---|---|---|
| page | 否 | int | 页码数 |
返回示例:
正确时返回:
{
"result":1,
"msg":"获取品牌数据成功!",
"data":{
"total":13,
"per_page":10,
"current_page":1,
"last_page":2,
"next_page_url":"http://test.ysv2.com/app/index.php?page=2",
"prev_page_url":null,
"from":1,
"to":10,
"data":[
{
"id":1,
"uniacid":"6",
"name":"adidas",
"alias":"阿迪达斯",
"logo":"images/6/2017/02/pz6YURqtIUtF2622Cz62ucYfhcMuYi.jpg",
"desc":"阿迪达斯阿迪达斯阿迪达斯",
"created_at":"2017-01-01 08:00:00",
"updated_at":null,
"deleted_at":null
}
]
}
}
错误时返回:
{
"result":0,
"msg":"未检测到品牌数据!",
"data":{
"total":0,
"per_page":10,
"current_page":1,
"last_page":2,
"next_page_url":null,
"prev_page_url":"http://test.ysv2.com/app/index.php?page=332",
"from":null,
"to":null,
"data":[
]
}
}
返回参数说明:
| 参数名 | 类型 | 说明 |
|---|---|---|
| total | int | 分类总条数 |
| per_page | int | 每页条数 |
| current_page | int | 当前页码 |
| last_page | int | 最后一页的页码 URL |
| next_page_url | string | 下一页URL |
| prev_page_url | string | 上一页URL |
| from | int | 第几条开始 |
| to | int | 第几条结束 |
| data | json | 分类数据 |
| :----- | :----- | ----- |
| 分类数据 | ||
| 参数名 | 类型 | 说明 |
| id | int | id |
| uniacid | int | uniacid |
| name | string | 品牌名称 |
| alias | string | 品牌别名 |
| logo | string | 品牌Logo |
| desc | string | 品牌描述 |
备注:
- 更多返回错误代码请看首页的错误代码描述