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; }