ecg matrix as output

This commit is contained in:
Andreas Schröpfer
2021-03-02 19:32:25 +01:00
parent cd7ee015a9
commit 72eb5c74d8
6 changed files with 362 additions and 223 deletions

View File

@@ -10,6 +10,7 @@ type Ecalc struct {
Type string `json:"type"`
Version string `json:"version"`
CompanyFacts CompanyFacts `json:"companyFacts"`
Matrix Matrix `json:"matrix"`
}
// EncodeJSON writes the JSON of the conf into the Writer
@@ -87,3 +88,16 @@ type Aspect struct {
IsWeightSelectedByUser bool `json:"isWeightSelectedByUser"`
IsPositive bool `json:"isPositive"`
}
type Matrix struct {
Topics []MatrixTopic `json:"topics"`
}
type MatrixTopic struct {
ShortName string `json:"shortName"`
Name string `json:"name"`
Points int `json:"points"`
MaxPoints int `json:"maxPoints"`
PercentageReached int `json:"percentageReached"`
NotApplicable bool `json:"notApplicable"`
}