feat: add schoolyear based calculation

This commit is contained in:
Patryk Hegenberg 2025-11-06 07:18:23 +01:00
parent e65ba85c43
commit c07019e3eb
5 changed files with 675 additions and 44 deletions

View file

@ -61,6 +61,21 @@ type CreateUserRequest struct {
YearlyHours float64 `json:"yearly_hours"`
}
type SchoolYear struct {
ID int `json:"id"`
Name string `json:"name"`
StartDate string `json:"start_date"`
EndDate string `json:"end_date"`
IsActive bool `json:"is_active"`
CreatedAt time.Time `json:"created_at"`
}
type CreateSchoolYearRequest struct {
Name string `json:"name" validate:"required"`
StartDate string `json:"start_date" validate:"required"`
EndDate string `json:"end_date" validate:"required"`
}
type UpdateUserRequest struct {
Username string `json:"username"`
YearlyHours float64 `json:"yearly_hours"`