feat(comment): 实现二级评论分页查询功能
- 新增子评论分页查询接口 /comment/child/list- 添加查询一级评论下子评论总数的 Mapper 方法 - 实现二级评论分页数据查询的 Mapper 方法 - 补充对应的 XML 查询语句,支持按 parent_id 查询子评论 - 创建 FindChildCommentItemRspVO 和 FindChildCommentPageListReqVO VO 类 - 在 CommentServiceImpl 中实现子评论分页查询业务逻辑 - 支持批量查询子评论内容及用户信息并组装返回数据 - 添加 HTTP 客户端测试用例用于验证接口功能
This commit is contained in:
@@ -356,3 +356,13 @@ Content-Type: application/json
|
||||
"noteId": 1862481582414102549,
|
||||
"pageNo": 1
|
||||
}
|
||||
|
||||
### 分页查询子评论
|
||||
POST http://localhost:8000/comment/comment/child/list
|
||||
Content-Type: application/json
|
||||
Authorization: Bearer {{token}}
|
||||
|
||||
{
|
||||
"parentCommentId": 4002,
|
||||
"pageNo": 1
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user