简要描述:
专题列表
请求域名:
- http://xx.com
请求URL:
GET/plugin.case-library.admin.special.special-list(获取视图)
POST/plugin.case-library.admin.special.special-list(获取专题列表)
获取专题列表传递参数:
参数名 | 是否必须 | 类型 | 说明 |
---|---|---|---|
search[special_name] | 否 | string | 查询的专题名 |
search[is_open] | 否 | string | 是否启用,0否,1是 |
search[is_hot] | 否 | string | 热门推荐,0关闭,1开启 |
search[timeStart] | 否 | int | 开始时间 |
search[timeEnd] | 否 | int | 结束时间 |
数据返回list参数说明:
参数名 | 类型 | 说明 | |
---|---|---|---|
data[id] | 是 | int | 专题id |
data[special_name] | 是 | string | 专题名 |
data[special_banner] | 是 | string | 专题banner(special_banner_src绝对路径) |
data[desc] | 是 | string | 专题简介 |
data[is_open] | 是 | int | 是否启用,0否,1是 |
data[is_hot] | 是 | int | 热门推荐,0关闭,1开启 |
data[read_num] | 是 | int | 浏览量 |
data[case_count] | 是 | int | 案例数量 |
total | 是 | int | 专题数量 |
is_open | 是 | int | 开启的专题数量 |
返回示例:
正确时返回数据:
{
"result": 1,
"msg": "ok",
"data": {
"list": {
"total": 1,
"per_page": 20,
"current_page": 1,
"last_page": 1,
"next_page_url": null,
"prev_page_url": null,
"from": 1,
"to": 1,
"data": [
{
"id": 1,
"uniacid": 1,
"special_name": "专题1",
"special_banner": "newimage/55812ff61cb4764ce2c995bdd7c37d91.jpg",
"desc": "111166661",
"is_open": 0,
"is_hot": 0,
"created_at": "2020-12-04 11:11:12",
"updated_at": "2020-12-04 14:21:11",
"read_num": 0,
"case_count": 2,
"special_banner_src": "http://shop-yunzshop-com.oss-cn-hangzhou.aliyuncs.com/newimage/55812ff61cb4764ce2c995bdd7c37d91.jpg"
}
]
},
"total": 1,
"is_open": 0
}
}
备注:
- 更多返回错误代码请看首页的错误代码描述