We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 571ac5d + 53c3070 commit 7a89438Copy full SHA for 7a89438
back/src/main/java/com/back/domain/news/comment/dto/CommentResponse.java
@@ -10,13 +10,15 @@ public class CommentResponse {
10
private final Long id;
11
private final String content;
12
private final String author;
13
+ private final Long memberId;
14
private final LocalDateTime createdDate;
15
private final LocalDateTime modifiedDate;
16
17
public CommentResponse(NewsComment newsComment) {
18
this.id = newsComment.getId();
19
this.content = newsComment.getContent();
20
this.author = newsComment.getMember().getName();
21
+ this.memberId = newsComment.getMember().getId();
22
this.createdDate = newsComment.getCreateDate();
23
this.modifiedDate = newsComment.getModifyDate();
24
}
0 commit comments