Add tests result
This commit is contained in:
parent
853c141910
commit
9e4fcbf04e
111 changed files with 1078 additions and 77 deletions
|
|
@ -610,6 +610,19 @@ export const instructorService = {
|
|||
{ method: 'DELETE' }
|
||||
);
|
||||
},
|
||||
async getMyStudentsStats(): Promise<{ total_students: number; total_completed: number }> {
|
||||
const response = await authRequest<{
|
||||
code: number;
|
||||
message: string;
|
||||
total_students: number;
|
||||
total_completed: number;
|
||||
}>('/api/instructors/courses/my-students');
|
||||
return {
|
||||
total_students: response.total_students,
|
||||
total_completed: response.total_completed
|
||||
};
|
||||
},
|
||||
|
||||
async getCourseApprovalHistory(courseId: number): Promise<ApprovalHistory[]> {
|
||||
const response = await authRequest<{
|
||||
code: number;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue