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

@@ -32,6 +32,7 @@ type Conf struct {
Values []Value `json:"values"`
Areas []Area `json:"areas"`
Rating Rating `json:"rating"`
Matrix Matrix `json:"matrix"`
}
// EncodeJSON writes the JSON of the conf into the Writer
@@ -103,3 +104,22 @@ type RatingCol struct {
Type string `json:"type"`
Default string `json:"default"`
}
type Matrix struct {
Sheet int `json:"sheet"`
Stakeholders []Stakeholder `json:"stakeholders"`
Values []MatrixValue `json:"values"`
}
type Stakeholder struct {
Row int `json:"row"`
ShortName string `json:"short_name"`
Name string `json:"name"`
}
type MatrixValue struct {
ShortName string `json:"short_name"`
PointsCol string `json:"points_col"`
PercentageReachedCol string `json:"percentage_reached_col"`
MaxPointsCol string `json:"max_points_col"`
}