changed module model and fixed empty name in event while fetch

This commit is contained in:
Elmar Kresse
2023-09-30 21:44:43 +02:00
parent 86f2636681
commit b1927864c2
5 changed files with 31 additions and 42 deletions

View File

@@ -1,3 +1,18 @@
package model
type Events []*Event
type Event struct {
Day string `db:"Day" json:"day"`
Week string `db:"Week" json:"week"`
Start string `db:"Start" json:"start"`
End string `db:"End" json:"end"`
Name string `db:"Name" json:"name"`
EventType string `db:"EventType" json:"eventType"`
Prof string `db:"Prof" json:"prof"`
Rooms string `db:"Rooms" json:"rooms"`
Notes string `db:"Notes" json:"notes"`
BookedAt string `db:"BookedAt" json:"bookedAt"`
Course string `db:"course" json:"course"`
Semester string `db:"semester" json:"semester"`
}

View File

@@ -9,18 +9,3 @@ type SeminarGroup struct {
FacultyId string
Events []Event
}
type Event struct {
Day string `db:"course"`
Week string `db:"Week"`
Start string `db:"Start"`
End string `db:"End"`
Name string `db:"Name"`
EventType string `db:"EventType"`
Prof string `db:"Prof"`
Rooms string `db:"Rooms"`
Notes string `db:"Notes"`
BookedAt string `db:"BookedAt"`
Course string `db:"course"`
Semester string `db:"semester"`
}