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 3aefe0d commit f236741
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ public class PostResponse {
private String postImg;
private LocalDateTime createTime;
private Long userId;
private String userName;
private String userNickName;
private String userImg;

public static PostResponse of(Post post, User user) {
Expand All @@ -32,7 +32,7 @@ public static PostResponse of(Post post, User user) {
.createTime(post.getCreateTime())
.viewCount(post.getViewCount())
.userId(user.getId())
.userName(user.getName())
.userNickName(user.getNickName())
.userImg(user.getImgUrl())
.commentCount(post.getCommentCount())
.build();
Expand Down

0 comments on commit f236741

Please sign in to comment.