diff --git a/src/main/java/com/m9d/sroom/material/MaterialService.java b/src/main/java/com/m9d/sroom/material/MaterialService.java index c3e497d8..7cf4c51f 100644 --- a/src/main/java/com/m9d/sroom/material/MaterialService.java +++ b/src/main/java/com/m9d/sroom/material/MaterialService.java @@ -145,12 +145,15 @@ private void addMaterialAndQuizAnswer(CourseVideo courseVideo, List videoAnswers; + + public static Answer4PdfResponse getDefault(int videoIndex, String title) { + return new Answer4PdfResponse(videoIndex, title, new ArrayList<>()); + } } diff --git a/src/main/java/com/m9d/sroom/material/dto/response/VideoAnswer4PdfResponse.java b/src/main/java/com/m9d/sroom/material/dto/response/VideoAnswer4PdfResponse.java new file mode 100644 index 00000000..c55dde63 --- /dev/null +++ b/src/main/java/com/m9d/sroom/material/dto/response/VideoAnswer4PdfResponse.java @@ -0,0 +1,15 @@ +package com.m9d.sroom.material.dto.response; + +import lombok.AllArgsConstructor; +import lombok.Builder; +import lombok.Data; + +@Data +@Builder +@AllArgsConstructor +public class VideoAnswer4PdfResponse { + + private int quizIndex; + private String answer; + private String answerStr; +}