diff --git a/src/main/kotlin/com/swm_standard/phote/dto/QuestionDtos.kt b/src/main/kotlin/com/swm_standard/phote/dto/QuestionDtos.kt index 4ef62b7..710fa59 100644 --- a/src/main/kotlin/com/swm_standard/phote/dto/QuestionDtos.kt +++ b/src/main/kotlin/com/swm_standard/phote/dto/QuestionDtos.kt @@ -82,6 +82,7 @@ data class SearchQuestionsResponse( } data class SearchQuestionsToAddResponse( + val questionId: UUID, val createdAt: LocalDateTime, val modifiedAt: LocalDateTime? = null, val statement: String, diff --git a/src/main/kotlin/com/swm_standard/phote/repository/QuestionCustomRepositoryImpl.kt b/src/main/kotlin/com/swm_standard/phote/repository/QuestionCustomRepositoryImpl.kt index 260a621..a61ba13 100644 --- a/src/main/kotlin/com/swm_standard/phote/repository/QuestionCustomRepositoryImpl.kt +++ b/src/main/kotlin/com/swm_standard/phote/repository/QuestionCustomRepositoryImpl.kt @@ -76,6 +76,7 @@ class QuestionCustomRepositoryImpl( return questions.map { question -> val options = question.options?.let { question.deserializeOptions() } SearchQuestionsToAddResponse( + questionId = question.id, createdAt = question.createdAt, modifiedAt = question.modifiedAt, statement = question.statement,