评论列表
GET
/comment/list修改时间: 2 年前
责任人: 未设置
请求参数
Query 参数
nowPage
string
可选
示例值:
1
pageSize
string
可选
示例值:
5
示例代码
返回响应
成功(200)
HTTP 状态码: 200
内容格式: JSONapplication/json
数据结构
code
integer
必需
data
object
必需
nowPage
integer
必需
pageSize
integer
必需
hasMore
boolean
必需
total
integer
必需
rows
array [object {17}]
必需
message
string
必需
示例成功示例
{
"code": 200,
"data": {
"nowPage": 1,
"pageSize": 5,
"hasMore": true,
"count": 7,
"rows": [
{
"id": 1,
"article_id": -1,
"parent_comment_id": -1,
"reply_comment_id": -1,
"from_user_id": 1,
"to_user_id": -1,
"content": "hello world~",
"children_comment_total": 0,
"star_total": 0,
"ua": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/98.0.4758.80 Safari/537.36",
"ip": "119.130.206.171",
"ip_data": "{\"status\":\"1\",\"info\":\"OK\",\"infocode\":\"10000\",\"country\":\"中国\",\"province\":\"广东省\",\"city\":\"广州市\",\"district\":\"天河区\",\"isp\":\"电信\",\"location\":\"113.280637,23.125178\",\"ip\":\"119.130.206.171\"}",
"created_at": "2022-02-13 21:17:56",
"updated_at": "2022-02-13 21:17:56",
"deleted_at": null
},
{
"id": 2,
"article_id": -1,
"parent_comment_id": -1,
"reply_comment_id": -1,
"from_user_id": 2,
"to_user_id": -1,
"content": "测试时一下",
"children_comment_total": 0,
"star_total": 0,
"ua": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/98.0.4758.80 Safari/537.36 Edg/98.0.1108.43",
"ip": "180.167.148.2",
"ip_data": "{\"status\":\"1\",\"info\":\"OK\",\"infocode\":\"10000\",\"country\":\"中国\",\"province\":\"上海市\",\"city\":\"上海市\",\"district\":\"浦东新区\",\"isp\":\"电信\",\"location\":\"121.472644,31.231706\",\"ip\":\"180.167.148.2\"}",
"created_at": "2022-02-14 13:42:52",
"updated_at": "2022-02-14 13:42:52",
"deleted_at": null
},
{
"id": 3,
"article_id": -1,
"parent_comment_id": -1,
"reply_comment_id": -1,
"from_user_id": 1,
"to_user_id": -1,
"content": "> hello world !",
"children_comment_total": 0,
"star_total": 0,
"ua": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/99.0.4844.51 Safari/537.36",
"ip": "120.230.131.44",
"ip_data": "{\"status\":\"1\",\"info\":\"OK\",\"infocode\":\"10000\",\"country\":\"中国\",\"province\":\"广东省\",\"city\":\"广州市\",\"district\":\"天河区\",\"isp\":\"移动\",\"location\":\"113.280637,23.125178\",\"ip\":\"120.230.131.44\"}",
"created_at": "2022-03-10 02:40:15",
"updated_at": "2022-03-10 02:40:15",
"deleted_at": null
},
{
"id": 4,
"article_id": -1,
"parent_comment_id": -1,
"reply_comment_id": -1,
"from_user_id": 4,
"to_user_id": -1,
"content": "友链接请求添加!邮箱liuchunsong@vip.qq.com",
"children_comment_total": 1,
"star_total": 0,
"ua": "Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/86.0.4240.198 Safari/537.36",
"ip": "222.83.153.187",
"ip_data": "{\"status\":\"1\",\"info\":\"OK\",\"infocode\":\"10000\",\"country\":\"中国\",\"province\":\"广西壮族自治区\",\"city\":\"玉林市\",\"district\":\"博白县\",\"isp\":\"电信\",\"location\":\"110.154393,22.63136\",\"ip\":\"222.83.153.187\"}",
"created_at": "2022-03-10 18:46:01",
"updated_at": "2022-03-10 18:46:01",
"deleted_at": null
},
{
"id": 5,
"article_id": -1,
"parent_comment_id": 4,
"reply_comment_id": 4,
"from_user_id": 1,
"to_user_id": 4,
"content": "咋加呢???",
"children_comment_total": 0,
"star_total": 0,
"ua": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/99.0.4844.51 Safari/537.36",
"ip": "120.230.131.44",
"ip_data": "{\"status\":\"1\",\"info\":\"OK\",\"infocode\":\"10000\",\"country\":\"中国\",\"province\":\"广东省\",\"city\":\"广州市\",\"district\":\"天河区\",\"isp\":\"移动\",\"location\":\"113.280637,23.125178\",\"ip\":\"120.230.131.44\"}",
"created_at": "2022-03-10 19:47:54",
"updated_at": "2022-03-10 19:47:54",
"deleted_at": null
}
]
},
"message": "获取成功!"
}
修改于 2 年前