mirror of
https://gitlab.dit.htwk-leipzig.de/htwk-software/htwkalender.git
synced 2025-07-16 09:38:49 +02:00
37 lines
856 B
Go
37 lines
856 B
Go
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 FeedCollection struct {
|
|
Name string `db:"Name" json:"name"`
|
|
Course string `db:"course" json:"course"`
|
|
UserDefinedName string `db:"userDefinedName" json:"userDefinedName"`
|
|
}
|
|
|
|
type UUIDFeedCollection struct {
|
|
UUID string `db:"uuid" json:"uuid"`
|
|
Name string `db:"Name" json:"name"`
|
|
Course string `db:"course" json:"course"`
|
|
UserDefinedName string `db:"userDefinedName" json:"userDefinedName"`
|
|
}
|