/
drop_report_query_result.go
116 lines (99 loc) · 3.52 KB
/
drop_report_query_result.go
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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
package model
import "time"
// DropMatrix
type TotalQuantityResultForDropMatrix struct {
StageID int `json:"stageId" bun:"stage_id"`
ItemID int `json:"itemId" bun:"item_id"`
TotalQuantity int `json:"totalQuantity" bun:"total_quantity"`
}
type TotalTimesResult struct {
StageID int `json:"stageId" bun:"stage_id"`
TotalTimes int `json:"totalTimes" bun:"total_times"`
}
type QuantityUniqCountResultForDropMatrix struct {
StageID int `json:"stageId" bun:"stage_id"`
ItemID int `json:"itemId" bun:"item_id"`
Quantity int `json:"quantity" bun:"quantity"`
Count int `json:"count" bun:"count"`
}
type CombinedResultForDropMatrix struct {
StageID int `json:"stageId"`
ItemID int `json:"itemId"`
Times int `json:"times"`
Quantity int `json:"quantity"`
QuantityBuckets map[int]int `json:"quantityBuckets"`
TimeRange *TimeRange `json:"timeRange"`
}
type DropMatrixQueryResult struct {
Matrix []*OneDropMatrixElement `json:"matrix"`
}
type OneDropMatrixElement struct {
StageID int `json:"stageId"`
ItemID int `json:"itemId"`
Times int `json:"times"`
Quantity int `json:"quantity"`
StdDev float64 `json:"stdDev"`
TimeRange *TimeRange `json:"timeRange"`
}
// DropPattern
type TotalQuantityResultForPatternMatrix struct {
StageID int `json:"stageId" bun:"stage_id"`
PatternID int `json:"patternId" bun:"pattern_id"`
TotalQuantity int `json:"totalQuantity" bun:"total_quantity"`
}
type CombinedResultForDropPattern struct {
StageID int `json:"stageId"`
PatternID int `json:"patternId"`
Times int `json:"times"`
Quantity int `json:"quantity"`
}
type PatternMatrixQueryResult struct {
PatternMatrix []*OnePatternMatrixElement `json:"dropPatterns"`
}
type OnePatternMatrixElement struct {
StageID int `json:"stageId"`
PatternID int `json:"patternId"`
TimeRange *TimeRange `json:"timeRange"`
Times int `json:"times"`
Quantity int `json:"quantity"`
}
// Trend
type TotalQuantityResultForTrend struct {
GroupID int `json:"groupId" bun:"group_id"`
IntervalStart *time.Time `json:"intervalStart" bun:"interval_start"`
IntervalEnd *time.Time `json:"intervalEnd" bun:"interval_end"`
StageID int `json:"stageId" bun:"stage_id"`
ItemID int `json:"itemId" bun:"item_id"`
TotalQuantity int `json:"totalQuantity" bun:"total_quantity"`
}
type TotalTimesResultForTrend struct {
GroupID int `json:"groupId" bun:"group_id"`
IntervalStart *time.Time `json:"intervalStart" bun:"interval_start"`
IntervalEnd *time.Time `json:"intervalEnd" bun:"interval_end"`
StageID int `json:"stageId" bun:"stage_id"`
TotalTimes int `json:"totalTimes" bun:"total_times"`
}
type CombinedResultForTrend struct {
GroupID int `json:"groupId"`
StartTime *time.Time `json:"startTime"`
EndTime *time.Time `json:"endTime"`
StageID int `json:"stageId"`
ItemID int `json:"itemId"`
Times int `json:"times"`
Quantity int `json:"quantity"`
}
type TrendQueryResult struct {
Trends []*StageTrend `json:"trends"`
}
type StageTrend struct {
StageID int `json:"stageId"`
Results []*ItemTrend `json:"results"`
}
type ItemTrend struct {
ItemID int `json:"itemId"`
StartTime *time.Time `json:"startTime"`
Times []int `json:"times"`
Quantity []int `json:"quantity"`
MinGroupID int `json:"-"`
MaxGroupID int `json:"-"`
}