文章列表
GET
/api/mp/article/queryArticle
请求头
参数名
类型
描述
必填
token
token
必填
请求参数
参数名
类型
描述
必填
categoryId
分类id
必填
page
第几页 示例:0
必填
size
每页几条 示例:10
必填
sort
排序参数 例如:createTime,desc
必填
type
number
类型(0:文章 1:视频)
必填
id
number
文章id(列表不包含该条文章)
必填
响应参数
参数名
类型
描述
必填
msg
string
示例:success
必填
code
int
示例:0
必填
id
int
文章id 示例:1
必填
userId
int
用户id 示例:53
必填
title
string
文章标题 示例:日常生活
必填
mainUrl
object
主图 示例:null
必填
type
int
类型(0:文章 1:视频) 示例:1
必填
praseCount
int
点赞数 示例:0
必填
userName
string
用户名 示例:刘硕
必填
userAvatar
string
用户头像 示例:https://wx.qlogo.cn/mmopen/vi_32/Q0j4TwGTfTJicVqdErJIy7HwYUuhlyQg40tIVxicsxQjOeyAuSHJYOtY68hGTUuZSe3kUWPTzibtPJBj55I5QbeoA/132
必填
praseState
Boolean
登录用户关于该文章的点赞状态(true:已点赞 false:未点赞)
必填
commentCount
int
评论数
必填
collectCount
int
收藏数
必填
shareCount
int
分享数
必填
videoUrl
string
视频url
必填
totalElements
int
总条数 示例:2
必填