Refactor and remove sqlite and replace with MySQL
This commit is contained in:
23
internal/rules/types.go
Normal file
23
internal/rules/types.go
Normal file
@@ -0,0 +1,23 @@
|
||||
package rules
|
||||
|
||||
// PrizeRule defines how many matches correspond to which prize tier.
|
||||
type PrizeRule struct {
|
||||
Game string
|
||||
MainMatches int
|
||||
BonusMatches int
|
||||
Tier string
|
||||
}
|
||||
|
||||
// ToDo: should this struct not be in a model~?
|
||||
// PrizeInfo describes the tier and payout details.
|
||||
type PrizeInfo struct {
|
||||
Tier string
|
||||
Amount float64
|
||||
Label string
|
||||
}
|
||||
|
||||
// Game names (use constants to avoid typos). ToDo: should this not be in my constants folder or avoid constands folder as it may end up as a junk draw
|
||||
const (
|
||||
GameThunderball = "Thunderball"
|
||||
GameEuroJackpot = "EuroJackpot"
|
||||
)
|
||||
Reference in New Issue
Block a user