搜索圈子

简要描述

通过关键词搜索圈子,返回分页数据

请求 URL

GET api/coterie/search?name={keyword}

请求参数

参数名 必选 类型 说明
keyword string 搜索关键字
page int 页码,不传默认为1

返回示例

{
    "data": [
        {
            "id": 22,
            "user_id": 14,
            "name": "果酱云社区",
            "description": "果酱云社区,分享创业以来所有研发出来的产品,近期陆续分享,果酱小店,果酱圈子,果酱学院,果酱互动。\n\n更多产品,尽请期待",
            "avatar": "https://cdn.guojiang.club/guojiang_avatar.png",
            "member_count": 133,
            "content_count": 11,
            "recommend_count": 1,
            "ask_count": 0,
            "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-26 11:30:42",
            "deleted_at": null,
            "price_yuan": "0.00",
            "is_recommend": 1,
            "user": {
                "id": 14,
                "nick_name": "陈彼得",
                "avatar": "https://wx.qlogo.cn/mmopen/"
            }
        },
        {
            "id": 23,
            "user_id": 15,
            "name": "果酱云社区-2",
            "description": "果酱云社区-2",
            "avatar": "https://cdn.guojiang.club/guojiang_avatar.png",
            "member_count": 13,
            "content_count": 11,
            "recommend_count": 1,
            "ask_count": 0,
            "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-26 11:30:42",
            "deleted_at": null,
            "price_yuan": "0.00",
            "is_recommend": 1,
            "user": {
                "id": 15,
                "nick_name": "BEYOND",
                "avatar": "https://wx.qlogo.cn/mmopen/"
            }
        }
    ],
    "meta": {
        "pagination": {
            "total": 1,
            "count": 1,
            "per_page": 10,
            "current_page": 1,
            "total_pages": 1,
            "links": {
                "first": "http://dev.coterie.com/api/coterie/search?page=1",
                "last": "http://dev.coterie.com/api/coterie/search?page=1",
                "prev": null,
                "next": null
            }
        }
    },
    "status": true
}

返回参数

meta.pagination 分页数据参数

参数 类型 描述
total int 总共有多少条数据
count int 总共有多少条数据
per_page int 每页数据条数
current_page int 当前所在页
total_pages int 总数据页

data数据

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