简要描述:

  • 获取小说目录列表接口

接口版本:

版本号 制定人 制定日期 修订日期
1.0.0 kevin 2020-03-18

请求URL:

请求方式:

  • GET

请求头:

参数名 是否必须 类型 说明
token string 授权凭证

请求参数:

参数名 是否必须 类型 说明
novel_id int 小说id

返回示例:

正确时返回:

{
    "status": 200,
    "msg": "获取成功",
    "data": {
        "menu": [
            {
                "chapter_id": 19,
                "chapter_name": "第1章",
                "channel": "free",
                "create_at": "2020-03-18 15:20:00",
                "consume_id": null,
                "list": [
                    {
                        "chapter_id": 20,
                        "chapter_name": "第1节",
                        "channel": "free",
                        "create_at": "2020-03-18 15:20:18",
                        "consume_id": true
                    },
                    {
                        "chapter_id": 21,
                        "chapter_name": "第2节",
                        "channel": "vip",
                        "create_at": "2020-03-18 15:20:28",
                        "consume_id": true
                    }
                ]
            }
        ],
        "menu_last_update_time": "2020-03-18 15:20:28",
        "menu_num": 2
    }
}

错误时返回:

{
    "status": 0,
    "msg": "key错误"
}

data返回参数说明:

参数名 类型 说明
menu array 部分目类
menu_last_update_time string 最后更新时间
menu_num int 章节数量

menu list第二种返回参数说明:

参数名 类型 说明
chapter_id int 小说章节id
chapter_name string 章节名称
channel string 频道/属性
create_at string 小说发布时间
consume_id bool 是否可看 true=可看,false=不可看

备注:

文档更新时间: 2021-04-09 18:02   作者:admin