Skip to content

Commit

Permalink
Merge pull request #77 from Team-Shaka/feature/76
Browse files Browse the repository at this point in the history
[FEAT]/#76-게시글 조회 시 commentCount 필드 추가로 반환
  • Loading branch information
koojun99 authored Mar 17, 2024
2 parents 9becd66 + 62fbd54 commit a51feeb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ public PostResponseDTO.getPost toGetPost(Post post, int branchDegree, List<React
.content(post.getContent())
.postImageUrls(imageUrls)
.reactions(reactions)
.commentCount(post.getCommentCount())
.createdAt(post.getCreatedAt())
.build();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ public static class getPost {
private String content;
private List<String> postImageUrls;
private List<ReactionResponseDTO.getReaction> reactions;
private Integer commentCount;
private LocalDateTime createdAt;

}
Expand Down

0 comments on commit a51feeb

Please sign in to comment.