简要描述:

  • 接口版本:

版本号 制定人 制定日期 修订日期
1.0.0 kevin 2021-12-03

请求URL:

请求方式:

  • Get

请求头:

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

请求参数:

参数名 是否必须 类型 说明
chapter_id string 书籍章节id

返回示例:

正确时返回:

{
    "status": 200,
    "msg": "成功",
    "data": {
        "chapter_id": 2,
        "novel_id": 1,
        "chapter_name": "第2章",
        "content": "我不知道写什么",
        "word_num": 7,
        "created_at": "2021-12-03 11:41:19",
        "update_at": 1638503558,
        "sorts": 2,
        "novel_data": {
            "novel_id": 1,
            "uid": 2,
            "novel_name": "我的第一部小说0",
            "cover": "http://writer.com/uploads/avatar/2021/12/03/61a97a110fb41.png",
            "novel_tig": "武侠,玄幻",
            "describe": "小说是为武侠,玄幻做题材,内容丰富。",
            "word_num": 15,
            "created_at": "2021-12-03 10:10:29",
            "update_at": 1638503558,
            "novel_all_word_num": "100.00"
        }
    },
    "other": []
}

错误时返回:

{
    "status": 0,
    "msg": "验证码错误"
}

data返回参数说明:

参数名 类型 说明
chapter_id string 书籍章节id
chapter_name string 书籍章节名称
content string 内容
word_num string 字数
sorts string 排序

novel_data返回参数说明:

参数名 类型 说明
novel_id string 书籍id
novel_name string 书籍名称
cover string 封面
novel_tig string 题材
describe string 简介
novel_all_word_num string 目标字数(万)
cover_msg string 封面路径
created_at string 创建时间
update_at string 更新时间

备注:

文档更新时间: 2021-12-03 17:35   作者:admin