feat: Introduce API endpoints and refactor service methods for adding, removing, listing, and setting primary course instructors.

This commit is contained in:
JakkrapartXD 2026-01-16 17:52:36 +07:00
parent 2e536ad193
commit b5ca6b2e0f
3 changed files with 66 additions and 8 deletions

View file

@ -101,6 +101,7 @@ export interface listCourseinstructorResponse {
export interface addinstructorCourse {
token: string;
user_id: number;
course_id: number;
}
@ -119,6 +120,11 @@ export interface listinstructorCourseResponse {
}[];
}
export interface listinstructorCourse {
token: string;
course_id: number;
}
export interface removeinstructorCourse {
token: string;
user_id: number;