diff --git a/src/main/java/com/depromeet/stonebed/domain/feed/dto/response/v1/FeedContentGetResponse.java b/src/main/java/com/depromeet/stonebed/domain/feed/dto/response/v1/FeedContentGetResponse.java index 00427e1..e572059 100644 --- a/src/main/java/com/depromeet/stonebed/domain/feed/dto/response/v1/FeedContentGetResponse.java +++ b/src/main/java/com/depromeet/stonebed/domain/feed/dto/response/v1/FeedContentGetResponse.java @@ -17,6 +17,7 @@ public record FeedContentGetResponse( String missionRecordImageUrl, @Schema(description = "미션 기록 생성일") LocalDate createdDate, @Schema(description = "부스트") Long totalBoostCount, + @Schema(description = "댓글 수", example = "12") Integer totalCommentCount, @Schema(description = "미션 기록 컨텐츠") String content) { public static FeedContentGetResponse from(FindFeedDto missionRecord) { return new FeedContentGetResponse( @@ -30,6 +31,7 @@ public static FeedContentGetResponse from(FindFeedDto missionRecord) { missionRecord.missionRecord().getImageUrl(), missionRecord.missionRecord().getCreatedAt().toLocalDate(), missionRecord.totalBoostCount(), + missionRecord.totalCommentCount(), missionRecord.missionRecord().getContent()); } }