added spray patterns
This commit is contained in:
10
ent/ent.go
10
ent/ent.go
@@ -4,10 +4,11 @@ package ent
|
||||
|
||||
import (
|
||||
"csgowtfd/ent/match"
|
||||
"csgowtfd/ent/matchplayer"
|
||||
"csgowtfd/ent/player"
|
||||
"csgowtfd/ent/roundstats"
|
||||
"csgowtfd/ent/stats"
|
||||
"csgowtfd/ent/weaponstats"
|
||||
"csgowtfd/ent/spray"
|
||||
"csgowtfd/ent/weapon"
|
||||
"errors"
|
||||
"fmt"
|
||||
|
||||
@@ -34,10 +35,11 @@ type OrderFunc func(*sql.Selector)
|
||||
func columnChecker(table string) func(string) error {
|
||||
checks := map[string]func(string) bool{
|
||||
match.Table: match.ValidColumn,
|
||||
matchplayer.Table: matchplayer.ValidColumn,
|
||||
player.Table: player.ValidColumn,
|
||||
roundstats.Table: roundstats.ValidColumn,
|
||||
stats.Table: stats.ValidColumn,
|
||||
weaponstats.Table: weaponstats.ValidColumn,
|
||||
spray.Table: spray.ValidColumn,
|
||||
weapon.Table: weapon.ValidColumn,
|
||||
}
|
||||
check, ok := checks[table]
|
||||
if !ok {
|
||||
|
Reference in New Issue
Block a user