feat : first commit
This commit is contained in:
6
frontend/services/dto/absence-type.ts
Normal file
6
frontend/services/dto/absence-type.ts
Normal file
@@ -0,0 +1,6 @@
|
||||
export type AbsenceType = {
|
||||
id: number
|
||||
code: string
|
||||
label: string
|
||||
color: string
|
||||
}
|
||||
11
frontend/services/dto/absence.ts
Normal file
11
frontend/services/dto/absence.ts
Normal file
@@ -0,0 +1,11 @@
|
||||
import type { Employee } from './employee'
|
||||
import type { AbsenceType } from './absence-type'
|
||||
|
||||
export type Absence = {
|
||||
id: number
|
||||
startDate: string
|
||||
endDate: string
|
||||
comment?: string | null
|
||||
employee: Employee
|
||||
type: AbsenceType
|
||||
}
|
||||
5
frontend/services/dto/employee.ts
Normal file
5
frontend/services/dto/employee.ts
Normal file
@@ -0,0 +1,5 @@
|
||||
export type Employee = {
|
||||
id: number
|
||||
firstName: string
|
||||
lastName: string
|
||||
}
|
||||
4
frontend/services/dto/user-data.ts
Normal file
4
frontend/services/dto/user-data.ts
Normal file
@@ -0,0 +1,4 @@
|
||||
export type UserData = {
|
||||
id: number
|
||||
username: string
|
||||
}
|
||||
Reference in New Issue
Block a user