add quastion to api

This commit is contained in:
JakkrapartXD 2026-01-22 17:16:52 +07:00
parent dcf0385a87
commit 76f8ab120a
2 changed files with 37 additions and 3 deletions

View file

@ -150,7 +150,6 @@ export interface LessonContentData {
presigned_url: string | null; // Presigned URL for attachment
}[];
quiz?: {
id: number;
title: MultiLangText;
description: MultiLangText | null;
@ -158,6 +157,18 @@ export interface LessonContentData {
time_limit: number | null;
shuffle_questions: boolean;
shuffle_choices: boolean;
questions: {
id: number;
question: MultiLangText;
question_type: 'MULTIPLE_CHOICE' | 'TRUE_FALSE' | 'SHORT_ANSWER';
score: number;
sort_order: number;
choices: {
id: number;
text: MultiLangText;
sort_order: number;
}[];
}[];
} | null;
// Navigation
prev_lesson_id: number | null;