refactoring and update

This commit is contained in:
Elmar Kresse
2023-08-26 21:48:44 +02:00
parent a39dee9a0b
commit 991d069931
5 changed files with 22 additions and 19 deletions

25
model/icalModel.go Normal file
View File

@@ -0,0 +1,25 @@
package model
import (
"time"
)
// FeedModel is an iCal feed
type FeedModel struct {
Content string
ExpiresAt time.Time
Semester string
Course string
}
// Entry is a time entry
type Entry struct {
DateStart time.Time `json:"dateStart"`
DateEnd time.Time `json:"dateEnd"`
Description string `json:"description"`
}
// Entries is a collection of entries
type Entries []*Entry
type Events []*Event