diff --git a/src/main/java/org/sopt/makers/internal/dto/community/InternalCommunityPost.java b/src/main/java/org/sopt/makers/internal/dto/community/InternalCommunityPost.java index de1c785d..dcf17df6 100644 --- a/src/main/java/org/sopt/makers/internal/dto/community/InternalCommunityPost.java +++ b/src/main/java/org/sopt/makers/internal/dto/community/InternalCommunityPost.java @@ -5,5 +5,6 @@ public record InternalCommunityPost( String title, String category, String[] images, - Boolean isHotPost + Boolean isHotPost, + String content ) { } diff --git a/src/main/java/org/sopt/makers/internal/mapper/CommunityResponseMapper.java b/src/main/java/org/sopt/makers/internal/mapper/CommunityResponseMapper.java index 2a868097..881b0d76 100644 --- a/src/main/java/org/sopt/makers/internal/mapper/CommunityResponseMapper.java +++ b/src/main/java/org/sopt/makers/internal/mapper/CommunityResponseMapper.java @@ -92,6 +92,6 @@ public AnonymousProfileVo toAnonymousCommentProfileVo(AnonymousCommentProfile pr } public InternalCommunityPost toInternalCommunityPostResponse(PostCategoryDao dao) { - return new InternalCommunityPost(dao.post().getId(), dao.post().getTitle(), dao.category().getName(), dao.post().getImages(), dao.post().getIsHot()); + return new InternalCommunityPost(dao.post().getId(), dao.post().getTitle(), dao.category().getName(), dao.post().getImages(), dao.post().getIsHot(), dao.post().getContent()); } }