Add exam question and choice view DTOs
This commit is contained in:
1 parent
123261aad3
commit
e8de49732b
2 files changed
+10
No files matched your search
@@ -0,0 +1,5 @@
|
||||
package com.example.questionbank.web.rest.dto;
|
||||
|
||||
import com.example.questionbank.domain.enumeration.OptionKey;
|
||||
|
||||
public record ChoiceView(OptionKey optionKey, String content, Integer displayOrder) {}
|
||||
@@ -0,0 +1,5 @@
|
||||
package com.example.questionbank.web.rest.dto;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
public record ExamQuestionView(Long questionId, String prompt, List<ChoiceView> choices) {}
|
||||
Reference in new issue
Block a user