feat(comment): 实现评论分页查询功能
- 新增评论分页查询接口与实现逻辑 - 支持查询一级评论及其最早回复的二级评论 - 支持从KV服务批量获取评论内容 - 支持从用户服务批量获取用户信息并组装- 新增评论热度字段用于排序 - 修改MyBatis代码生成配置至comment模块 - 调整评论表结构,优化字段定义 - 完善相关DTO、VO及Mapper文件 - 添加HTTP客户端测试用例
This commit is contained in:
@@ -2,15 +2,15 @@ package com.hanserwei.hannote.kv.api;
|
||||
|
||||
import com.hanserwei.framework.common.response.Response;
|
||||
import com.hanserwei.hannote.kv.constant.ApiConstants;
|
||||
import com.hanserwei.hannote.kv.dto.req.AddNoteContentReqDTO;
|
||||
import com.hanserwei.hannote.kv.dto.req.BatchAddCommentContentReqDTO;
|
||||
import com.hanserwei.hannote.kv.dto.req.DeleteNoteContentReqDTO;
|
||||
import com.hanserwei.hannote.kv.dto.req.FindNoteContentReqDTO;
|
||||
import com.hanserwei.hannote.kv.dto.req.*;
|
||||
import com.hanserwei.hannote.kv.dto.resp.FindCommentContentRspDTO;
|
||||
import com.hanserwei.hannote.kv.dto.resp.FindNoteContentRspDTO;
|
||||
import org.springframework.cloud.openfeign.FeignClient;
|
||||
import org.springframework.web.bind.annotation.PostMapping;
|
||||
import org.springframework.web.bind.annotation.RequestBody;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
@FeignClient(name = ApiConstants.SERVICE_NAME)
|
||||
public interface KeyValueFeignApi {
|
||||
|
||||
@@ -28,4 +28,7 @@ public interface KeyValueFeignApi {
|
||||
@PostMapping(value = PREFIX + "/comment/content/batchAdd")
|
||||
Response<?> batchAddCommentContent(@RequestBody BatchAddCommentContentReqDTO batchAddCommentContentReqDTO);
|
||||
|
||||
@PostMapping(value = PREFIX + "/comment/content/batchFind")
|
||||
Response<List<FindCommentContentRspDTO>> batchFindCommentContent(@RequestBody BatchFindCommentContentReqDTO batchFindCommentContentReqDTO);
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user