文档
测试

贴吧--显示评论

GET
wxapi/bar/comment/{barId}

接口描述

显示评论

响应参数

application/json
参数名
类型
描述
必填
msg
string
示例:success
必填
code
int
示例:0
必填
comment
array
数据列表
必填
id
int
示例:1
必填
author
string
示例:阿瓦达
必填
louzu
boolean
示例:true
必填
avatar
string
示例:却无法
必填
content
string
示例:大王的发过去我
必填
likes
int
示例:0
必填
createTime
string
示例:2022-05-05 02:40:09
必填
barId
int
示例:1
必填
parentCommentId
int
示例:0
必填
studentId
int
示例:1
必填
replyComments
array
数据列表
必填
id
int
示例:2
必填
author
string
示例:打完
必填
louzu
boolean
示例:false
必填
avatar
string
示例:权威的
必填
content
string
示例:光天化日
必填
likes
int
示例:0
必填
createTime
string
示例:2022-05-05 02:41:12
必填
barId
int
示例:1
必填
parentCommentId
int
示例:1
必填
studentId
int
示例:1
必填
replyComments
array
数据列表
必填
parentComment
object
示例:null
必填
parentComment
object
示例:null
必填

说明 / 示例

``` { "msg": "success", "code": 0, "comment": [ { "id": 1, "author": "阿瓦达", "louzu": true, "avatar": "却无法", "content": "大王的发过去我", "likes": 0, "createTime": "2022-05-05 02:40:09", "barId": 1, "parentCommentId": 0, "studentId": 1, "replyComments": [ { "id": 2, "author": "打完", "louzu": false, "avatar": "权威的", "content": "光天化日", "likes": 0, "createTime": "2022-05-05 02:41:12", "barId": 1, "parentCommentId": 1, "studentId": 1, "replyComments": [], "parentComment": null }, { "id": 3, "author": "李三光", "louzu": true, "avatar": "去我地环球网", "content": "的七万公顷我", "likes": 0, "createTime": "2022-05-05 04:47:35", "barId": 1, "parentCommentId": 1, "studentId": 1, "replyComments": [], "parentComment": null } ], "parentComment": null } ] } ```