分页获取文章(后台)
请求方法:GET
请求地址:/article/page
请求参数:
current:当前页,非必传,默认1
size:每页数量,非必传,默认5
status:文章状态,非必传,不传查全部;0:已发布,1:未发布,2:回收站
categoryId:分类id,非必传
tagId:标签id,非必传
yearMonth:年月,格式yyyy-mm,非必传
title:标题关键字,非必传
需要access_token: 是
需要管理员权限: 是
接口说明:查询非已删除的文章,用于文章后台管理。
获取成功:
{
"code": 0,
"message": "成功",
"data": {
"records": [
{
"id": 1,
"original": 1,
"categoryName": "一级分类一",
"categoryId": 1,
"title": "标题",
"summary": "摘要",
"cover": "http:www.baidu.com",
"status": 1,
"viewCount": 0,
"commentCount": 0,
"likeCount": 0,
"collectCount": 0,
"publishTime": "2019-12-31 17:53:49",
"updateTime": "2019-12-31 17:53:49",
"user": {
"id": 1,
"nickname": "小管家",
"avatar": "https://poile-img.nos-eastchina1.126.net/me.png"
},
"tagList": [
{
"id": 1,
"name": "测试"
}
]
}
],
"total": 1,
"size": 5,
"current": 1,
"searchCount": true,
"pages": 1
}
}