Skip to content

Commit

Permalink
[Feat]: profileImage 반환수정
Browse files Browse the repository at this point in the history
  • Loading branch information
Hyeri1ee committed Apr 3, 2024
1 parent 1958574 commit 478c957
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,14 @@

@Builder
public record CommentJoinResponse (
Long commentId, String nickname, Long spotId, String comment
Long commentId, String nickname, Long spotId, String comment,String profileImage
)
{
public static CommentJoinResponse of(Comment comment){
return CommentJoinResponse.builder()
.commentId(comment.getId())
.nickname(comment.getUser().getNickname())
.profileImage(comment.getUser().getProfileimage())
.spotId(comment.getSpot().getId())
.comment(comment.getComment())
.build();
Expand Down

0 comments on commit 478c957

Please sign in to comment.