feat: 实现消息、文章和分类的树形结构展示功能
refactor: 重构消息、文章和疯言疯语的分页查询接口 refactor(controller): 调整疯言疯语控制器的更新接口参数 refactor(service): 优化消息服务的分页查询逻辑 fix: 修复JWT认证过滤器中的令牌验证问题 fix(properties): 修正生产环境数据库配置 style: 清理无用代码并删除HelpController
This commit is contained in:
@@ -4,6 +4,8 @@ import com.qf.myafterprojecy.exceptopn.ResponseMessage;
|
||||
import com.qf.myafterprojecy.pojo.Article;
|
||||
import com.qf.myafterprojecy.pojo.dto.ArriclePageDto;
|
||||
import com.qf.myafterprojecy.pojo.dto.ArticleDto;
|
||||
import com.qf.myafterprojecy.pojo.dto.ArticleTreeDto;
|
||||
|
||||
import org.springframework.data.domain.Page;
|
||||
|
||||
import java.util.List;
|
||||
@@ -19,13 +21,13 @@ public interface IArticleService {
|
||||
* @param title 文章标题的一部分,用于模糊查询
|
||||
* @return 返回符合查询条件的文章列表
|
||||
*/
|
||||
ResponseMessage<List<Article>> getArticlesByTitle(String title);
|
||||
ResponseMessage<List<ArticleTreeDto>> getArticlesByTitle(String title);
|
||||
/**
|
||||
* 根据状态获取文章列表
|
||||
* @param status 文章状态(0:未发表 1:已发表 2:已删除)
|
||||
* @return 返回包含文章列表的ResponseMessage对象
|
||||
*/
|
||||
ResponseMessage<List<Article>> getArticlesByStatus(Integer status);
|
||||
ResponseMessage<List<ArticleTreeDto>> getArticlesByStatus(Integer status);
|
||||
/**
|
||||
* 获取文章数量
|
||||
* @param status 文章状态(0:未发表 1:已发表 2:已删除)
|
||||
@@ -104,5 +106,5 @@ public interface IArticleService {
|
||||
* @param size 每页大小
|
||||
* @return 返回包含分页文章列表的ResponseMessage对象
|
||||
*/
|
||||
ResponseMessage<Page<Article>> getArticlesByStatusWithPagination(ArriclePageDto arriclePageDto);
|
||||
ResponseMessage<List<ArticleTreeDto>> getArticlesByStatusWithPagination(ArriclePageDto arriclePageDto);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user