- 视频
- 用户
- 登录/注册
- 找回密码
查询根评论下的子评论
已测完
GET
/luckyjourney/index/by/rootComment
请求参数
Query 参数
current
integer
可选
示例值:
1
limit
integer
可选
示例值:
5
rootId
integer
可选
示例值:
326
Header 参数
token
string
token
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request GET 'http://127.0.0.1:8882/luckyjourney/index/by/rootComment?current=1&limit=5&rootId=326' \
--header 'token;'
返回响应
🟢200成功
application/json
Body
object {0}
示例
{
"type": null,
"code": 0,
"state": true,
"message": "成功",
"data": {
"records": [
{
"id": 331,
"isDeleted": false,
"gmtCreated": "2024-06-11 13:42:07",
"gmtUpdated": "2024-06-11 13:42:07",
"parentId": 326,
"rootId": 326,
"content": "二级评论嘻嘻嘻123",
"fromUserId": 1,
"toUserId": 1,
"videoId": 4818,
"videoUserId": 1,
"likeCount": 0,
"childCount": null,
"comments": null,
"user": {
"id": 1,
"isDeleted": null,
"gmtCreated": null,
"gmtUpdated": null,
"nickName": "xhy",
"email": null,
"password": null,
"description": null,
"sex": null,
"defaultFavoritesId": null,
"avatar": 0,
"each": null,
"roleName": null
}
}
],
"total": 1,
"size": 5,
"current": 1,
"pages": 1
},
"count": 0
}
修改于 2024-06-14 15:29:44