ecg matrix as output
This commit is contained in:
@@ -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"`
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user