Skip to content

Commit

Permalink
Merge pull request #53 from 9oormthon-univ/dev
Browse files Browse the repository at this point in the history
♻️Refactor: 사용boardInfoResDto 수정
  • Loading branch information
eunxeum authored Nov 23, 2024
2 parents 832c6f5 + 553d43b commit f8fe506
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ public record BoardInfoResDto(
String title,
String content,
List<String> imageUrl,
String serviceUrl,
String PTUrl,
int likeCount,
boolean isLike,
int InvestmentCount,
Expand All @@ -38,6 +40,8 @@ public static BoardInfoResDto of(Member member, Board board, boolean isLike) {
.title(board.getTitle())
.content(board.getContent())
.imageUrl(imageUrl)
.serviceUrl(builder().serviceUrl)
.PTUrl(builder().PTUrl)
.likeCount(board.getLikeCount())
.commentCount(board.getComments().size())
.date(board.getBoardDate())
Expand Down

0 comments on commit f8fe506

Please sign in to comment.