mirror of
https://gitlab.dit.htwk-leipzig.de/htwk-software/htwkalender.git
synced 2025-08-06 11:49:14 +02:00
feat:#39 added fetcher for SeminarGroups
This commit is contained in:
44
backend/service/fetch/v3/apiModel.go
Normal file
44
backend/service/fetch/v3/apiModel.go
Normal file
@@ -0,0 +1,44 @@
|
||||
package v3
|
||||
|
||||
// seminarGroups Model for fetching json data
|
||||
type seminarGroups struct {
|
||||
TotalItems int `json:"hydra:totalItems"`
|
||||
Groups []seminarGroup `json:"hydra:member"`
|
||||
}
|
||||
|
||||
type seminarGroup struct {
|
||||
Type string `json:"@type"`
|
||||
ID string `json:"id"`
|
||||
Semester string `json:"semester"`
|
||||
Faculty string `json:"fakultaet"`
|
||||
Studiengang string `json:"studiengang"`
|
||||
SeminarGroup string `json:"kuerzel"`
|
||||
}
|
||||
|
||||
type studyTypes struct {
|
||||
TotalItems int `json:"hydra:totalItems"`
|
||||
Types []studyType `json:"hydra:member"`
|
||||
}
|
||||
|
||||
type studyType struct {
|
||||
Type string `json:"@type"`
|
||||
ID string `json:"id"`
|
||||
Faculty string `json:"fakultaet"`
|
||||
Semester string `json:"semester"`
|
||||
ShortCut string `json:"kuerzel"`
|
||||
Description string `json:"bezeichnung"`
|
||||
GroupID string `json:"studiengangskuerzel"`
|
||||
}
|
||||
|
||||
type faculties struct {
|
||||
TotalItems int `json:"hydra:totalItems"`
|
||||
Faculties []faculty `json:"hydra:member"`
|
||||
}
|
||||
|
||||
type faculty struct {
|
||||
ID string `json:"id"`
|
||||
StudyTypes []string `json:"studiengaenge"`
|
||||
ShortCut string `json:"kuerzel"`
|
||||
Description string `json:"bezeichnung"`
|
||||
Internal string `json:"internal"`
|
||||
}
|
Reference in New Issue
Block a user