Add exam grading result DTOs
This commit is contained in:
1 parent
ed109df111
commit
3c0455bff7
2 files changed
+19
No files matched your search
@@ -0,0 +1,13 @@
|
||||
package com.example.questionbank.web.rest.dto;
|
||||
|
||||
import com.example.questionbank.domain.enumeration.OptionKey;
|
||||
|
||||
public record AnswerResult(
|
||||
Long questionId,
|
||||
String questionText,
|
||||
OptionKey selectedOption,
|
||||
String selectedContent,
|
||||
boolean correct,
|
||||
int awardedPoints,
|
||||
String explanation
|
||||
) {}
|
||||
@@ -0,0 +1,6 @@
|
||||
package com.example.questionbank.web.rest.dto;
|
||||
|
||||
import java.time.Instant;
|
||||
import java.util.List;
|
||||
|
||||
public record ExamResult(Long attemptId, int totalScore, Instant submittedAt, List<AnswerResult> answers) {}
|
||||
Reference in new issue
Block a user