Fix: unittests
This commit is contained in:
@ -15,6 +15,8 @@ type (
|
||||
)
|
||||
|
||||
const (
|
||||
// Context keys
|
||||
TxContextKey = "tx"
|
||||
// UserTeam
|
||||
UserTeamBlue = "blue"
|
||||
UserTeamRed = "red"
|
||||
@ -384,10 +386,13 @@ type WordCard struct {
|
||||
|
||||
// table: settings
|
||||
type GameSettings struct {
|
||||
ID uint32 `json:"id" db:"id"`
|
||||
RoomID string `db:"room_id"`
|
||||
Language string `json:"language" example:"en" form:"language" db:"language"`
|
||||
RoomPass string `json:"room_pass" db:"room_pass"`
|
||||
TurnSecondsLeft uint32 `db:"-"`
|
||||
RoundTime uint32 `json:"round_time" db:"round_time"`
|
||||
RoundTime uint32 `json:"round_time" db:"turn_time"`
|
||||
CreatedAt time.Time `db:"created_at"`
|
||||
}
|
||||
|
||||
// =====
|
||||
|
Reference in New Issue
Block a user