Skip to content

Commit

Permalink
[Feat]: 최근 커뮤니티 게시글 조회 필드 추가 (#552)
Browse files Browse the repository at this point in the history
  • Loading branch information
dev-Crayon authored Nov 16, 2024
1 parent 9c7420f commit 1e16c9d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,6 @@ public record InternalCommunityPost(
String title,
String category,
String[] images,
Boolean isHotPost
Boolean isHotPost,
String content
) { }
Original file line number Diff line number Diff line change
Expand Up @@ -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());
}
}

0 comments on commit 1e16c9d

Please sign in to comment.