feat: add API endpoint and service logic for reordering quiz questions.
This commit is contained in:
parent
44c61c8fb2
commit
84e4d478c7
3 changed files with 125 additions and 0 deletions
|
|
@ -477,6 +477,20 @@ export interface DeleteQuestionInput {
|
|||
question_id: number;
|
||||
}
|
||||
|
||||
export interface ReorderQuestionInput {
|
||||
token: string;
|
||||
course_id: number;
|
||||
lesson_id: number;
|
||||
question_id: number;
|
||||
sort_order: number;
|
||||
}
|
||||
|
||||
export interface ReorderQuestionResponse {
|
||||
code: number;
|
||||
message: string;
|
||||
data: QuizQuestionData[];
|
||||
}
|
||||
|
||||
/**
|
||||
* Response for deleting a question
|
||||
*/
|
||||
|
|
@ -526,6 +540,10 @@ export interface ReorderLessonsBody {
|
|||
sort_order: number;
|
||||
}
|
||||
|
||||
export interface ReorderQuestionBody {
|
||||
sort_order: number;
|
||||
}
|
||||
|
||||
export interface AddQuestionBody {
|
||||
question: MultiLanguageText;
|
||||
explanation?: MultiLanguageText;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue