structs for matching results to tickets.
This commit is contained in:
25
models/match.go
Normal file
25
models/match.go
Normal file
@@ -0,0 +1,25 @@
|
||||
package models
|
||||
|
||||
type Ticket struct {
|
||||
ID int
|
||||
GameType string
|
||||
DrawDate string
|
||||
Balls []int
|
||||
BonusBalls []int
|
||||
}
|
||||
|
||||
type DrawResult struct {
|
||||
DrawID int
|
||||
GameType string
|
||||
DrawDate string
|
||||
Balls []int
|
||||
BonusBalls []int
|
||||
}
|
||||
|
||||
type MatchResult struct {
|
||||
MatchedMain int
|
||||
MatchedBonus int
|
||||
PrizeTier string
|
||||
IsWinner bool
|
||||
MatchedDrawID int
|
||||
}
|
||||
Reference in New Issue
Block a user