feat: add API endpoint and service logic for reordering quiz questions.

This commit is contained in:
JakkrapartXD 2026-01-26 12:00:59 +07:00
parent 44c61c8fb2
commit 84e4d478c7
3 changed files with 125 additions and 0 deletions

View file

@ -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;