ymanager/webapp/src/app/models/user.model.ts @ 1d169f6d
1 | 3fcf8b67 | Hung Hoang | import {Time} from '@angular/common'; |
---|---|---|---|
2 | import {RequestStatus, UserType, VacationType} from '../enums/common.enum'; |
||
3 | |||
4 | export interface UserBasicInformation { |
||
5 | id: number; |
||
6 | firstName: string; |
||
7 | lastName: string; |
||
8 | photo: string; |
||
9 | calendar: [ |
||
10 | {
|
||
11 | id: number, |
||
12 | date: Date, |
||
13 | from: Time, |
||
14 | to: Time, |
||
15 | type: VacationType; |
||
16 | }
|
||
17 | ];
|
||
18 | }
|
||
19 | |||
20 | export interface UserProfile { |
||
21 | id: number; |
||
22 | firstName: string; |
||
23 | lastName: string; |
||
24 | photo: string; |
||
25 | vacationCount: number; |
||
26 | sickdayCount: number; |
||
27 | status: RequestStatus; |
||
28 | role: UserType; |
||
29 | notification: Date; |
||
30 | }
|