评论列表
:::tips
- URL:
[api/edu/comment/{page}/{limit}](http://139.198.34.216:8103/swagger-ui.html#!/comment45api45controller/indexUsingGET_1) - Method:GET
- 需要登录:否
- 需要鉴权:否
:::
请求参数
| Parameter | Description | Data-type | Parameter-type | Default-value | | —- | —- | —- | —- | —- | | page | 当前页码 | long | path | (required)1 | | limit | 每页记录数 | long | path | (required)10 |
请求示例
成功响应
:::tips
条件:请求参数合法
状态码:200 OK
响应示例:评论列表
:::
{"success": true,"code": 200,"message": "成功","data": {"current": 1,"total": 39,"pages": 4,"size": 10,"hasPrevious": false,"hasNext": true,"items": [{"id": "1571018101615665154","gmtCreate": "2022-09-17 14:07:58","gmtModified": "2022-09-17 14:07:58","deleted": null,"courseId": "14","teacherId": "1189426464967995393","memberId": "1","nickname": "张小","avatar": "http://thirdwx.qlogo.cn/mmopen/vi_32/DYAIOgq83eoj0hHXhgJNOTSOFsS4uZs8x1ConecaVOB8eIl115xmJZcT4oCicvia7wMEufibKtTLqiaJeanU2Lpg3w/132","content": "xuexue\n\n"}]}}
发送评论
:::tips
- URL:
[api/edu/comment/auth/save](http://139.198.34.216:8103/swagger-ui.html#!/comment45api45controller/saveUsingPOST_3) - Method:POST
- 需要登录:是
- 需要鉴权:是
:::
请求参数
| Parameter | Description | Data-type | Parameter-type | Default-value | | —- | —- | —- | —- | —- | | token | 令牌 | string | header | (required) | | content | 评论内容 | long | query | (required) | | courseId | 课程id | long | query | (required) | | teacherId | 讲师id | long | query | (required) |
请求示例
成功响应
:::tips
条件:请求参数合法,并且用户身份校验通过。
状态码:200 OK
响应示例:200发送成功
:::
{"code": 200,"data": {},"message": "string","success": false}
