fix game story
This commit is contained in:
@@ -110,6 +110,10 @@ const (
|
||||
FieldGameLv = "game_lv"
|
||||
// FieldGameExp holds the string denoting the game_exp field in the database.
|
||||
FieldGameExp = "game_exp"
|
||||
// FieldGameStory holds the string denoting the game_story field in the database.
|
||||
FieldGameStory = "game_story"
|
||||
// FieldGameLimit holds the string denoting the game_limit field in the database.
|
||||
FieldGameLimit = "game_limit"
|
||||
// FieldCoin holds the string denoting the coin field in the database.
|
||||
FieldCoin = "coin"
|
||||
// FieldCoinOpen holds the string denoting the coin_open field in the database.
|
||||
@@ -207,6 +211,8 @@ var Columns = []string{
|
||||
FieldGameAccount,
|
||||
FieldGameLv,
|
||||
FieldGameExp,
|
||||
FieldGameStory,
|
||||
FieldGameLimit,
|
||||
FieldCoin,
|
||||
FieldCoinOpen,
|
||||
FieldCoinAt,
|
||||
@@ -282,6 +288,8 @@ var (
|
||||
DefaultGameEnd bool
|
||||
// DefaultGameAccount holds the default value on creation for the "game_account" field.
|
||||
DefaultGameAccount bool
|
||||
// DefaultGameLimit holds the default value on creation for the "game_limit" field.
|
||||
DefaultGameLimit bool
|
||||
// DefaultCoinOpen holds the default value on creation for the "coin_open" field.
|
||||
DefaultCoinOpen bool
|
||||
// DefaultCoinAt holds the default value on creation for the "coin_at" field.
|
||||
@@ -536,6 +544,16 @@ func ByGameExp(opts ...sql.OrderTermOption) OrderOption {
|
||||
return sql.OrderByField(FieldGameExp, opts...).ToFunc()
|
||||
}
|
||||
|
||||
// ByGameStory orders the results by the game_story field.
|
||||
func ByGameStory(opts ...sql.OrderTermOption) OrderOption {
|
||||
return sql.OrderByField(FieldGameStory, opts...).ToFunc()
|
||||
}
|
||||
|
||||
// ByGameLimit orders the results by the game_limit field.
|
||||
func ByGameLimit(opts ...sql.OrderTermOption) OrderOption {
|
||||
return sql.OrderByField(FieldGameLimit, opts...).ToFunc()
|
||||
}
|
||||
|
||||
// ByCoin orders the results by the coin field.
|
||||
func ByCoin(opts ...sql.OrderTermOption) OrderOption {
|
||||
return sql.OrderByField(FieldCoin, opts...).ToFunc()
|
||||
|
Reference in New Issue
Block a user