文档
测试

文章详情

GET
/api/mp/article/queryArticleDetail

请求头

参数名
类型
描述
必填
token
token
必填

请求参数

参数名
类型
描述
必填
articleId
文章id
必填

响应参数

参数名
类型
描述
必填
msg
string
示例:success
必填
code
int
示例:0
必填
data
object
数据字典
必填
id
int
文章id 示例:3
必填
type
类型(0:文章 1:视频) 示例:0
必填
title
string
文章标题 示例:测试标题fff
必填
mainUrl
string
主图
必填
userName
string
发表文章用户名 示例:test师傅
必填
userAvatar
string
发表文章用户头像 示例:https://sf1-ttcdn-tos.pstatp.com/img/mosaic-legacy/3791/5035712059~120x256.image
必填
praseCount
int
点赞数 示例:11
必填
collectCount
int
收藏数 示例:9
必填
commentCount
int
评论数 示例:13
必填
shareCount
number
分享数
必填
createTime
int
发布时间 示例:1600679993000
必填
praseState
boolean
登录用户关于该文章的点赞状态(true:已点赞 false:未点赞) 示例:true
必填
collectState
boolean
登录用户关于该文章的收藏状态(true:已收藏 false:未收藏) 示例:true
必填
articleDetail
string
文章详情 示例:<p>装修流程</p> 或者 http://cdn.zzlzd.com/0a36ebfe523aa36f2074ea2e5ef540ab.mp4
必填
commentList
array
评论列表 数据列表
必填
id
int
评论id 示例:15
必填
userName
string
评论用户名 示例:刘硕
必填
content
string
评论内容 示例:1
必填
praseState
boolean
登录用户关于该评论的点赞状态(true:已点赞 false:未点赞) 示例:false
必填

说明 / 示例

{ "msg": "success", "code": 0, "data": { "id": 3, "type": 0, "title": "测试标题fff", "userName": "test师傅", "userAvatar": "https://sf1-ttcdn-tos.pstatp.com/img/mosaic-legacy/3791/5035712059~120x256.image", "praseCount": 10, "collectCount": 9, "commentCount": 13, "shareCount": 31, "createTime": 1600679993000, "praseState": false, "collectState": false, "articleDetail": "<p>装修流程</p>", "commentList": [ { "id": 6, "userName": "星星", "content": "还可以" } ] } }