refactor: seperate code into different files
This commit is contained in:
parent
2f6f0b4efd
commit
997cc11a89
16 changed files with 845 additions and 364 deletions
23
models.go
Normal file
23
models.go
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
package main
|
||||
|
||||
type Bewertung struct {
|
||||
Vorname string `json:"vorname"`
|
||||
Nachname string `json:"nachname"`
|
||||
ID int `json:"id"`
|
||||
HvPunkte float64 `json:"hvPunkte"`
|
||||
HvProzent float64 `json:"hvProzent"`
|
||||
HvNote int `json:"hvNote"`
|
||||
LvPunkte float64 `json:"lvPunkte"`
|
||||
LvProzent float64 `json:"lvProzent"`
|
||||
LvNote int `json:"lvNote"`
|
||||
GesamtProzent float64 `json:"gesamtProzent"`
|
||||
GesamtNote int `json:"gesamtNote"`
|
||||
Gewertet bool `json:"gewertet"`
|
||||
}
|
||||
|
||||
type MaxPunkte struct {
|
||||
HvMax float64 `json:"hvMax"`
|
||||
LvMax float64 `json:"lvMax"`
|
||||
HvGewichtung float64 `json:"hvGewichtung"`
|
||||
LvGewichtung float64 `json:"lvGewichtung"`
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue