CommentDto
类{
"commentContent": "这是一条对文章的评论",
"commentType": 0,
"articleId": "1703376641350471682",
"parentId": "1703376641350471682",
"targetId": "1703376641350471682"
}
curl --location --request POST '/comment' \
--header 'Token;' \
--header 'Content-Type: application/json' \
--data-raw '{
"commentContent": "这是一条对文章的评论",
"commentType": 0,
"articleId": "1703376641350471682",
"parentId": "1703376641350471682",
"targetId": "1703376641350471682"
}'
{
"code": 200,
"msg": "success",
"data": {
"id": "1709492671652458497",
"parentId": "1709491935489191937",
"uid": "1703380258652459010",
"content": "这是一条对评论的评论",
"likes": 0,
"createTime": "2023-10-04 16:56:28",
"user": {
"username": "木槿",
"avatar": "https://blog-picture-upload-bucket.oss-cn-beijing.aliyuncs.com/article_picture/gVS74ZWMFQpwJgp.thumb.1000_0.jpg"
},
"reply": null
}
}