@scu-xiaochuan/scu-pecourse-utils
Version:
32 lines (31 loc) • 821 B
TypeScript
import { ApiService } from './apiService';
import { Course, ParamType } from './apiTypes';
export declare class Api {
apiService: ApiService;
constructor(apiService: ApiService);
login({ username, password, }: {
username: string;
password: string;
apiService: ApiService;
}): Promise<{
username: string;
token: string;
}>;
/**
* 当前学期id
*/
getTermId(): Promise<ParamType>;
/**
* 当前学期所有课程
*/
getCourses({ studentUid, termId }: {
studentUid: any;
termId: any;
}): Promise<Course[]>;
choose({ courseClassId, teacherUid, teacherName, studentUid }: {
courseClassId: any;
teacherUid: any;
teacherName: any;
studentUid: any;
}): Promise<boolean>;
}