From 875286fac4d623353651eeed4afecbfcbf092415 Mon Sep 17 00:00:00 2001 From: hyeonda02 Date: Tue, 20 Aug 2024 16:04:01 +0900 Subject: [PATCH] =?UTF-8?q?Feat=20:=20=EC=A7=88=EB=AC=B8=20=EC=A1=B0?= =?UTF-8?q?=ED=9A=8C=20API=20createdAt=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/java/hsu/umc/server/converter/QuestionConverter.java | 1 + src/main/java/hsu/umc/server/web/dto/QuestionResponseDto.java | 1 + 2 files changed, 2 insertions(+) diff --git a/src/main/java/hsu/umc/server/converter/QuestionConverter.java b/src/main/java/hsu/umc/server/converter/QuestionConverter.java index dd74937..7d22c51 100644 --- a/src/main/java/hsu/umc/server/converter/QuestionConverter.java +++ b/src/main/java/hsu/umc/server/converter/QuestionConverter.java @@ -79,6 +79,7 @@ public static List tofindAllResponseDto( return questions.stream() .map(question -> QuestionResponseDto.findAllResponseDto.builder() .isAnswered(question.getIsAnswered()) + .createdAt(question.getCreatedAt()) .categoryId(question.getCategory().getValue()) .questionId(question.getQuestionId()) .title(question.getTitle()) diff --git a/src/main/java/hsu/umc/server/web/dto/QuestionResponseDto.java b/src/main/java/hsu/umc/server/web/dto/QuestionResponseDto.java index 512ee06..cc20340 100644 --- a/src/main/java/hsu/umc/server/web/dto/QuestionResponseDto.java +++ b/src/main/java/hsu/umc/server/web/dto/QuestionResponseDto.java @@ -72,6 +72,7 @@ public static class findAllResponseDto{ private Long questionId; private int categoryId; private boolean isAnswered;//답변 여부 + private LocalDateTime createdAt; }