获取-评论列表
GET
https://hmajax.itheima.net/api/cmtlist获取-评论列表
请求参数
Query 参数
page
string
当前页码数
示例值:
1
示例代码
返回响应
成功(200)
HTTP 状态码: 200
内容格式: JSONapplication/json
数据结构
status
integer
业务状态码
200成功
msg
string
响应消息
data
array [object {4}]
响应数据
id
integer
评论id
username
string
评论者姓名
content
string
评论内容
time
string
评论时间
allPage
integer
总页码数
默认后台设置了10条1页
示例成功示例
{
"status": 200,
"msg": "获取评论列表成功",
"data": [
{
"id": 293,
"username": "老李",
"content": "大家好啊",
"time": "2023-02-23 14:00:44"
},
{
"id": 258,
"username": "是是是",
"content": "三生三世",
"time": "2021-09-24 15:07:16"
},
{
"id": 257,
"username": "是是是",
"content": "三生三世",
"time": "2021-09-24 15:07:15"
},
{
"id": 256,
"username": "是是是",
"content": "三生三世",
"time": "2021-09-24 15:07:15"
},
{
"id": 255,
"username": "是是是",
"content": "三生三世",
"time": "2021-09-24 15:07:15"
},
{
"id": 254,
"username": "是是是",
"content": "三生三世",
"time": "2021-09-24 15:06:53"
},
{
"id": 253,
"username": "各个风格",
"content": "腹股沟管",
"time": "2021-09-24 14:42:22"
},
{
"id": 252,
"username": "密码",
"content": "是华菱",
"time": "2021-09-24 12:11:59"
},
{
"id": 251,
"username": "密码",
"content": "是华菱",
"time": "2021-09-24 12:11:57"
},
{
"id": 250,
"username": "密码",
"content": "是华菱",
"time": "2021-09-24 12:11:56"
}
],
"allPage": 11
}
最后修改时间: 1 年前