简要描述:

  • 接口版本:

版本号 制定人 制定日期 修订日期
1.0.0 kevin 2020-07-16
1.0.1 kevin 2022-07-28 增加章节名称

请求URL:

请求方式:

  • GET

请求头:

参数名 是否必须 类型 说明

请求参数:

参数名 是否必须 类型 说明
id int 小说id
page int 页码
pagesize int 条数
sort_type int 1=按打赏,2=按点赞,3=按时间,默认按打赏

返回示例:

正确时返回:

{
    "status": 200,
    "msg": "成功",
    "data": {
        "list": [
            {
                "comment_id": 6,
                "comment_content": "回复 评论小说1 内容",
                "comment_uid": 6,
                "comment_time": "2020-07-16 14:39:03",
                "comment_like_num": 10,
                "reading_currency": "0",
                "content_type": "2",
                "chapter_id": "1",
                "comment_nickname": "A1111",
                "comment_avatar": "http://awz.com/uploads/avatar/avatar.jpg",
                "reply_comment_id": 5,
                "reply_content": "评论小说1",
                "reply_nickname": "k0000""like_status": "false""solicit_id": 3,
                "buy_id": 0,
                "novel_contribution_url": "",
                "chapter_name": '',
            }
        ],
        "page": 1,
        "pagesize": 1,
        "total": 12
    },
    "other": []
}

错误时返回:

请求参数:

参数名 类型 说明
comment_id int 评论ID
comment_content string 评论内容
comment_uid int 评论uid
comment_time string 评论时间
comment_like_num int 评论点赞数
reading_currency string 打赏阅读币
content_type int 评论类型【1=正常评论,2=征稿评论,要跳转】
chapter_id int 章节id
comment_nickname string 评论人昵称
comment_avatar string 评论人头像
reply_comment_id int 回复的评论i的【大于0,则是回复别人的】
reply_content string 回复的评论内容
reply_nickname string 回复人昵称
like_status string 评论是否点赞 【true=已点,false=未点】
solicit_id int 征稿id
buy_id string 出售id
novel_contribution_url string 投稿路径
chapter_name string 章节名称

备注:

文档更新时间: 2022-07-28 14:48   作者:admin