feat: added all features for seconde release candidate
This commit is contained in:
parent
9c25956711
commit
e65ba85c43
7 changed files with 1947 additions and 850 deletions
|
|
@ -15,13 +15,15 @@ type TimeEntry struct {
|
|||
}
|
||||
|
||||
type WeeklyHours struct {
|
||||
UserID int `json:"user_id"`
|
||||
Username string `json:"username"`
|
||||
Week int `json:"week"`
|
||||
Year int `json:"year"`
|
||||
TotalHours float64 `json:"total_hours"`
|
||||
ExpectedHours float64 `json:"expected_hours"`
|
||||
RemainingHours float64 `json:"remaining_hours"`
|
||||
UserID int `json:"user_id"`
|
||||
Username string `json:"username"`
|
||||
Week int `json:"week"`
|
||||
Year int `json:"year"`
|
||||
TotalHours float64 `json:"total_hours"`
|
||||
YearlyTarget float64 `json:"yearly_target"` // NEU
|
||||
YearlyActual float64 `json:"yearly_actual"` // NEU
|
||||
WeeklyTarget float64 `json:"weekly_target"` // NEU
|
||||
RemainingYearly float64 `json:"remaining_yearly"` // NEU
|
||||
}
|
||||
|
||||
type User struct {
|
||||
|
|
@ -29,7 +31,7 @@ type User struct {
|
|||
Username string `json:"username"`
|
||||
Password string `json:"-"`
|
||||
IsAdmin bool `json:"is_admin"`
|
||||
WeeklyHours float64 `json:"weekly_hours"`
|
||||
YearlyHours float64 `json:"yearly_hours"`
|
||||
}
|
||||
|
||||
type Schedule struct {
|
||||
|
|
@ -56,12 +58,12 @@ type CreateUserRequest struct {
|
|||
Username string `json:"username" validate:"required"`
|
||||
Password string `json:"password" validate:"required,min=6"`
|
||||
IsAdmin bool `json:"is_admin"`
|
||||
WeeklyHours float64 `json:"weekly_hours"`
|
||||
YearlyHours float64 `json:"yearly_hours"`
|
||||
}
|
||||
|
||||
type UpdateUserRequest struct {
|
||||
Username string `json:"username"`
|
||||
WeeklyHours float64 `json:"weekly_hours"`
|
||||
YearlyHours float64 `json:"yearly_hours"`
|
||||
}
|
||||
|
||||
type ResetPasswordRequest struct {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue