http://localhost:3000/api/v1
参数 |
说明 |
是否必填 |
nickname |
回复评论人名字 |
是 |
email |
回复评论人邮箱 |
是 |
content |
回复评论内容 |
是 |
comment_id |
回复哪条评论的评论id |
是 |
{
"code": 200,
"msg": "success",
"errorCode": 0,
"data": {
"id": 1,
"nickname": "linhe123",
"content": "Hello Node.js",
"created_at": "2019-11-14T04:39:13.834Z",
"comment_id": "1"
}
}
{
"code": 200,
"msg": "success",
"errorCode": 0,
"data": {
"created_at": "2019-11-14",
"id": 1,
"nickname": "linhe123",
"comment_id": 1
}
}
参数 | 说明 | 是否必填
comment_id | 关联的评论ID | 是
{
"code": 200,
"msg": "success",
"errorCode": 0,
"data": {
"data": [
{
"id": 2,
"nickname": "linhe123",
"content": "Hello Node.js",
"comment_id": 1
},
{
"id": 1,
"nickname": "linhe123",
"content": "Hello Node.js",
"comment_id": 1
}
],
"meta": {
"current_page": 1,
"per_page": 10,
"count": 2,
"total": 2,
"total_pages": 1
}
}
}
参数 |
说明 |
是否必填 |
:id |
回复ID |
是 |
nickname |
回复评论人名字 |
否 |
email |
回复评论人邮箱 |
否 |
content |
回复评论内容 |
否 |
comment_id |
回复哪条评论的评论id |
否 |
{
"msg": "更新评论成功",
"code": 200,
"errorCode": 0
}
{
"msg": "删除回复评论成功",
"code": 200,
"errorCode": 0
}