rating as float

This commit is contained in:
Andreas Schröpfer
2021-03-03 19:59:11 +01:00
parent 6853af3b66
commit 148502d151
4 changed files with 14 additions and 3 deletions

View File

@@ -66,7 +66,7 @@ type Rating struct {
}
type Topic struct {
Points int `json:"points"`
Points float64 `json:"points"`
MaxPoints float64 `json:"maxPoints"`
ID int `json:"id,omitempty"`
ShortName string `json:"shortName"`
@@ -78,7 +78,7 @@ type Topic struct {
}
type Aspect struct {
Points int `json:"points"`
Points float64 `json:"points"`
MaxPoints float64 `json:"maxPoints"`
ID int `json:"id,omitempty"`
ShortName string `json:"shortName"`