update api chapterlesson
This commit is contained in:
parent
2fc0fb7a76
commit
5c2b5d55aa
11 changed files with 855 additions and 85 deletions
|
|
@ -325,7 +325,8 @@ export interface ReorderLessonsRequest {
|
|||
token: string;
|
||||
course_id: number;
|
||||
chapter_id: number;
|
||||
lesson_ids: number[]; // Ordered array of lesson IDs
|
||||
lesson_id: number;
|
||||
sort_order: number;
|
||||
}
|
||||
|
||||
// ============================================
|
||||
|
|
@ -521,7 +522,8 @@ export interface UpdateLessonBody {
|
|||
}
|
||||
|
||||
export interface ReorderLessonsBody {
|
||||
lesson_ids: number[];
|
||||
lesson_id: number;
|
||||
sort_order: number;
|
||||
}
|
||||
|
||||
export interface AddQuestionBody {
|
||||
|
|
|
|||
|
|
@ -141,15 +141,16 @@ export interface LessonContentData {
|
|||
is_sequential: boolean;
|
||||
prerequisite_lesson_ids: number[] | null;
|
||||
require_pass_quiz: boolean;
|
||||
video_url: string | null; // Presigned URL for video
|
||||
attachments: {
|
||||
id: number;
|
||||
file_name: string;
|
||||
file_path: string;
|
||||
file_size: number;
|
||||
mime_type: string;
|
||||
description: MultiLangText | null;
|
||||
presigned_url: string | null; // Presigned URL for attachment
|
||||
}[];
|
||||
quiz?: {
|
||||
|
||||
id: number;
|
||||
title: MultiLangText;
|
||||
description: MultiLangText | null;
|
||||
|
|
@ -163,6 +164,7 @@ export interface LessonContentData {
|
|||
next_lesson_id: number | null;
|
||||
}
|
||||
|
||||
|
||||
export interface GetLessonContentResponse {
|
||||
code: number;
|
||||
message: string;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue