[+] Create course interface

This commit is contained in:
Hykilpikonna
2019-08-24 20:39:14 +08:00
parent c8935c41cb
commit 56b9be01ba
+14
View File
@@ -2,6 +2,7 @@ import {Component, Vue} from 'vue-property-decorator';
import Login from '@/components/login/login';
import Navigation from '@/components/navigation/navigation';
import Overall from '@/pages/overall/overall';
import Constants from '@/constants';
/**
* Objects of this interface represent assignment grades.
@@ -19,6 +20,19 @@ export interface Grade
score: number
}
/**
* A course
*/
export interface Course
{
assignmentsId: number,
id: number,
name: string,
teacherName: string,
assignments: Grade[]
}
@Component({
components: {Login, Navigation, Overall},
})