mirror of
https://gitlab.dit.htwk-leipzig.de/htwk-software/htwkalender.git
synced 2025-08-03 02:09:15 +02:00
added frontend and updated backend with docker, wrote some initial instructions
This commit is contained in:
8
backend/model/feedModel.go
Normal file
8
backend/model/feedModel.go
Normal file
@@ -0,0 +1,8 @@
|
||||
package model
|
||||
|
||||
type Feed struct {
|
||||
Id string `db:"id" json:"id"`
|
||||
Modules string `db:"modules" json:"modules"`
|
||||
Created string `db:"created" json:"created"`
|
||||
Updated string `db:"updated" json:"updated"`
|
||||
}
|
25
backend/model/icalModel.go
Normal file
25
backend/model/icalModel.go
Normal 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
|
25
backend/model/seminarGroup.go
Normal file
25
backend/model/seminarGroup.go
Normal file
@@ -0,0 +1,25 @@
|
||||
package model
|
||||
|
||||
type SeminarGroup struct {
|
||||
University string
|
||||
GroupShortcut string
|
||||
GroupId string
|
||||
Course string
|
||||
Faculty string
|
||||
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"`
|
||||
Semester string `db:"semester"`
|
||||
}
|
29
backend/model/seminarGroupXMLStruct.go
Normal file
29
backend/model/seminarGroupXMLStruct.go
Normal file
@@ -0,0 +1,29 @@
|
||||
package model
|
||||
|
||||
import (
|
||||
"encoding/xml"
|
||||
)
|
||||
|
||||
type Studium struct {
|
||||
XMLName xml.Name `xml:"studium"`
|
||||
Fakultaet []Fakultaet `xml:"fakultaet"`
|
||||
}
|
||||
|
||||
type Fakultaet struct {
|
||||
XMLName xml.Name `xml:"fakultaet"`
|
||||
Name string `xml:"name,attr"`
|
||||
ID string `xml:"id,attr"`
|
||||
Studiengang []Studiengang `xml:"studiengang"`
|
||||
}
|
||||
|
||||
type Studiengang struct {
|
||||
XMLName xml.Name `xml:"studiengang"`
|
||||
Name string `xml:"name,attr"`
|
||||
ID string `xml:"id,attr"`
|
||||
Semgrp []Semgrp `xml:"semgrp"`
|
||||
}
|
||||
|
||||
type Semgrp struct {
|
||||
XMLName xml.Name `xml:"semgrp"`
|
||||
Name string `xml:"name,attr"`
|
||||
}
|
Reference in New Issue
Block a user