文档
测试

分页获取数据

GET
http://47.97.253.110:8085/paging

接口描述

获取3篇文章,需要先登录才能获得数据,没有参数则默认为第一页

请求参数

参数名
类型
描述
必填
page
int
示例:1
必填

响应参数

参数名
类型
描述
必填
msg
string
示例:查询成功
必填
code
int
示例:200
必填
data
object
数据字典
必填
count
int
总页数 示例:3
必填
articles
array
数据列表
必填
author
string
作者 示例:小李
必填
content
string
文章内容 示例:教练,我想打篮球。。。。。。。。。。。。。。。。。。。。。
必填
id
int
文章id标识 示例:2
必填
picture
string
文章图片路径(可能为空) 示例:D:\pictures\1.jpg
必填
time
string
文章发布时间 示例:2021-03-03 20:46:10.0
必填
title
string
文章标题 示例:我是文章的标题2
必填
uid
int
文章所属用户id标识 示例:1
必填

说明 / 示例

```java { "msg": "查询成功", "code": 200, "data": { "count": 3, "articles": [ { "author": "小李", "content": "教练,我想打篮球。", "id": 2, "picture": "D:\\pictures\\1.jpg", "time": "2021-03-03 20:46:10.0", "title": "我是文章的标题2", "uid": 1 }, { "author": "小李", "content": "我们是妖精的尾巴", "id": 3, "picture": "D:\\pictures\\1.jpg", "time": "2021-03-03 20:46:10.0", "title": "我是文章的标题3", "uid": 1 }, { "author": "小李", "content": "这就是我的忍道", "id": 4, "picture": "D:\\pictures\\1.jpg", "time": "2021-03-03 20:46:10.0", "title": "我是文章的标题3", "uid": 1 } ] } } ```