added chat messages
This commit is contained in:
@@ -5,6 +5,7 @@ package ent
|
||||
import (
|
||||
"csgowtfd/ent/match"
|
||||
"csgowtfd/ent/matchplayer"
|
||||
"csgowtfd/ent/messages"
|
||||
"csgowtfd/ent/player"
|
||||
"csgowtfd/ent/roundstats"
|
||||
"csgowtfd/ent/spray"
|
||||
@@ -36,6 +37,7 @@ func columnChecker(table string) func(string) error {
|
||||
checks := map[string]func(string) bool{
|
||||
match.Table: match.ValidColumn,
|
||||
matchplayer.Table: matchplayer.ValidColumn,
|
||||
messages.Table: messages.ValidColumn,
|
||||
player.Table: player.ValidColumn,
|
||||
roundstats.Table: roundstats.ValidColumn,
|
||||
spray.Table: spray.ValidColumn,
|
||||
@@ -151,7 +153,7 @@ func Sum(field string) AggregateFunc {
|
||||
}
|
||||
}
|
||||
|
||||
// ValidationError returns when validating a field fails.
|
||||
// ValidationError returns when validating a field or edge fails.
|
||||
type ValidationError struct {
|
||||
Name string // Field or edge name.
|
||||
err error
|
||||
|
Reference in New Issue
Block a user