Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,15 @@ public class CommentResponse {
private final Long id;
private final String content;
private final String author;
private final Long memberId;
private final LocalDateTime createdDate;
private final LocalDateTime modifiedDate;

public CommentResponse(NewsComment newsComment) {
this.id = newsComment.getId();
this.content = newsComment.getContent();
this.author = newsComment.getMember().getName();
this.memberId = newsComment.getMember().getId();
this.createdDate = newsComment.getCreateDate();
this.modifiedDate = newsComment.getModifyDate();
}
Expand Down