圈子详情

简要描述

通过该接口,获取圈子的详细信息,包括圈子基础信息,圈子话题内容,圈子成员数据

请求 URL

GET api/coterie/{id}

Header

Authorization:Bearer <token>

请求参数

参数名 必选 类型 说明
id int 圈子ID

返回示例

{
    "status": true,
    "code": 200,
    "data": {
        "id": 24,
        "user_id": 422,
        "name": "圈子名称2",
        "description": "这是圈子简介",
        "avatar": "https://cdn.ibrand.cc/deve2nova2jdbz/20220125/e6c779b3bc2a57cc034f081acb05f658.png",
        "member_count": 1,
        "content_count": 0,
        "recommend_count": 0,
        "ask_count": 0,
        "cost_type": "free",
        "duration_type": "joined",
        "recommend_at": null,
        "price": 0,
        "notice": null,
        "created_at": "2022-01-25 15:46:28",
        "updated_at": "2022-01-25 15:46:28",
        "deleted_at": null,
        "content": [ {
                "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": 6,
                "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": "2021-10-20 16:39:45",
                "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"
                }
            }],
        "is_coterie_member": 1,
        "coterie_user_type": "owner",
        "is_perfect_user_info": 1,
        "invite_user_code": "oRjqBr1P54wDXJz",
        "login_user_meta": {
            "id": 422,
            "nick_name": "微信用户",
            "avatar": "https://thirdwx.qlogo.cn/mmopen/vi2"
        },
        "price_yuan": "0.00",
        "is_recommend": 0,
        "user": {
            "id": 422,
            "nick_name": "微信用户",
            "avatar": "https://thirdwx.qlogo.cn/mmopen/2"
        },
        "member_guest": [],
        "member_normal": [
            {
                "id": 44,
                "coterie_id": 24,
                "user_id": 3,
                "user_type": "normal",
                "user_meta": "",
                "joined_at": "2019-11-01 18:09:40",
                "is_forbidden": 0,
                "created_at": "2019-11-01 18:09:40",
                "updated_at": "2019-11-01 18:09:40",
                "deleted_at": null,
                "user_meta_info": {
                    "id": 3,
                    "nick_name": "玖玖",
                    "avatar": "https://wx.qlogo.cn/1"
                }
            },
            {
                "id": 43,
                "coterie_id": 24,
                "user_id": 36,
                "user_type": "normal",
               "user_meta": "",
                "joined_at": "2019-11-01 17:55:24",
                "is_forbidden": 0,
                "created_at": "2019-11-01 17:55:24",
                "updated_at": "2019-11-01 17:55:24",
                "deleted_at": null,
                "user_meta_info": {
                    "id": 36,
                    "nick_name": "Hui-Curry",
                    "avatar": "https://wx.qlogo.cn/1"
                }
            }
        ]
    }
}

返回参数

参数 类型 描述
is_coterie_member int 当前登陆用户是否是圈子成员,1:是,0:否,如未登录也返回0
coterie_user_type string 当前登陆用户在圈子成员类型:normal 普通成员,owner圈主,guest 嘉宾,如未登录,该字段返回空
is_perfect_user_info int 当前登录用户是否信息完善,如果用户有nick_name则为1,否则为0
invite_user_code string 当前登录用户邀请码,如果未登录或者非圈子成员为空
login_user_meta array 当前登录用户数据
login_user_meta.id int 用户ID
login_user_meta.nick_name string 用户昵称
login_user_meta.avatar string 用户头像URL
member_guest array 圈子嘉宾数据
member_normal array 圈子部分成员数据
member_normal.user_meta_info array 圈子普通成员的会员数据
member_normal.user_meta_info.id int 用户ID
member_normal.user_meta_info.nick_name string 用户昵称
member_normal.user_meta_info.avatar string 用户头像URL
content array 当前圈子部分主题预览数据