简要描述:
- 用户登录接口
请求域名:
- http://xx.com
请求URL:
GET/route=goods.brand.index(视图)
POST/route=goods.brand.brand-data(获取数据)
传参数说明:
参数名 | 类型 | 说明 |
---|
备注:
返回示例:
正确时返回:
{
result: 1,
msg: "ok",
data: {
total: 2,
per_page: 10,
current_page: 1,
last_page: 1,
next_page_url: null,
prev_page_url: null,
from: 1,
to: 2,
data: [{
id: 6,
uniacid: 2,
name: "测试品牌",
alias: "牛逼品牌",
logo: "http://www.wq.com/attachment/images/2/2019/07/q9qOlquE82q9tOez9Q9zTeOq7EL9ol.jpg",
desc: "<p>牛逼品牌 贼牛逼</p>",
created_at: "2017-08-16 15:47:12",
updated_at: "2020-07-21 16:14:23",
deleted_at: null,
is_recommend: 1,
is_hide: 0
},
{
id: 9,
uniacid: 2,
name: "222",
alias: "222",
logo: "http://www.wq.com/attachment/images/2/2020/05/C9cnzcdOCnfcFfF9Q3e3cXCgC8decM.jpg",
desc: "<p>22222</p>",
created_at: "2020-07-21 16:00:27",
updated_at: "2020-07-21 16:00:27",
deleted_at: null,
is_recommend: 1,
is_hide: 0
}
]
}
}
错误时返回:
data 返回参数说明:
参数名 | 类型 | 说明 |
---|---|---|
name | str | 品牌名称 |
alias | str | 品牌别名 |
logo | str | 品牌logo |
desc | str | 品牌desc |
is_recommend | int | 是否推荐:1推荐 0不推荐 |
is_hide | int | 是否显示:1显示 0不显示 |
备注:
- 更多返回错误代码请看首页的错误代码描述