mirror of
https://gitlab.dit.htwk-leipzig.de/htwk-software/htwkalender.git
synced 2026-01-16 19:42:26 +01:00
add first ical implementation
This commit is contained in:
24
service/ical/icalModel.go
Normal file
24
service/ical/icalModel.go
Normal 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
|
||||
Reference in New Issue
Block a user