获取某个作品的评论列表
开发中GET
/api/comment/list在作品详情页面,获取某个作品的评论列表
请求参数
Query 参数
id
string
作品id
示例代码
返回响应
成功(200)
HTTP 状态码: 200
内容格式: JSONapplication/json
数据结构
code
integer
状态码
message
string
状态信息
data
$ref(#/definitions/91616079)[]
返回数据
#/definitions/91616079
可选
示例
{
"code": 200,
"message": "aute laborum dolore Lorem",
"data": [
{
"id": "77",
"content": "consectetur quis sint ea",
"createdAt": "1980-01-27 20:05:22",
"authorInfo": {
"id": "34",
"username": "钱艳",
"avatar": "http://dummyimage.com/100x100"
},
"level": 0,
"replyTo": {
"id": "84",
"username": "吕伟"
},
"childComments": [
{
"id": "61",
"content": "adipisicing ad non",
"createdAt": "2003-10-23 03:37:57",
"authorInfo": {
"id": "60",
"username": "锺明",
"avatar": "http://dummyimage.com/100x100"
},
"level": 0,
"replyTo": {
"id": "37",
"username": "戴平"
},
"childComments": []
},
{
"id": "52",
"content": "ullamco ex exercitation",
"createdAt": "2002-04-23 05:26:05",
"authorInfo": {
"id": "69",
"username": "郝敏",
"avatar": "http://dummyimage.com/100x100"
},
"level": 0,
"replyTo": {
"id": "54",
"username": "侯娜"
},
"childComments": []
},
{
"id": "6",
"content": "enim dolor officia nisi",
"createdAt": "1984-11-17 11:42:14",
"authorInfo": {
"id": "52",
"username": "朱娟",
"avatar": "http://dummyimage.com/100x100"
},
"level": 0,
"replyTo": {
"id": "34",
"username": "龚超"
},
"childComments": []
}
]
}
]
}
修改于 6 个月前