Skip to content

Commit

Permalink
Feat: readAllSharedExam 응답에 workbookId 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
adorableco committed Nov 4, 2024
1 parent 8215701 commit 77fc1de
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/main/kotlin/com/swm_standard/phote/dto/ExamDtos.kt
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
2 changes: 2 additions & 0 deletions src/main/kotlin/com/swm_standard/phote/service/ExamService.kt
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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,
Expand Down

0 comments on commit 77fc1de

Please sign in to comment.