5、根据关键字检索文章
GET
http://localhost:88/api/post/search?keyword=%E7%B3%96%E5%B0%BF%E7%97%85&pageNum=1&pageSize=10
接口描述
通过关键字搜索相关文章
URL参数
参数名
类型
描述
必填
keyword
string
关键字
必填
pageNum
int
当前页码
必填
pageSize
int
每页记录数
必填
响应参数
参数名
类型
描述
必填
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
总页数
必填