简要描述:
H5-专题列表
请求域名:
- http://xx.com
请求URL:
POST/plugin.case-library.api.pc.home.special-list
参数:
参数名 | 是否必须 | 类型 | 说明 |
---|
返回参数说明:
参数名 | 类型 | 说明 |
---|---|---|
id | int | 专题id |
special_name | array | 专题名 |
special_banner | int | 专题banner(special_banner_src绝对路径) |
read_num | string | 专题浏览量 |
case_data[id] | int | 案例id |
case_data[case_name] | string | 案例名 |
case_data[img] | string | 案例图标(img_src绝对路径) |
case_data[img_h5] | string | 公众号二维码(img_h5_src绝对路径) |
case_data[img_mini] | string | 小程序二维码(img_mini_src绝对路径) |
返回示例:
正确时返回的数据:
{
"result": 1,
"msg": "ok",
"data": {
"special": {
"total": 1,
"per_page": 6,
"current_page": 1,
"last_page": 1,
"next_page_url": null,
"prev_page_url": null,
"from": 1,
"to": 1,
"data": [
{
"id": 1,
"special_name": "专题1",
"special_banner": "newimage/55812ff61cb4764ce2c995bdd7c37d91.jpg",
"read_num": 2,
"created_at": "2020-12-04 11:11:12",
"special_banner_src": "http://shop-yunzshop-com.oss-cn-hangzhou.aliyuncs.com/newimage/55812ff61cb4764ce2c995bdd7c37d91.jpg",
"case_data": [
{
"id": 9,
"case_name": "案例2",
"img": "newimage/55812ff61cb4764ce2c995bdd7c37d91.jpg",
"img_h5": "",
"img_mini": "",
"screen_shot_src": [],
"img_src": "http://shop-yunzshop-com.oss-cn-hangzhou.aliyuncs.com/newimage/55812ff61cb4764ce2c995bdd7c37d91.jpg",
"img_mini_src": "",
"img_h5_src": "",
"pivot": {
"special_id": 1,
"case_id": 9
}
},
{
"id": 10,
"case_name": "案例1",
"img": "newimage/55812ff61cb4764ce2c995bdd7c37d91.jpg",
"img_h5": "",
"img_mini": "",
"screen_shot_src": [],
"img_src": "http://shop-yunzshop-com.oss-cn-hangzhou.aliyuncs.com/newimage/55812ff61cb4764ce2c995bdd7c37d91.jpg",
"img_mini_src": "",
"img_h5_src": "",
"pivot": {
"special_id": 1,
"case_id": 10
}
}
]
}
]
}
}
}
错误时返回:
{
"result": 0,
"msg": "",
"data": []
}
备注:
- 更多返回错误代码请看首页的错误代码描述