获取圈子动态内容列表

简要描述

进入圈子页面,通过该接口获取圈子的动态内容分页数据列表

请求 URL

GET api/coterie/content

Header

Authorization:Bearer <token>

请求参数

参数名 必选 类型 说明
coterie_id int 圈子ID
page int 页码,不传默认为1
type string 筛选条件,user:只看圈主;question:只看问答主题;tag:指定标签主题
value string 筛选条件,type为user时,value值为圈主ID;type为tag时,value值为标签名称

返回示例

{
    "data": [
        {
            "id": 89,
            "coterie_id": 22,
            "user_id": 14,
            "style_type": "default",
            "content_type": "default",
            "description": "为了方便运营,减少大家的学习成本,果酱官方社区将在知识星球上运营。\n\n欲了解果酱所有动态,请扫码或者通过下方链接访问。\n\nhttps://t.zsxq.com/FI6yRrj",
            "link": null,
            "img_list": "[\"https:\\/\\/cdn.ibrand.cc\\/deve2nova2jdbz\\/20191115\\/645c390fb0c2e3bf1432ddb00829d6b9.jpg\"]",
            "tags_list": null,
            "audio_list": null,
            "comment_count": 0,
            "praise_count": 8,
            "status": 1,
            "recommended_at": "2019-11-15 22:51:23",
            "stick_at": "2019-11-15 22:50:46",
            "meta": "{\"user\":{\"id\":14,\"nick_name\":\"\\u9648\\u5f7c\\u5f97\",\"avatar\":\"https:\\/\\/wx.qlogo.cn\\/mmopen\\/vi_32\\/ibs3bZS6S6vGsvkJ3aSOjvns5RlLSwrnz0emrTFzjg3Jx3icrN2KGvIFGZKme8ID2n1GriclbbrDFlmBd8ia5EA3ug\\/132\"}}",
            "created_at": "2019-11-15 22:50:34",
            "updated_at": "2022-01-26 17:30:09",
            "deleted_at": null,
            "meta_info": {
                "user": {
                    "id": 14,
                    "nick_name": "陈彼得",
                    "avatar": "https://wx.qlogo.cn/mmopen/vi_32/ibs3bZS6S6vGsvkJ3aSOjvns5RlLSwrnz0emrTFzjg3Jx3icrN2KGvIFGZKme8ID2n1GriclbbrDFlmBd8ia5EA3ug/132"
                }
            },
            "is_recommend": 1,
            "is_praise_user": 0,
            "is_content_user": 0,
            "is_stick": 1,
            "link_info": null,
            "img_list_info": [
                "https://cdn.ibrand.cc/deve2nova2jdbz/20191115/645c390fb0c2e3bf1432ddb00829d6b9.jpg"
            ],
            "tags_list_info": null,
            "audio_list_info": null,
            "question": null,
            "user": {
                "id": 14,
                "nick_name": "陈彼得",
                "avatar": "https://wx.qlogo.cn/mmopen/vi_32/ibs3bZS6S6vGsvkJ3aSOjvns5RlLSwrnz0emrTFzjg3Jx3icrN2KGvIFGZKme8ID2n1GriclbbrDFlmBd8ia5EA3ug/132"
            },
            "praise": [
                {
                    "id": 49,
                    "user_id": 18,
                    "content_id": 89,
                    "meta": "{\"id\":18,\"nick_name\":\"\\u5927\\u5927\",\"avatar\":\"https:\\/\\/wx.qlogo.cn\\/mmopen\\/vi_32\\/rZEIzYRP1QvVeRVDGu70liaTWWK465iaEQGsGQvafic0dL2FUfE2mm3fdCeGaB69TlXBDrBOHFdcyesZoicHP3Cn2A\\/132\"}",
                    "created_at": "2019-12-02 03:40:48",
                    "updated_at": "2019-12-02 03:40:48",
                    "deleted_at": null,
                    "user_meta_info": {
                        "id": 18,
                        "nick_name": "大大",
                        "avatar": "https://wx.qlogo.cn/mmopen/vi_32/rZEIzYRP1QvVeRVDGu70liaTWWK465iaEQGsGQvafic0dL2FUfE2mm3fdCeGaB69TlXBDrBOHFdcyesZoicHP3Cn2A/132"
                    }
                },
                {
                    "id": 50,
                    "user_id": 2,
                    "content_id": 89,
                    "meta": "{\"id\":2,\"nick_name\":\"\\u58f9\\u7985\",\"avatar\":\"https:\\/\\/wx.qlogo.cn\\/mmopen\\/vi_32\\/p5bxcgZKPErkFbBarZdiciaQlJpOWky2502J3BPz3RqraTIuBxOekUlGwib7tSpF7t3MTdt5uwyCMoAmECGP2nghg\\/132\"}",
                    "created_at": "2019-12-19 19:06:26",
                    "updated_at": "2019-12-19 19:06:26",
                    "deleted_at": null,
                    "user_meta_info": {
                        "id": 2,
                        "nick_name": "壹禅",
                        "avatar": "https://wx.qlogo.cn/mmopen/vi_32/p5bxcgZKPErkFbBarZdiciaQlJpOWky2502J3BPz3RqraTIuBxOekUlGwib7tSpF7t3MTdt5uwyCMoAmECGP2nghg/132"
                    }
                },

            ],
            "comment": []
        },
        {
            "id": 162,
            "coterie_id": 22,
            "user_id": 427,
            "style_type": "default",
            "content_type": "default",
            "description": "这是我的测试动态内容,感谢大家。",
            "link": null,
            "img_list": "[\"https:\\/\\/cdn.ibrand.cc\\/deve2nova2jdbz\\/20220126\\/4a4dfeac496da1687823b212d58d7385.png\"]",
            "tags_list": "[\"\\u679c\\u9171\\u5c0f\\u5e97\"]",
            "audio_list": null,
            "comment_count": 0,
            "praise_count": 0,
            "status": 1,
            "recommended_at": null,
            "stick_at": null,
            "meta": "{\"user\":{\"id\":427,\"nick_name\":\"\\u5fae\\u4fe1\\u7528\\u6237\",\"avatar\":\"https:\\/\\/thirdwx.qlogo.cn\\/mmopen\\/vi_32\\/POgEwh4mIHO4nibH0KlMECNjjGxQUq24ZEaGT4poC6icRiccVGKSyXwibcPq4BWmiaIGuG1icwxaQX6grC9VemZoJ8rg\\/132\"}}",
            "created_at": "2022-01-26 18:27:30",
            "updated_at": "2022-01-26 18:27:30",
            "deleted_at": null,
            "meta_info": {
                "user": {
                    "id": 427,
                    "nick_name": "微信用户",
                    "avatar": "https://thirdwx.qlogo.cn/mmopen/vi_32/POgEwh4mIHO4nibH0KlMECNjjGxQUq24ZEaGT4poC6icRiccVGKSyXwibcPq4BWmiaIGuG1icwxaQX6grC9VemZoJ8rg/132"
                }
            },
            "is_recommend": 0,
            "is_praise_user": 0,
            "is_content_user": 0,
            "is_stick": 0,
            "link_info": null,
            "img_list_info": [
                "https://cdn.ibrand.cc/deve2nova2jdbz/20220126/4a4dfeac496da1687823b212d58d7385.png"
            ],
            "tags_list_info": [
                "果酱小店"
            ],
            "audio_list_info": null,
            "question": null,
            "user": {
                "id": 427,
                "nick_name": "微信用户",
                "avatar": "https://thirdwx.qlogo.cn/mmopen/vi_32/POgEwh4mIHO4nibH0KlMECNjjGxQUq24ZEaGT4poC6icRiccVGKSyXwibcPq4BWmiaIGuG1icwxaQX6grC9VemZoJ8rg/132"
            },
            "praise": [],
            "comment": [
    {
        "id": 51,
        "user_id": 427,
        "content_id": 162,
        "content": "这是我的评论内容",
        "meta": "{\"id\":427,\"nick_name\":\"\\u5fae\\u4fe1\\u7528\\u6237\",\"avatar\":\"https:\\/\\/thirdwx.qlogo.cn\\/mmopen\\/vi_32\\/POgEwh4mIHO4nibH0KlMECNjjGxQUq24ZEaGT4poC6icRiccVGKSyXwibcPq4BWmiaIGuG1icwxaQX6grC9VemZoJ8rg\\/132\"}",
        "status": 1,
        "created_at": "2022-01-26 15:52:09",
        "updated_at": "2022-01-26 15:52:09",
        "deleted_at": null,
        "user_meta_info": {
            "id": 427,
            "nick_name": "微信用户",
            "avatar": "https://thirdwx.qlogo.cn/mmopen/vi_32/POgEwh4mIHO4nibH0KlMECNjjGxQUq24ZEaGT4poC6icRiccVGKSyXwibcPq4BWmiaIGuG1icwxaQX6grC9VemZoJ8rg/132"
        },
        "is_praise_user": 0,
        "is_comment_user": 0,
        "praise_count": 0
    },
    {
        "id": 49,
        "user_id": 425,
        "content_id": 162,
        "content": "我的评论",
        "meta": "{\"id\":425,\"nick_name\":\"\\u5fae\\u4fe1\\u7528\\u6237\",\"avatar\":\"https:\\/\\/thirdwx.qlogo.cn\\/mmopen\\/vi_32\\/POgEwh4mIHO4nibH0KlMECNjjGxQUq24ZEaGT4poC6icRiccVGKSyXwibcPq4BWmiaIGuG1icwxaQX6grC9VemZoJ8rg\\/132\"}",
        "status": 1,
        "created_at": "2022-01-26 12:42:25",
        "updated_at": "2022-01-26 12:42:25",
        "deleted_at": null,
        "user_meta_info": {
            "id": 425,
            "nick_name": "微信用户",
            "avatar": "https://thirdwx.qlogo.cn/mmopen/vi_32/POgEwh4mIHO4nibH0KlMECNjjGxQUq24ZEaGT4poC6icRiccVGKSyXwibcPq4BWmiaIGuG1icwxaQX6grC9VemZoJ8rg/132"
        },
        "is_praise_user": 0,
        "is_comment_user": 0,
        "praise_count": 0
    }
    ]
        },
        {
            "id": 161,
            "coterie_id": 22,
            "user_id": 427,
            "style_type": "question",
            "content_type": "default",
            "description": "好的,不用客气!",
            "link": null,
            "img_list": null,
            "tags_list": null,
            "audio_list": null,
            "comment_count": 0,
            "praise_count": 0,
            "status": 1,
            "recommended_at": null,
            "stick_at": null,
            "meta": "{\"user\":{\"id\":427,\"nick_name\":\"\\u5fae\\u4fe1\\u7528\\u6237\",\"avatar\":\"https:\\/\\/thirdwx.qlogo.cn\\/mmopen\\/vi_32\\/POgEwh4mIHO4nibH0KlMECNjjGxQUq24ZEaGT4poC6icRiccVGKSyXwibcPq4BWmiaIGuG1icwxaQX6grC9VemZoJ8rg\\/132\"}}",
            "created_at": "2022-01-26 18:16:19",
            "updated_at": "2022-01-26 18:16:19",
            "deleted_at": null,
            "meta_info": {
                "user": {
                    "id": 427,
                    "nick_name": "微信用户",
                    "avatar": "https://thirdwx.qlogo.cn/mmopen/vi_32/POgEwh4mIHO4nibH0KlMECNjjGxQUq24ZEaGT4poC6icRiccVGKSyXwibcPq4BWmiaIGuG1icwxaQX6grC9VemZoJ8rg/132"
                }
            },
            "is_recommend": 0,
            "is_praise_user": 0,
            "is_content_user": 0,
            "is_stick": 0,
            "link_info": null,
            "img_list_info": null,
            "tags_list_info": null,
            "audio_list_info": null,
            "question": {
                "id": 32,
                "content_id": 161,
                "coterie_id": 22,
                "user_id": 389,
                "answer_user_id": 427,
                "content": "这是我的第一个提问,请多多包含!",
                "img_list": "[\"https:\\/\\/cdn.ibrand.cc\\/deve2nova2jdbz\\/20220126\\/02f849bfff9d4446c343b8cbe87f9c86.png\"]",
                "created_at": "2022-01-26 17:54:16",
                "updated_at": "2022-01-26 18:16:20",
                "deleted_at": null,
                "is_reply": 1,
                "img_list_info": [
                    "https://cdn.ibrand.cc/deve2nova2jdbz/20220126/02f849bfff9d4446c343b8cbe87f9c86.png"
                ],
                "user": {
                    "id": 389,
                    "nick_name": "南风",
                    "avatar": "https://thirdwx.qlogo.cn/mmopen/vi_32/DYAIOgq83eoFvDYjmvZicKM6MDbpLxbYFZQUyPftSYicnmOS7skYfHyicPibzWg0I761dF339YeTb5z1kCKR3meZqA/132"
                }
            },
            "user": {
                "id": 427,
                "nick_name": "微信用户",
                "avatar": "https://thirdwx.qlogo.cn/mmopen/vi_32/POgEwh4mIHO4nibH0KlMECNjjGxQUq24ZEaGT4poC6icRiccVGKSyXwibcPq4BWmiaIGuG1icwxaQX6grC9VemZoJ8rg/132"
            },
            "praise": [],
            "comment": []
        },

    ],
    "meta": {
        "pagination": {
            "total": 13,
            "count": 10,
            "per_page": 10,
            "current_page": 1,
            "total_pages": 2,
            "links": {
                "first": "http://dev.coterie.com/api/coterie/content?page=1",
                "last": "http://dev.coterie.com/api/coterie/content?page=2",
                "prev": null,
                "next": "http://dev.coterie.com/api/coterie/content?page=2"
            }
        },
        "member": {
            "id": 344,
            "coterie_id": 22,
            "user_id": 429,
            "user_type": "normal",
            "user_meta": "{\"id\":429,\"nick_name\":\"\\u5fae\\u4fe1\\u7528\\u6237\",\"avatar\":\"https:\\/\\/thirdwx.qlogo.cn\\/mmopen\\/vi_32\\/POgEwh4mIHO4nibH0KlMECNjjGxQUq24ZEaGT4poC6icRiccVGKSyXwibcPq4BWmiaIGuG1icwxaQX6grC9VemZoJ8rg\\/132\"}",
            "joined_at": "2022-01-27 11:37:11",
            "is_forbidden": 0,
            "created_at": "2022-01-27 11:37:11",
            "updated_at": "2022-01-27 11:37:11",
            "deleted_at": null,
            "user_meta_info": {
                "id": 429,
                "nick_name": "微信用户",
                "avatar": "https://thirdwx.qlogo.cn/mmopen/vi_32/POgEwh4mIHO4nibH0KlMECNjjGxQUq24ZEaGT4poC6icRiccVGKSyXwibcPq4BWmiaIGuG1icwxaQX6grC9VemZoJ8rg/132"
            },
            "coterie": {
                "id": 22,
                "user_id": 14,
                "name": "果酱云社区",
                "description": "果酱云社区,分享创业以来所有研发出来的产品,近期陆续分享,果酱小店,果酱圈子,果酱学院,果酱互动。\n\n更多产品,尽请期待",
                "avatar": "https://cdn.guojiang.club/guojiang_avatar.png",
                "member_count": 130,
                "content_count": 13,
                "recommend_count": 1,
                "ask_count": 1,
                "cost_type": "free",
                "duration_type": "joined",
                "recommend_at": "2019-11-01 15:43:21",
                "price": 0,
                "notice": null,
                "created_at": "2019-11-01 14:34:08",
                "updated_at": "2022-01-27 11:37:14",
                "deleted_at": null,
                "price_yuan": "0.00",
                "is_recommend": 1,
                "member_owner": {
                    "id": 31,
                    "coterie_id": 22,
                    "user_id": 14,
                    "user_type": "owner",
                    "user_meta": "{\"id\":14,\"nick_name\":\"\\u9648\\u5f7c\\u5f97\",\"avatar\":\"https:\\/\\/wx.qlogo.cn\\/mmopen\\/vi_32\\/ibs3bZS6S6vGsvkJ3aSOjvns5RlLSwrnz0emrTFzjg3Jx3icrN2KGvIFGZKme8ID2n1GriclbbrDFlmBd8ia5EA3ug\\/132\"}",
                    "joined_at": "2019-11-01 14:34:08",
                    "is_forbidden": 0,
                    "created_at": "2019-11-01 14:34:08",
                    "updated_at": "2019-11-01 14:34:08",
                    "deleted_at": null,
                    "user_meta_info": {
                        "id": 14,
                        "nick_name": "陈彼得",
                        "avatar": "https://wx.qlogo.cn/mmopen/vi_32/ibs3bZS6S6vGsvkJ3aSOjvns5RlLSwrnz0emrTFzjg3Jx3icrN2KGvIFGZKme8ID2n1GriclbbrDFlmBd8ia5EA3ug/132"
                    }
                }
            }
        }
    },
    "status": true
}

