update report function

This commit is contained in:
Adrian Zürcher
2026-02-11 13:42:02 +01:00
parent 81e05851bc
commit f2d20e83d6
5 changed files with 34 additions and 88 deletions

View File

@@ -1,6 +0,0 @@
package models
type Date struct {
From string ` json:"from,omitempty"`
To string ` json:"to,omitempty"`
}

View File

@@ -1,10 +1,9 @@
package models
type ReportFilter struct {
Weekdays Weekdays `json:"weekdays"`
Date Date `json:"date"`
Groups []uint `json:"groupIds,omitempty"`
Name []string `json:"name,omitempty"`
Date []string `json:"date"`
Groups []uint `json:"groupIds,omitempty"`
Name []string `json:"name,omitempty"`
}
type Report struct {

View File

@@ -1,11 +0,0 @@
package models
type Weekdays struct {
Monday bool `json:"monday,omitempty"`
Tuesday bool `json:"tuesday,omitempty"`
Wednesday bool `json:"wednesday,omitempty"`
Thursday bool `json:"thursday,omitempty"`
Friday bool `json:"friday,omitempty"`
Saturday bool `json:"saturday,omitempty"`
Sunday bool `json:"sunday,omitempty"`
}