feat: Implement comprehensive chapter and lesson management with new types, services, and Minio integration.
This commit is contained in:
parent
2a00f02465
commit
40b95ad902
1 changed files with 19 additions and 0 deletions
19
Backend/src/types/Courses.types.ts
Normal file
19
Backend/src/types/Courses.types.ts
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
import { Course, Prisma } from '@prisma/client';
|
||||
|
||||
// Use Prisma's CourseCreateInput for creating courses
|
||||
|
||||
// Response type uses Prisma's Course model
|
||||
|
||||
|
||||
export interface listCourseResponse {
|
||||
code: number;
|
||||
message: string;
|
||||
data: Course[];
|
||||
total: number | null;
|
||||
}
|
||||
|
||||
export interface getCourseResponse {
|
||||
code: number;
|
||||
message: string;
|
||||
data: Course | null;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue