Skip to content

Commit

Permalink
✨ feat: 댓글, 차단 도메인 이미지 추가 기능 개발 (#61)
Browse files Browse the repository at this point in the history
  • Loading branch information
xxoznge authored Jun 7, 2024
1 parent fe93ad5 commit 9eae6e9
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@ public record BlacklistGetResponse(
Long id,
String username,
String target,
String targetNickname
String targetNickname,
String targetImageUrl
) {

public static BlacklistGetResponse from(Blacklist blacklist) {
Expand All @@ -18,6 +19,7 @@ public static BlacklistGetResponse from(Blacklist blacklist) {
.username(blacklist.getUser().getUsername())
.target(blacklist.getTarget().getUsername())
.targetNickname(blacklist.getTarget().getNickname())
.targetImageUrl(blacklist.getTarget().getImageUrl())
.build();
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@ public record CommentGetResponse(
Long id,
String nickname,
String cardWriter,
FortuneType type
FortuneType type,
String imageUrl
) {

public static CommentGetResponse from(Comment comment) {
Expand All @@ -19,6 +20,7 @@ public static CommentGetResponse from(Comment comment) {
.nickname(comment.getUser().getNickname())
.cardWriter(comment.getCard().getUser().getNickname())
.type(comment.getCard().getType())
.imageUrl(comment.getUser().getImageUrl())
.build();
}
}

0 comments on commit 9eae6e9

Please sign in to comment.