feat: Introduce API endpoints and refactor service methods for adding, removing, listing, and setting primary course instructors.
This commit is contained in:
parent
2e536ad193
commit
b5ca6b2e0f
3 changed files with 66 additions and 8 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue