diff --git a/src/main/java/HookKiller/server/board/repository/ArticleInterface.java b/src/main/java/HookKiller/server/board/repository/ArticleInterface.java index cb5a75c..ca45c0b 100644 --- a/src/main/java/HookKiller/server/board/repository/ArticleInterface.java +++ b/src/main/java/HookKiller/server/board/repository/ArticleInterface.java @@ -6,7 +6,5 @@ public interface ArticleInterface { String getNickName(); String getTitle(); - - String getContent(); int getLikeCount(); } diff --git a/src/main/java/HookKiller/server/board/repository/ArticleRepository.java b/src/main/java/HookKiller/server/board/repository/ArticleRepository.java index 00669d3..43cde28 100644 --- a/src/main/java/HookKiller/server/board/repository/ArticleRepository.java +++ b/src/main/java/HookKiller/server/board/repository/ArticleRepository.java @@ -31,7 +31,7 @@ Page
findAllByBoardAndArticleStatusAndCreateAtBetweenOrderByLikeCountDe ); @Query( - value = "select a.id, u.nick_name as nickName, ac.title,, a.like_count as likeCount " + + value = "select a.id, u.nick_name as nickName, ac.title, a.like_count as likeCount " + "from tbl_article a " + "join tbl_article_content ac " + "on a.id = ac.article_id " + diff --git a/src/main/java/HookKiller/server/search/dto/SimpleArticleVo.java b/src/main/java/HookKiller/server/search/dto/SimpleArticleVo.java index 5527412..00e64ac 100644 --- a/src/main/java/HookKiller/server/search/dto/SimpleArticleVo.java +++ b/src/main/java/HookKiller/server/search/dto/SimpleArticleVo.java @@ -20,8 +20,6 @@ public class SimpleArticleVo { private String title; - private String content; - private Integer likeCount; public static SimpleArticleVo from(ArticleInterface articleInterface) { @@ -29,7 +27,6 @@ public static SimpleArticleVo from(ArticleInterface articleInterface) { .articleId(articleInterface.getId()) .createdUserNickName(articleInterface.getNickName()) .title(articleInterface.getTitle()) - .content(articleInterface.getContent()) .likeCount(articleInterface.getLikeCount()) .build(); }