🔥码云GVP开源项目 12k star Uniapp+ElementUI 功能强大 支持多语言、二开方便! 广告
## **3.1 用户** ### **用户列表** GET: ~~~ /api/v1/info/profiles ~~~ 接口概述:查询用户列表 建议频率:查询时调用 | 请求参数 | 数据类型 | 是否必填 | 说明 | 备注 | | --- | --- | --- | --- | --- | | token | string | 是 | 令牌 | | | page | int | 是 | 页码 | | | per\_page | int | 是 | 页大小 | | | source | string | 否 | 来源 | bilibili, douyin, kuaishou, toutiao, weibo | 请求 URL 示例 ~~~ /api/v1/info/profiles?page=1&per_page=20&token=XXX ~~~ ### **用户详情** GET: ~~~ /api/v1/info/profiles/{id} ~~~ 接口概述:查询用户 建议频率:查询时调用 | 请求参数 | 说明 | 数据类型 | 是否必填 | | --- | --- | --- | --- | | token | 令牌 | string | 是 | | id | 用户 id | string | 是 | 请求 URL 示例 ~~~ /api/v1/info/profiles/1?token=XXX ~~~ 返回 ~~~json { "id": 1, "source": "toutiao", "name": "余霜YSCandice", "desc": "英雄联盟官方主持人", "avatar": "https://wx2.sinaimg.cn/orj480/71b26c7fly8grwz25ljbyj20u00u00vk.jpg", "following_count": 1612, "follower_count": 5619218, "like_count": 0, "game_id": 1 } ~~~ | 返回参数 | 数据类型 | 描述 | 备注 | | --- | --- | --- | --- | | id | int | 用户 id | | | source| string| 来源 | | | name | string | 名称 | | | desc | string | 描述 | | | avatar | string | 头像 | | | following\_count | int | 关注数 | | | follower\_count | int | 粉丝数 | | | like_count | int | 点赞数 | | | game_id | int | 游戏 id |