简要描述:

  • 帖子评论

请求域名:

  • http://xx.com

请求URL:

POST/&route=plugin.micro-communities.api.trick.getStickComment

参数:

参数名 是否必须 类型 说明
tid int 帖子ID

返回示例:

正确时返回:

{
    "result": 1,
    "msg": "",
    "data": {
        "total": 3,
        "per_page": 15,
        "current_page": 1,
        "last_page": 1,
        "next_page_url": null,
        "prev_page_url": null,
        "from": 1,
        "to": 3,
        "data": [
            {
                "id": 2,
                "stick_id": 1,
                "user_id": 84,
                "uname": "12345678922",
                "content": "呵呵哒",
                "major_cm_id": null,
                "less_cm_id": null,
                "praise_num": 0,
                "created_at": "2019-08-23 16:16:41",
                "has_one_comment_user": {
                    "avatar": "http://test-1251768088.cosgz.myqcloud.com/images/3/2018/04/PQ40SOu6jSoWL90I1Iup0Kttw1izoF.jpg",
                    "nickname": "12345678922",
                    "uid": 84
                },
                "child": [
                    {
                        "id": 5,
                        "uniacid": 3,
                        "stick_id": 1,
                        "user_id": 84,
                        "uname": "12345678922",
                        "content": "呵呵哒",
                        "major_cm_id": 2,
                        "less_cm_id": 4,
                        "praise_num": 0,
                        "is_del": 0,
                        "created_at": "2019-08-23 16:21:47",
                        "updated_at": "2019-08-23 16:21:47",
                        "deleted_at": null,
                        "has_one_comment_user": {
                            "avatar": "http://test-1251768088.cosgz.myqcloud.com/images/3/2018/04/PQ40SOu6jSoWL90I1Iup0Kttw1izoF.jpg",
                            "nickname": "12345678922",
                            "uid": 84
                        },
                        "is_own": 1,
                        "is_praise": 0,
                        "contents": "",
                        "less_name": "12345678922"
                    },
                    {
                        "id": 4,
                        "uniacid": 3,
                        "stick_id": 1,
                        "user_id": 84,
                        "uname": "12345678922",
                        "content": "呵呵哒",
                        "major_cm_id": 2,
                        "less_cm_id": null,
                        "praise_num": 0,
                        "is_del": 0,
                        "created_at": "2019-08-23 16:20:54",
                        "updated_at": "2019-08-23 16:20:54",
                        "deleted_at": null,
                        "has_one_comment_user": {
                            "avatar": "http://test-1251768088.cosgz.myqcloud.com/images/3/2018/04/PQ40SOu6jSoWL90I1Iup0Kttw1izoF.jpg",
                            "nickname": "12345678922",
                            "uid": 84
                        },
                        "is_own": 1,
                        "is_praise": 0,
                        "contents": "",
                        "less_name": null
                    }
                ],
                "content": "",
                "is_own": 1,
                "is_praise": 0
            }
        ]
    }
}

错误时返回:

返回参数说明:

参数名 类型 说明
stick_id string 帖子ID
user_id string 评论人ID
uname string 评论人名称
content string 评论内容
major_cm_id string 主评论ID
less_cm_id string 次级评论ID
praise_num string 点赞量
avatar string 评论人头像
nickname string 评论人昵称
is_own string 本人
is_praise string 1-已点赞 0-未点赞
less_name string 被回复人名称