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:
@@ -3,9 +3,11 @@ package com.hanserwei.hannote.user.api;
|
||||
import com.hanserwei.framework.common.response.Response;
|
||||
import com.hanserwei.hannote.user.constant.ApiConstants;
|
||||
import com.hanserwei.hannote.user.dto.req.FindUserByEmailReqDTO;
|
||||
import com.hanserwei.hannote.user.dto.req.FindUserByIdReqDTO;
|
||||
import com.hanserwei.hannote.user.dto.req.RegisterUserReqDTO;
|
||||
import com.hanserwei.hannote.user.dto.req.UpdateUserPasswordReqDTO;
|
||||
import com.hanserwei.hannote.user.dto.resp.FindUserByEmailRspDTO;
|
||||
import com.hanserwei.hannote.user.dto.resp.FindUserByIdRspDTO;
|
||||
import org.springframework.cloud.openfeign.FeignClient;
|
||||
import org.springframework.web.bind.annotation.PostMapping;
|
||||
import org.springframework.web.bind.annotation.RequestBody;
|
||||
@@ -42,4 +44,12 @@ public interface UserFeignApi {
|
||||
@PostMapping(value = PREFIX + "/password/update")
|
||||
Response<?> updatePassword(@RequestBody UpdateUserPasswordReqDTO updateUserPasswordReqDTO);
|
||||
|
||||
/**
|
||||
* 根据用户 ID 查询用户信息
|
||||
*
|
||||
* @param findUserByIdReqDTO 查询信息请求
|
||||
* @return 响应
|
||||
*/
|
||||
@PostMapping(value = PREFIX + "/findById")
|
||||
Response<FindUserByIdRspDTO> findById(@RequestBody FindUserByIdReqDTO findUserByIdReqDTO);
|
||||
}
|
||||
Reference in New Issue
Block a user