简要描述:

  • 获取小说详情接口

接口版本:

版本号 制定人 制定日期 修订日期
1.0.0 kevin 2020-03-18
1.0.0 kevin 2020-03-21 添加是否加入书架状态

请求URL:

请求方式:

  • GET

请求头:

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

请求参数:

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

返回示例:

正确时返回:

    "status": 200,
    "msg": "获取成功",
    "data": {
        "detail": {
            "novel_id": 8,
            "cover": "http://novel.com/uploads/novel/2020-03-14/5e6c7d7dba9c6.png",
            "novel_name": "权宠天下",
            "pen_name": "kevin1",
            "channel": "VIP",
            "novel_status": "连载中",
            "free_time": "",
            "word_num": "7661",
            "novel_tig": [
                "古代言情",
                "穿越"
            ],
            "reward_num": "0",
            "flower_num": "0",
            "read_num": "23",
            "collection_num": "0",
            "describe": "天才医学博士穿越成楚王弃妃......",
            "cate_id": 7,
            "collection_status": false"seen_chapter_id": 13,
            "next_chapter_id": 14,
            "seen_chapter_num": 2,
            "all_chapter_num": 5
        },
        "menu": [
            {
                "chapter_id": 15,
                "chapter_name": "第7章 自救",
                "channel": "vip",
                "create_at": "2020-03-16 14:12:54",
                "consume_id": true
            },
            {
                "chapter_id": 14,
                "chapter_name": "第6章 熬过 一劫",
                "channel": "vip",
                "create_at": "2020-03-16 14:12:34",
                "consume_id": false
            },
        ],
        "menu_last_update_time": "2020-03-16 14:12:54",
        "menu_num": 7,
        "like": [
            {
                "novel_id": 9,
                "cover": "http://novel.com/uploads/novel/2020-03-16/5e6f27e4705ee.jpg",
                "novel_name": "神医农女"
            },
            {......}
        ]
    }
}

错误时返回:

{
    "status": 0,
    "msg": "小说id错误"
}

data返回参数说明:

参数名 类型 说明
detail object 小说详情
menu array 部分目类
menu_last_update_time string 最后更新时间
menu_num int 章节数量
like array 猜你喜欢列表

detail返回参数说明:

参数名 类型 说明
novel_id int 小说id
cover string 小说封面
novel_name string 小说名称
pen_name string 作者笔名
channel string 频道/属性,免费/VIP
novel_status string 小说状态,完结/连载中
free_time string 限免时间
word_num string 字数
novel_tig string 小说标志
reward_num string 打赏的数量
flower_num string 鲜花的数量
read_num string 阅读的数量
collection_num string 收藏的数量/加入书架的数量
describe string 小说简介
cate_id int 小说分类id
collection_status bool 收藏/加入书架状态,true=已加入书架,false=未加入书架
seen_chapter_id int 正在看的章节id
next_chapter_id int 下一节章节id
seen_chapter_num int 已看了多少章
all_chapter_num int 总共有多少章

menu第一种返回参数说明:

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

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

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

like返回参数说明:

参数名 类型 说明
novel_id int 小说id
cover string 小说封面
novel_name string 小说名称

备注:

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