{域名地址}/api/comment/list
illustrate:{域名地址}
You need to replace it with your domain address, such as/api/comment/list
GET
Field name |
type |
Required |
illustrate |
id |
int |
no |
Document ID, specified document ID |
Order |
string |
no |
Comments sort, defaultid desc |
page |
int |
no |
Get the specified page content, default: 1 |
limit |
int |
no |
To display quantity, limit can specify the display quantity and paging according to the number. For example, limit="10" will only display 10 pieces. When limit is not a paging list, it supports offset mode, that is, separating mode. If you want to obtain 10 pieces of data from item 2, you can set it to limit="2,10". |
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 |
parameter |
value |
moduleId |
1 |
parentId |
0 |
{
"code": 0,
"data": [
{
"id": 1,
"created_time": 1624494644,
"updated_time": 1626076192,
"archive_id": 71,
"user_id": 0,
"user_name": "crown",
"ip": "127.0.0.1",
"vote_count": 0,
"content": "欢迎使用AnqiCMS",
"parent_id": 0,
"to_uid": 0,
"status": 1,
"item_title": "",
"parent": null,
"active": false
},
{
"id": 2,
"created_time": 1624070973,
"updated_time": 1635423845,
"archive_id": 71,
"user_id": 0,
"user_name": "Memory",
"ip": "127.0.0.1",
"vote_count": 225,
"content": "博客系统很棒",
"parent_id": 1,
"to_uid": 0,
"status": 1,
"item_title": "",
"parent": null,
"active": false
},
],
"msg": "",
"total": 4
}
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 |