简要描述:
| 版本号 | 制定人 | 制定日期 | 修订日期 |
|---|---|---|---|
| 1.0.0 | kevin | 2024-07-19 |
请求URL:
请求方式:
- GET
请求头:
| 参数名 | 是否必须 | 类型 | 说明 |
|---|---|---|---|
| token | 是 | string | token参数 |
请求参数:
| 参数名 | 是否必须 | 类型 | 说明 |
|---|---|---|---|
| id | 是 | int | 动态id |
| page | 是 | int | 页码 |
| pagesize | 是 | int | 条数 |
返回示例:
正确时返回:
{
"status": 200,
"msg": "获取成功",
"data": {
"list": [
{
"comment_id": 24,
"dynamics_id": 4,
"comment_pid": 0,
"content": "22222222222",
"created_at": "2024-07-19 16:33:48",
"send_avatar": "https://wzbup.com/user/avatar/2023/05/31/6476e9a498dbc.png",
"send_nickname": "A",
"reply_avatar": null,
"reply_nickname": null
},
{
"comment_id": 23,
"dynamics_id": 4,
"comment_pid": 20,
"content": "回复222222222222222",
"created_at": "2024-07-19 16:33:23",
"send_uid": 8,
"send_avatar": "https://wzbup.com/user/avatar/2023/05/31/6476e9a498dbc.png",
"send_nickname": "A",
"reply_avatar": "https://wzbup.com/user/avatar/2023/05/31/6476e9a498dbc.png",
"reply_nickname": "A"
}
],
"page": 1,
"pagesize": "2",
"total": 8
}
}
错误时返回:
{
"status": 0,
"msg": "参数错误"
}返回参数说明:
| 参数名 | 类型 | 说明 |
|---|---|---|
| comment_id | int | 评论id |
| dynamics_id | int | 动态id |
| comment_pid | int | 回复评论id,等于0是评论,大于0时是回复评论 |
| content | string | 内容 |
| created_at | string | 时间 |
| send_uid | string | 发送者uid |
| send_avatar | string | 发送者头像 |
| send_nickname | string | 发送者昵称 |
| reply_avatar | string | 被回复者头像 |
| reply_nickname | string | 被回复者昵称 |
备注:
- 无
作者:admin 创建时间:2024-07-19 16:36
更新时间:2025-04-10 15:43
更新时间:2025-04-10 15:43