评论列表

:::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
响应示例:评论列表 :::

  1. {
  2. "success": true,
  3. "code": 200,
  4. "message": "成功",
  5. "data": {
  6. "current": 1,
  7. "total": 39,
  8. "pages": 4,
  9. "size": 10,
  10. "hasPrevious": false,
  11. "hasNext": true,
  12. "items": [
  13. {
  14. "id": "1571018101615665154",
  15. "gmtCreate": "2022-09-17 14:07:58",
  16. "gmtModified": "2022-09-17 14:07:58",
  17. "deleted": null,
  18. "courseId": "14",
  19. "teacherId": "1189426464967995393",
  20. "memberId": "1",
  21. "nickname": "张小",
  22. "avatar": "http://thirdwx.qlogo.cn/mmopen/vi_32/DYAIOgq83eoj0hHXhgJNOTSOFsS4uZs8x1ConecaVOB8eIl115xmJZcT4oCicvia7wMEufibKtTLqiaJeanU2Lpg3w/132",
  23. "content": "xuexue\n\n"
  24. }
  25. ]
  26. }
  27. }

发送评论

:::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发送成功 :::

  1. {
  2. "code": 200,
  3. "data": {},
  4. "message": "string",
  5. "success": false
  6. }