feat: add listCourseResponse and getCourseResponse interfaces for course API responses.
This commit is contained in:
parent
fbe0c9311f
commit
2a461a1e4f
1 changed files with 14 additions and 0 deletions
14
Backend/src/types/courses.types.ts
Normal file
14
Backend/src/types/courses.types.ts
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
import { Course } from '@prisma/client';
|
||||
|
||||
export interface listCourseResponse {
|
||||
code: number;
|
||||
message: string;
|
||||
data: Course[];
|
||||
total: number;
|
||||
}
|
||||
|
||||
export interface getCourseResponse {
|
||||
code: number;
|
||||
message: string;
|
||||
data: Course | null;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue