refactor(common): Teacher
This commit is contained in:
parent
3b51b0f1f6
commit
6ff29cb949
7 changed files with 28 additions and 24 deletions
8
common/src/interfaces/teacher-invitation.d.ts
vendored
Normal file
8
common/src/interfaces/teacher-invitation.d.ts
vendored
Normal file
|
@ -0,0 +1,8 @@
|
|||
import { UserDTO } from './user';
|
||||
import { ClassDTO } from './class';
|
||||
|
||||
export interface TeacherInvitationDTO {
|
||||
sender: string | UserDTO;
|
||||
receiver: string | UserDTO;
|
||||
class: string | ClassDTO;
|
||||
}
|
12
common/src/interfaces/teacher.d.ts
vendored
Normal file
12
common/src/interfaces/teacher.d.ts
vendored
Normal file
|
@ -0,0 +1,12 @@
|
|||
export interface TeacherDTO {
|
||||
id: string;
|
||||
username: string;
|
||||
firstName: string;
|
||||
lastName: string;
|
||||
endpoints?: {
|
||||
classes: string;
|
||||
questions: string;
|
||||
invitations: string;
|
||||
groups: string;
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue