Skip to content

Commit

Permalink
Merge pull request #89 from dongkyun0713/dongkyun
Browse files Browse the repository at this point in the history
feat() : μ§ˆλ¬Έκ²Œμ‹œνŒ μƒμ„±λ‚ μ§œ, μˆ˜μ •λ‚ μ§œ μΆ”κ°€
  • Loading branch information
dongkyun0713 authored Feb 25, 2024
2 parents a33c394 + adfdd99 commit d84e447
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,12 @@ public static class Response {
@Schema(description = "쑰회수")
private Integer viewCount;

@Schema(description = "생성 λ‚ μ§œ")
private LocalDateTime createDate;

@Schema(description = "μˆ˜μ • λ‚ μ§œ")
private LocalDateTime updateDate;

public Response(Question question) {
this.id = question.getId();
this.authorId = question.getAuthor().getId();
Expand All @@ -98,6 +104,8 @@ public Response(Question question) {
this.answerList = question.getAnswers().stream().map(AnswerDTO.Response::new).toList();
this.isAccepted = question.getAcceptedAnswer() != null;
this.viewCount = question.getViewCount();
this.createDate = question.getCreateDate();
this.updateDate = question.getUpdateDate();
}
}

Expand Down

0 comments on commit d84e447

Please sign in to comment.