feat(kv): 新增批量查询评论内容功能
- 新增 BatchFindCommentContentReqDTO 用于批量查询请求参数校验 - 新增 FindCommentContentReqDTO 和 FindCommentContentRspDTO 用于查询参数与响应封装 - 在 CommentContentController 中添加 /comment/content/batchFind 接口 - 实现 CommentContentRepository 的批量查询方法 - 在 CommentContentServiceImpl 中完成批量查询逻辑,包括参数解析与数据转换 - 更新 gateApi.http 添加批量查询接口测试用例
This commit is contained in:
@@ -328,4 +328,22 @@ Content-Type: application/json
|
||||
"content": "这是一条评论内容3"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
|
||||
### 批量查询评论内容
|
||||
POST http://localhost:8084/kv/comment/content/batchFind
|
||||
Content-Type: application/json
|
||||
|
||||
{
|
||||
"noteId": 1862481582414102549,
|
||||
"commentContentKeys": [
|
||||
{
|
||||
"yearMonth": "2025-11",
|
||||
"contentId": "a2537301-dc80-4fd6-ab2f-a9a908baebba"
|
||||
},
|
||||
{
|
||||
"yearMonth": "2025-11",
|
||||
"contentId": "a66b06ce-bf45-4a21-a5f2-31e5fb5fb5eb"
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user