-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathreport.go
More file actions
43 lines (37 loc) · 1.22 KB
/
report.go
File metadata and controls
43 lines (37 loc) · 1.22 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
package server
// CatBenAgg is a BenAgg associated with a question category
type CatBenAgg struct {
CategoryID string `json:"categoryID"`
Value float32 `json:"value"`
BeneficiaryIDs []string `json:"beneficiaryIDs"`
Warnings []string `json:"warnings"`
}
// QBenAgg is a BenAgg associated with a question
type QBenAgg struct {
QuestionID string `json:"questionID"`
Value float32 `json:"value"`
BeneficiaryIDs []string `json:"beneficiaryIDs"`
Warnings []string `json:"warnings"`
}
type Excluded struct {
CategoryIDs []string `json:"categoryIDs"`
QuestionIDs []string `json:"questionIDs"`
BeneficiaryIDs []string `json:"beneficiaryIDs"`
}
type JOCCatAggs struct {
First []CatBenAgg `json:"first"`
Last []CatBenAgg `json:"last"`
Delta []CatBenAgg `json:"delta"`
}
type JOCQAggs struct {
First []QBenAgg `json:"first"`
Last []QBenAgg `json:"last"`
Delta []QBenAgg `json:"delta"`
}
type JOCServiceReport struct {
BeneficiaryIDs []string `json:"beneficiaryIDs"`
QuestionAggregates JOCQAggs `json:"questionAggregates"`
CategoryAggregates JOCCatAggs `json:"categoryAggregates"`
Excluded Excluded `json:"excluded"`
Warnings []string `json:"warnings"`
}