简要描述:

  • 关注帖子列表

请求域名:

  • http://xx.com

请求URL:

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

参数:

参数名 是否必须 类型 说明

返回示例:

正确时返回:

{
    "result": 1,
    "msg": "",
    "data": {
        "total": 4,
        "per_page": 15,
        "current_page": 1,
        "last_page": 1,
        "next_page_url": null,
        "prev_page_url": null,
        "from": 1,
        "to": 4,
        "data": [
            {
                "id": 4,
                "title": "测试",
                "user_id": 84,
                "praise_num": 0,
                "has_one_stick_user": {
                    "avatar": "https://test-1251768088.cosgz.myqcloud.com/images/3/2018/04/PQ40SOu6jSoWL90I1Iup0Kttw1izoF.jpg",
                    "nickname": "12345678922",
                    "uid": 84
                },
                "comment": [],
                "is_praise": 0,
                "image_url": "http://test-1251768088.cosgz.myqcloud.com/images/3/2019/08/wwKZIk58383WrL9T7LVIIn5ilWZWn8.png"
            },
            {
                "id": 3,
                "title": "测试",
                "user_id": 84,
                "praise_num": 0,
                "has_one_stick_user": {
                    "avatar": "https://test-1251768088.cosgz.myqcloud.com/images/3/2018/04/PQ40SOu6jSoWL90I1Iup0Kttw1izoF.jpg",
                    "nickname": "12345678922",
                    "uid": 84
                },
                "comment": [],
                "is_praise": 0,
                "image_url": "http://dev3.yunzshop.com/attachment/images/3/2017/07/z1XplaLkFKd991D9CR8xNPC9ca3zKX.jpg"
            },
            {
                "id": 2,
                "title": "测试",
                "user_id": 84,
                "praise_num": 0,
                "has_one_stick_user": {
                    "avatar": "https://test-1251768088.cosgz.myqcloud.com/images/3/2018/04/PQ40SOu6jSoWL90I1Iup0Kttw1izoF.jpg",
                    "nickname": "12345678922",
                    "uid": 84
                },
                "comment": [],
                "is_praise": 0,
                "image_url": "http://dev3.yunzshop.com/attachment/images/3/2017/07/z1XplaLkFKd991D9CR8xNPC9ca3zKX.jpg"
            },
            {
                "id": 1,
                "title": "测试",
                "user_id": 84,
                "praise_num": 1,
                "has_one_stick_user": {
                    "avatar": "https://test-1251768088.cosgz.myqcloud.com/images/3/2018/04/PQ40SOu6jSoWL90I1Iup0Kttw1izoF.jpg",
                    "nickname": "12345678922",
                    "uid": 84
                },
                "comment": [
                    {
                        "id": 6,
                        "stick_id": 1,
                        "content": "asdfasdf",
                        "uname": "12345678922"
                    },
                    {
                        "id": 5,
                        "stick_id": 1,
                        "content": "呵呵哒",
                        "uname": "12345678922"
                    },
                    {
                        "id": 4,
                        "stick_id": 1,
                        "content": "呵呵哒",
                        "uname": "12345678922"
                    },
                    {
                        "id": 3,
                        "stick_id": 1,
                        "content": "呵呵哒",
                        "uname": "12345678922"
                    },
                    {
                        "id": 2,
                        "stick_id": 1,
                        "content": "呵呵哒",
                        "uname": "12345678922"
                    }
                ],
                "is_praise": 0,
                "image_url": ""
            }
        ]
    }
}

错误时返回:

{
    "result": 1,
    "msg": "",
    "data": {
        "total": 1,
        "per_page": 15,
        "current_page": 1,
        "last_page": 1,
        "next_page_url": null,
        "prev_page_url": null,
        "from": 1,
        "to": 1,
        "data": []
    }
}

返回参数说明:

参数名 类型 说明
id int 帖子ID
user_id int 发帖用户ID
title string 帖子名称
praise_num int 点赞量
avatar string 发帖用户头像
nickname string 昵称
image_url string 帖子图片
comment array 评论
uname string 评论用户名称
content int 评论内容