返回参数

参数 类型 描述
style_type string 内容类型,question:回答问题 default:普通内容动态
is_recommend int 是否被推荐 1:已推荐 0:未推荐
is_praise_user int 当前用户是否对内容已点赞 1 是;0 否
is_content_user int 当前用户是否是该内容的发布者 1 是;0 否
is_stick int 是否置顶 1:已推荐 0:未推荐
meta_info 将meta字段json_decode
link_info 将链接字段json_decode
img_list_info 将图片附件字段(img_list)进行json_decode
tags_list_info 将标签字段(tags_list)进行json_decode

user 圈主数据:

参数 类型 描述
id int 圈主UID
nick_name string 圈主昵称
avatar string 圈主头像

praise点赞数据:

参数 类型 描述
content_id int 内容ID
created_at timestamp 点赞时间
user_id int 点赞用户ID
user_meta_info array 用户信息meta字段json_decode

comment评论数据:

参数 类型 描述
content_id int 内容ID
created_at timestamp 评论时间
user_meta_info array 用户信息meta字段json_decode

question 问题数据:

参数 类型 描述
is_reply int 是否已回复 1:已回复 0:未回复
img_list_info array 将img_list字段json_decode
user 提问者数据

meta.member 当前登录用户在本圈子的会员信息

参数 类型 描述
user_meta_info array 用户信息user_meta字段json_decode