From 2a461a1e4f0c945e0d456c16c2703903741b7011 Mon Sep 17 00:00:00 2001 From: JakkrapartXD Date: Tue, 20 Jan 2026 14:18:58 +0700 Subject: [PATCH] feat: add `listCourseResponse` and `getCourseResponse` interfaces for course API responses. --- Backend/src/types/courses.types.ts | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 Backend/src/types/courses.types.ts diff --git a/Backend/src/types/courses.types.ts b/Backend/src/types/courses.types.ts new file mode 100644 index 00000000..b7696abd --- /dev/null +++ b/Backend/src/types/courses.types.ts @@ -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; +}