简要描述:

  • 访客足迹接口

请求域名:

  • http://xx.com

请求URL:

POST:plugin.micro-communities.api.goods.index

参数:

参数名 是否必须 类型 说明
page int 当前页面
goods_id int 商品ID

返回示例:

正确时返回:

{
    "result": 1,
    "msg": "ok",
    "data": {
        "total": 3,
        "per_page": 10,
        "current_page": 1,
        "last_page": 1,
        "next_page_url": null,
        "prev_page_url": null,
        "from": 1,
        "to": 3,
        "data": [
            {
                "id": 18,
                "praise_num": 2,
                "user_id": 405,
                "title": "测试",
                "has_one_stick_user": {
                    "avatar": "https://thirdwx.qlogo.cn/mmopen/2bY7rJSco1zd3sENqMclS1eyiaW201cIDDN5icWjBMhhibu6du9XUDlEtPoppV8SfQPdric58yJIA6fQoQI7jNTAm0CppianW7cQP/132",
                    "nickname": "ha",
                    "uid": 405
                },
                "has_many_comment": [
                    {
                        "stick_id": 18,
                        "id": 16
                    }
                ],
                "has_many_image": [
                    {
                        "id": 44,
                        "stick_id": 18,
                        "url": "https://dev4.yunzmall.com/attachment/image/23231166b9e6987c043e6b81c2b762d8.jpg"
                    }
                ],
                "comment_num": 1
            },
            {
                "id": 6,
                "praise_num": 5,
                "user_id": 437,
                "title": "随拍2",
                "has_one_stick_user": {
                    "avatar": "https://thirdwx.qlogo.cn/mmopen/ajNVdqHZLLD58ic8lJKZ9BNjwm1MU5Wd2icSCy7LEUoWf8Pn76pHrLppzedrqI9bwic4Yhja37A5eZrECGlRZVBibdiaIw4SG3VD8JznpWweddrw/132",
                    "nickname": "huan",
                    "uid": 437
                },
                "has_many_comment": [
                    {
                        "stick_id": 6,
                        "id": 11
                    },
                    {
                        "stick_id": 6,
                        "id": 13
                    },
                    {
                        "stick_id": 6,
                        "id": 17
                    }
                ],
                "has_many_image": [
                    {
                        "id": 46,
                        "stick_id": 6,
                        "url": "https://dev4.yunzmall.com/attachment/image/0810399fc97b012530104ee3df2d4bcf.jpg"
                    }
                ],
                "comment_num": 3
            },
            {
                "id": 2,
                "praise_num": 1,
                "user_id": 398,
                "title": "测试",
                "has_one_stick_user": {
                    "avatar": "https://thirdwx.qlogo.cn/mmopen/I6WuQDwzlBP8icQU0eWkeOdzB5TIu9T5mibVHthJ9vHF3iarzTNKvOgC8YX2hIKbT1XjdpBws6gAC3ISRJauMib4NI9v2G1BicY9ia/132",
                    "nickname": "卡卡",
                    "uid": 398
                },
                "has_many_comment": [
                    {
                        "stick_id": 2,
                        "id": 2
                    },
                    {
                        "stick_id": 2,
                        "id": 3
                    },
                    {
                        "stick_id": 2,
                        "id": 4
                    }
                ],
                "has_many_image": [
                    {
                        "id": 24,
                        "stick_id": 2,
                        "url": "https://dev4.yunzmall.com/attachment/image/d1f04bf8378136a5d2c91d2a06cca62d.png"
                    },
                    {
                        "id": 25,
                        "stick_id": 2,
                        "url": "https://dev4.yunzmall.com/attachment/image/bd0a65e532b75e97491c22f2d093a2b6.png"
                    }
                ],
                "comment_num": 3
            }
        ]
    }
}

返回参数说明:

参数名 类型 说明
result int 0:失败,1:成功
msg string 提示消息
data array 返回数据

返回参数 data 说明:

参数名 类型 说明
title string 标题
comment_num int 评论数
praise_num int 点赞数
has_one_stick_user array 会员信息
has_many_image array 微贴图片,是个数组(我看微社区前端首页给的也是个数组,你看他怎么用的,可能是取数组第一项)

备注: