feat(note): 新增笔记详情查询功能
- 新增笔记详情请求VO类 FindNoteDetailReqVO - 新增笔记详情响应VO类 FindNoteDetailRspVO - KV服务Feign接口新增查询笔记内容方法 - KeyValueRpcService新增findNoteContent方法实现 - NoteController新增笔记详情查询接口 - NoteService接口及实现类新增findNoteDetail方法 - 新增RedisKeyConstants常量类用于构建笔记详情缓存KEY - 新增ResponseCodeEnum枚举值用于笔记相关异常码 - 新增ThreadPoolConfig配置类定义异步线程池 - 新增UserRpcService用于调用用户服务查询用户信息 - 笔记详情接口支持多级缓存(本地缓存Caffeine+Redis) - 笔记详情查询增加可见性校验逻辑 - pom.xml新增用户服务api依赖和Caffeine依赖 - UserFeignApi新增根据ID查询用户信息接口
This commit is contained in:
@@ -4,6 +4,8 @@ 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.DeleteNoteContentReqDTO;
|
||||
import com.hanserwei.hannote.kv.dto.req.FindNoteContentReqDTO;
|
||||
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;
|
||||
@@ -17,7 +19,7 @@ public interface KeyValueFeignApi {
|
||||
Response<?> addNoteContent(@RequestBody AddNoteContentReqDTO addNoteContentReqDTO);
|
||||
|
||||
@PostMapping(value = PREFIX + "/note/content/find")
|
||||
Response<?> findNoteContent(@RequestBody AddNoteContentReqDTO addNoteContentReqDTO);
|
||||
Response<FindNoteContentRspDTO> findNoteContent(@RequestBody FindNoteContentReqDTO findNoteContentReqDTO);
|
||||
|
||||
@PostMapping(value = PREFIX + "/note/content/delete")
|
||||
Response<?> deleteNoteContent(@RequestBody DeleteNoteContentReqDTO deleteNoteContentReqDTO);
|
||||
|
||||
Reference in New Issue
Block a user