1、获取主页文章列表
GET
http://localhost:88/api/post/post/listpost?pageNo=1&size=10&tab=latest
接口描述
根据不同主题获取文章
URL参数
参数名
类型
描述
必填
pageNo
int
当前页码
必填
size
int
每页记录数
必填
tab
string
帖子主题(latest、hot)
必填
响应参数
参数名
类型
描述
必填
msg
string
提示信息
必填
code
int
0-成功,其他业务码-失败
必填
id
string
文章id
必填
userId
string
用户id
必填
avatar
string
头像地址
必填
alias
string
用户昵称
必填
username
string
用户账号
必填
title
string
标题
必填
comments
int
评论统计
必填
top
boolean
是否置顶
必填
essence
boolean
是否加精
必填
collects
int
收藏次數
必填
view
int
浏览量
必填
createTime
string
创建时间
必填
modifyTime
object
修改时间
必填
total
int
文章总数
必填
size
int
分页数量
必填
current
int
当前页码
必填
orders
array
排序字段信息
必填
hitCount
boolean
是否命中count缓存
必填
searchCount
boolean
是否进行 count 查询
必填
pages
int
总页数
必填