简要描述:
- 用户登录接口
请求域名:
- http://xx.com
请求URL:
GET/route=goods.category.get-data
传参数说明:
参数名 | 类型 | 说明 |
---|---|---|
parent_id | int | 上級分类id,没有可以传空 |
备注:
返回示例:
正确时返回:
{
result: 1,
msg: "ok",
data: {
list: {
total: 1,
per_page: 2,
current_page: 1,
last_page: 1,
next_page_url: null,
prev_page_url: null,
from: 1,
to: 1,
data: [{
id: 55,
uniacid: 2,
name: "11",
thumb: "images/2/2017/05/z4v4SDW4Sm1M8SkZo4BDmaBfVka1Ag.png",
parent_id: 44,
description: "",
display_order: 0,
enabled: 1,
is_home: 1,
adv_img: "",
adv_url: "",
level: 2,
advimg_pc: "",
advurl_pc: "",
created_at: "2017-08-16 15:45:50",
updated_at: "2017-08-16 15:45:50",
deleted_at: null,
plugin_id: 0,
filter_ids: null
}]
},
parent: {
id: 44,
uniacid: 2,
name: "3",
thumb: "images/2/2017/07/qQVX3PmQZpQe1CDuAC13kA0pmql6MP.jpg",
parent_id: 0,
description: "",
display_order: 0,
enabled: 1,
is_home: 1,
adv_img: "",
adv_url: "",
level: 1,
advimg_pc: "",
advurl_pc: "",
created_at: "2017-07-31 14:27:12",
updated_at: "2017-07-31 14:27:12",
deleted_at: null,
plugin_id: 0,
filter_ids: null
}
}
}
错误时返回:
data 返回参数说明:
参数名 | 类型 | 说明 |
---|---|---|
list | arr | 分类列表数据 |
parent | arr | 上级分类数据 |
备注:
- 更多返回错误代码请看首页的错误代码描述