diff --git a/src/main/kotlin/com/swm_standard/phote/dto/ExamDtos.kt b/src/main/kotlin/com/swm_standard/phote/dto/ExamDtos.kt index 482131e..055cdf7 100644 --- a/src/main/kotlin/com/swm_standard/phote/dto/ExamDtos.kt +++ b/src/main/kotlin/com/swm_standard/phote/dto/ExamDtos.kt @@ -126,6 +126,7 @@ data class CreateSharedExamResponse( data class ReadAllSharedExamsResponse( val examId: UUID, + val workbookId: UUID, val creator: String, val title: String, val startTime: LocalDateTime, diff --git a/src/main/kotlin/com/swm_standard/phote/service/ExamService.kt b/src/main/kotlin/com/swm_standard/phote/service/ExamService.kt index bd99907..f2fba08 100644 --- a/src/main/kotlin/com/swm_standard/phote/service/ExamService.kt +++ b/src/main/kotlin/com/swm_standard/phote/service/ExamService.kt @@ -342,6 +342,7 @@ class ExamService( ).map { exam -> ReadAllSharedExamsResponse( examId = exam.id!!, + workbookId = exam.workbook.id, creator = exam.member.name, title = exam.title, startTime = exam.startTime, @@ -361,6 +362,7 @@ class ExamService( val sharedExam = examResult.exam as SharedExam ReadAllSharedExamsResponse( examId = examResult.exam.id!!, + workbookId = sharedExam.workbook.id, creator = sharedExam.member.name, title = sharedExam.title, startTime = sharedExam.startTime,