Skip to content

Commit

Permalink
#7 fix: add story comment idx in comment res dto
Browse files Browse the repository at this point in the history
  • Loading branch information
5jisoo committed Aug 22, 2023
1 parent fe08809 commit 4eec3c5
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
@NoArgsConstructor
public class CommentResDto {

// 이후 디자인에 따라 변동 가능성 있음.
private Long commentIdx;
private String userImg;
private String userNickName;
private String content;
Expand All @@ -26,6 +26,7 @@ public CommentResDto(String userImg, String userName, String content, LocalDateT
}

public CommentResDto(Comment comment) {
this.commentIdx = comment.getCommentIdx();
this.userImg = comment.getUser().getUserImg();
this.userNickName = comment.getUser().getNickname();
this.content = comment.getContent();
Expand Down

0 comments on commit 4eec3c5

Please sign in to comment.