{域名地址}/api/comment/publish
illustrate:{域名地址}
You need to replace it with your domain address, such as/api/comment/publish
POST application/json
Field name |
type |
Required |
illustrate |
archive_id |
int |
yes |
Comment document id |
user_name |
string |
yes |
username |
content |
string |
yes |
Comment content |
parent_id |
int |
no |
Quote Comment ID |
Field name |
type |
illustrate |
code |
int |
Error code |
msg |
string |
Error Cause Description |
data |
object |
Results content |
Field name |
type |
illustrate |
id |
int |
Comment ID |
parent_id |
int |
The comment's superior ID |
archive_id |
int |
Document ID |
user_name |
string |
Comment username |
user_id |
int |
Comment User ID |
ip |
string |
Commenter IP |
vote_count |
int |
Number of likes |
content |
string |
Category content details |
created_time |
int |
Post timestamp |
updated_time |
int |
Update time stamp |
status |
int |
Review status, 1 has been reviewed, 0 is under review |
{
"user_name": "anqicms",
"content": "欢迎使用anqicms",
"archive_id":140
}
{
"code": 0,
"data": {
"id": 33,
"created_time": 1662734920,
"updated_time": 1662734920,
"archive_id": 140,
"user_id": 0,
"user_name": "anqicms",
"ip": "127.0.0.1",
"vote_count": 0,
"content": "欢迎使用anqicms",
"parent_id": 0,
"status": 0,
},
"msg": "发布成功"
}
Error code |
illustrate |
0 |
OK |
-1 |
Error, the cause of the error is pointed out in msg |
1001 |
Not logged in |
1002 |
Unauthorized |
200 |
API request OK |