Skip to content

Commit

Permalink
Feat : 질문 조회 API createdAt 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
hyeonda02 committed Aug 20, 2024
1 parent 7523769 commit 875286f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ public static List<QuestionResponseDto.findAllResponseDto> 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())
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ public static class findAllResponseDto{
private Long questionId;
private int categoryId;
private boolean isAnswered;//답변 여부
private LocalDateTime createdAt;


}
Expand Down

0 comments on commit 875286f

Please sign in to comment.