API Call Address
{域名地址}/api/comment/praise
Description:{域名地址}Need to replace it with your domain address, such ashttps://en.anqicms.com/api/comment/praise
Calling method
POST application/json
Request parameters
| Field name |
Type |
Required |
Description |
| id |
int |
Yes |
Comment ID |
Return parameters
| Field name |
Type |
Description |
| code |
int |
error code |
| msg |
string |
error reason description |
request data example
{
"id": 33
}
Return Data Example
{
"code": 0,
"data": {
"id": 33,
"created_time": 1662734920,
"updated_time": 1662735286,
"archive_id": 140,
"user_id": 0,
"user_name": "anqicms",
"ip": "127.0.0.1",
"vote_count": 2,
"content": "欢迎使用anqicms",
"parent_id": 0,
"to_uid": 0,
"status": 0,
"item_title": "欢迎使用AnqiCMS",
"parent": null,
"active": true
},
"msg": "点赞成功"
}
Error Code
| error code |
Description |
| 0 |
OK |
| -1 |
Error, the reason is indicated in the msg |
| 1001 |
Not logged in |
| 1002 |
Unauthorized |
| 200 |
API request OK |