简要描述:

  • 首页帖子列表 搜索页 分类页

请求域名:

  • http://xx.com

请求URL:

POST/&route=plugin.store-alone-temp.frontend.micro_communities.index.getStick

参数:

参数名 是否必须 类型 说明
title string 帖子标题
trick_new int 最新 默认为一
uid string 用户ID-用户发布的帖子
is_praise string 1-点赞过的帖子

返回示例:

正确时返回:

{
    "result": 1,
    "msg": "",
    "data": {
        "total": 2,
        "per_page": 15,
        "current_page": 1,
        "last_page": 1,
        "next_page_url": null,
        "prev_page_url": null,
        "from": 1,
        "to": 2,
        "data": [
            {
                "id": 4,
                "praise_num": 0,
                "user_id": 84,
                "title": "测试",
                "ylng": null,
                "ylat": null,
                "cat_id": 1,
                "has_one_stick_user": {
                    "avatar": "http://test-1251768088.cosgz.myqcloud.com/images/3/2018/04/PQ40SOu6jSoWL90I1Iup0Kttw1izoF.jpg",
                    "nickname": "12345678922",
                    "uid": 84
                },
                "has_one_category": {
                    "id": 1,
                    "name": "测试",
                    "icon": "http://test-1251768088.cosgz.myqcloud.com/images/3/2019/08/iR2M1S2x0X2Fv2VvSmX2Usvooc7vsz.png"
                },
                "has_many_image": [
                    {
                        "id": 47,
                        "stick_id": 4,
                        "url": "images/3/2019/08/wwKZIk58383WrL9T7LVIIn5ilWZWn8.png"
                    }
                ]
            }
		】
}

返回参数说明:

参数名 类型 说明
praise_num int 点赞量
user_id int 发帖人ID
title string 帖子标题
ylng string 未转的经度
ylat string 未转的纬度
has_one_stick_user array 发帖人关联信息
avatar string 发帖人头像地址
nickname string 发帖人昵称
has_one_category string 分类相关信息
has_many_image array 贴子图片信息
stick_id string 帖子ID
url string 图片地址