Skip to content

Commit

Permalink
FEAT :: 댓글 유저도 닉네음으로 반환
Browse files Browse the repository at this point in the history
  • Loading branch information
Woongbin06 committed Nov 23, 2023
1 parent f236741 commit e3b29b5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ public class CommentResponse {
private String content;
private LocalDateTime createTime;
private Long userId;
private String userName;
private String userNickName;
private String userImg;
private Integer reCommentCount;

Expand All @@ -26,7 +26,7 @@ public static CommentResponse of(Comment comment, User user) {
.createTime(comment.getCreateTime())
.reCommentCount(comment.getReCommentCount())
.userId(user.getId())
.userName(user.getName())
.userNickName(user.getNickName())
.userImg(user.getImgUrl())
.build();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ public class ReCommentResponse {
private String content;
private LocalDateTime createTime;
private Long userId;
private String userName;
private String userNickName;
private String userImg;

public static ReCommentResponse of(ReComment reComment, User user) {
Expand All @@ -24,7 +24,7 @@ public static ReCommentResponse of(ReComment reComment, User user) {
.content(reComment.getContent())
.createTime(reComment.getCreateTime())
.userId(user.getId())
.userName(user.getName())
.userNickName(user.getNickName())
.userImg(user.getImgUrl())
.build();
}
Expand Down

0 comments on commit e3b29b5

Please sign in to comment.