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