简要描述:
接口版本:
版本号 |
制定人 |
制定日期 |
修订日期 |
1.0.0 |
kevin |
2020-04-16 |
|
请求URL:
请求方式:
请求头:
参数名 |
是否必须 |
类型 |
说明 |
token |
否 |
string |
授权凭证 |
请求参数:
参数名 |
是否必须 |
类型 |
说明 |
req_type |
否 |
string |
请求端【small=小程序,public=公众号,pc=PC端,app=APP端】,默认app |
display_position |
否 |
string |
显示位置【上=top,中=center,下=bottom】,默认top |
返回示例:
正确时返回:
{
"status": 200,
"msg": "获取成功",
"data": {
"advertisement": [
{
"id": 1,
"images": "http://novel.com/uploads/advertisement/2020-03-21/5e75754a237b8.jpg",
"url": "#"
},
{
"id": 4,
"images": "http://novel.com/uploads/advertisement/2020-04-16/5e980d364c224.png",
"url": "#"
}
],
"list": [
{
"name": "最新上线",
"novel_list": [
{
"novel_id": 11,
"cover": "http://novel.com/uploads/novel/2020-03-23/5e785804751a0.jpg",
"novel_name": "万丈魔像",
"channel": "VIP"
},
]
},
{
"name": "最新完结",
"novel_list": [
{
"novel_id": 11,
"cover": "http://novel.com/uploads/novel/2020-03-23/5e785804751a0.jpg",
"novel_name": "万丈魔像",
"channel": "VIP"
},
]
}
]
}
}
错误时返回:
{
"status": 0,
"msg": "token过期"
}
data返回参数说明:
参数名 |
类型 |
说明 |
advertisement |
array |
vip广告列表 |
list |
array |
专区列表【直接循环此列表,以后有增加,只要敢想后台即可】 |
advertisement返回参数说明:
参数名 |
类型 |
说明 |
id |
int |
广告id |
images |
string |
封面路径 |
url |
string |
跳转路径 |
list返回参数说明:
参数名 |
类型 |
说明 |
name |
string |
栏目名称 |
novel_list |
array |
小说列表 |
novel_list返回参数说明:
参数名 |
类型 |
说明 |
novel_id |
int |
小说id |
cover |
string |
小说封面 |
novel_name |
string |
小说名称 |
channel |
string |
小说频道/属性 |
备注:
文档更新时间: 2020-04-23 09:21 作者:admin