picals-platform
  1. Users
picals-platform
  • Users
    • 发送邮箱验证码
      GET
    • 用户注册
      POST
    • 用户登录
      GET
    • 获取用户详细信息
      GET
    • 获取用户简要信息
      GET
    • 修改用户基本信息
      POST
    • 修改密码
      POST
    • 修改邮箱
      POST
    • 获取用户的收藏夹列表
      GET
    • 分页获取用户的浏览记录
      GET
    • 获取用户喜欢的标签列表
      GET
    • 添加/移除用户喜欢的标签
      POST
    • 关注/取关用户
      POST
    • 分页获取正在关注的用户列表
      GET
    • 获取用户正在关注的用户总数
      GET
    • 分页获取用户的粉丝列表
      GET
    • 获取用户的粉丝总数
      GET
    • 获取用户已发布作品中所有携带的标签
      GET
    • 分页获取用户发布的作品列表
      GET
    • 获取用户发布的作品总数
      GET
    • 分页获取用户喜欢的作品
      GET
    • 获取用户喜欢的作品总数
      GET
    • 分页搜索用户
      GET
    • 获取搜索用户总数
      GET
    • 收藏/取消收藏作品
      POST
    • 喜欢/取消喜欢作品
      POST
    • 无感刷新token
      GET
    • 分页获取推荐用户列表
      GET
  • Illustrations
    • 分页获取推荐作品列表
    • 分页获取已关注用户新作
    • 获取昨日排行榜作品
    • 上传作品
    • 编辑作品
    • 获取某个作品的详细信息
    • 根据标签分页搜索作品
    • 获取已关注用户发布的新作总数
    • 获取某个作品的简略信息
    • 浏览作品
    • 获取背景图片列表
    • 将作品中的图片url转为Image实体
    • 上传指定目录中的作品到数据库
    • 更新数据库中的图片尺寸
  • Comments
    • 获取某个作品的评论列表
    • 发布某个作品的评论
    • 删除某条评论
  • History
    • 分页获取用户浏览历史记录
    • 新增用户浏览记录
    • 删除某条历史记录
    • 清除全部历史记录
    • 搜索历史记录
  • Labels
    • 新建标签
    • 获取推荐标签列表
    • 获取某个标签的详细信息
    • 分页获取标签列表
  • Favorites
    • 新建收藏夹
    • 编辑收藏夹
    • 删除收藏夹
    • 修改收藏夹的顺序
    • 获取收藏夹详细信息
    • 分页获取收藏夹作品列表
    • 搜索收藏夹作品
    • 获取搜索结果数量
    • 移动作品到其他收藏夹
    • 复制作品到其他收藏夹
  • Illustrators
    • 新建插画家
    • 修改插画家信息
    • 获取插画家详细信息
    • 分页获取插画家的作品列表
  • Tools
    • 上传单张图片
    • 上传多张图片(最多50张)
  • ImgHandler
    • 生成默认图片
  • Inits
    • 本地开发初始化数据库
  1. Users

分页获取推荐用户列表

开发中
GET
/api/user/recommend-user
在探索页,分页获取推荐用户列表。

请求参数

Query 参数
pageSize
string 
一页的个数
可选
示例值:
6
current
string 
当前的页数
可选
示例值:
1
Header 参数
Authorization
string 
可选
用户鉴权的Header
默认值:
{{token}}

示例代码

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request GET 'http://localhost:0721/api/user/recommend-user?pageSize=6&current=1' \
--header 'Authorization: {{token}}'

返回响应

🟢200成功
application/json
Body
code
integer 
状态码
必需
message
string 
状态信息
必需
data
array[object (UserItem) {6}] 
返回数据
必需
id
string 
用户id
必需
username
string 
用户名
必需
avatar
string 
用户头像
必需
intro
string 
用户简介
必需
works
array[object (WorkNormalItem) {7}] 
用户作品列表
必需
isFollowing
boolean 
是否正在关注
必需
示例
{
    "code": 48,
    "message": "dolore Duis est",
    "data": [
        {
            "id": "62",
            "username": "锺超",
            "avatar": "http://dummyimage.com/100x100",
            "intro": "laborum dolore sit cillum",
            "works": [
                {
                    "id": "95",
                    "name": "识林众比看层今",
                    "imgList": [
                        "http://dummyimage.com/400x400",
                        "http://dummyimage.com/400x400"
                    ],
                    "authorId": "79",
                    "authorName": "种合难",
                    "authorAvatar": "http://dummyimage.com/100x100",
                    "isLiked": false
                },
                {
                    "id": "24",
                    "name": "达标接体打",
                    "imgList": [
                        "http://dummyimage.com/400x400",
                        "http://dummyimage.com/400x400",
                        "http://dummyimage.com/400x400"
                    ],
                    "authorId": "99",
                    "authorName": "何性例属造外",
                    "authorAvatar": "http://dummyimage.com/100x100",
                    "isLiked": true
                },
                {
                    "id": "41",
                    "name": "千党很较种拉转",
                    "imgList": [
                        "http://dummyimage.com/400x400"
                    ],
                    "authorId": "74",
                    "authorName": "调结适深",
                    "authorAvatar": "http://dummyimage.com/100x100",
                    "isLiked": false
                }
            ],
            "isFollowing": true
        },
        {
            "id": "74",
            "username": "秦芳",
            "avatar": "http://dummyimage.com/100x100",
            "intro": "commodo laboris",
            "works": [
                {
                    "id": "27",
                    "name": "当构史府",
                    "imgList": [
                        "http://dummyimage.com/400x400",
                        "http://dummyimage.com/400x400",
                        "http://dummyimage.com/400x400"
                    ],
                    "authorId": "28",
                    "authorName": "传经百毛你之",
                    "authorAvatar": "http://dummyimage.com/100x100",
                    "isLiked": false
                },
                {
                    "id": "48",
                    "name": "更矿什等观须",
                    "imgList": [
                        "http://dummyimage.com/400x400"
                    ],
                    "authorId": "1",
                    "authorName": "便研节有",
                    "authorAvatar": "http://dummyimage.com/100x100",
                    "isLiked": true
                }
            ],
            "isFollowing": true
        },
        {
            "id": "29",
            "username": "乔杰",
            "avatar": "http://dummyimage.com/100x100",
            "intro": "veniam",
            "works": [
                {
                    "id": "27",
                    "name": "资上九快产",
                    "imgList": [
                        "http://dummyimage.com/400x400"
                    ],
                    "authorId": "82",
                    "authorName": "明社意而",
                    "authorAvatar": "http://dummyimage.com/100x100",
                    "isLiked": true
                },
                {
                    "id": "65",
                    "name": "两容式",
                    "imgList": [
                        "http://dummyimage.com/400x400",
                        "http://dummyimage.com/400x400"
                    ],
                    "authorId": "52",
                    "authorName": "活器府据",
                    "authorAvatar": "http://dummyimage.com/100x100",
                    "isLiked": true
                },
                {
                    "id": "53",
                    "name": "物置热更主大达",
                    "imgList": [
                        "http://dummyimage.com/400x400"
                    ],
                    "authorId": "82",
                    "authorName": "求真本据斯族",
                    "authorAvatar": "http://dummyimage.com/100x100",
                    "isLiked": true
                }
            ],
            "isFollowing": false
        }
    ]
}
修改于 2024-05-23 06:36:24
上一页
无感刷新token
下一页
分页获取推荐作品列表
Built with