refactor(消息模块): 重构消息服务及控制器功能
重构消息模块,包括以下主要变更: 1. 将MessageRepository从CrudRepository扩展改为JpaRepository 2. 新增消息查询方法,支持按文章ID、父消息ID和昵称查询 3. 完善消息服务层逻辑,增加日志记录和错误处理 4. 扩展消息控制器API,新增获取根消息、回复消息等端点 5. 添加消息数据初始化组件和检查器 6. 优化全局异常处理,增加请求路径日志 同时调整文章模块: 1. 移除按作者查询文章功能 2. 统一分类查询参数命名 3. 优化文章服务层代码结构 配置变更: 1. 添加缓存相关依赖 2. 调整数据库连接配置 3. 暂时禁用Hibernate二级缓存
This commit is contained in:
@@ -12,7 +12,6 @@ public interface IArticleService {
|
||||
ResponseMessage<Article> saveArticle(ArticleDto articleDto);
|
||||
ResponseMessage<Article> updateArticle(Integer id, ArticleDto articleDto);
|
||||
ResponseMessage<Article> deleteArticle(Integer id);
|
||||
ResponseMessage<List<Article>> getArticlesByAuthor(Integer authorId);
|
||||
ResponseMessage<List<Article>> getArticlesByCategory(Integer categoryId);
|
||||
ResponseMessage<List<Article>> getArticlesByCategory(Integer typeid);
|
||||
ResponseMessage<List<Article>> getMostViewedArticles();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user