add first ical implementation

This commit is contained in:
Elmar Kresse
2023-08-24 19:53:46 +02:00
parent 0686b9397f
commit 075bf3c899
13 changed files with 447 additions and 19 deletions

24
service/ical/icalModel.go Normal file
View File

@@ -0,0 +1,24 @@
package ical
import (
"htwk-planner/model"
"time"
)
// FeedModel is an iCal feed
type FeedModel struct {
Content string
ExpiresAt time.Time
}
// 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 []*model.Event