1
0

fix game story

This commit is contained in:
2024-06-08 01:02:15 +09:00
parent e508a50025
commit a01e86d8b3
21 changed files with 2291 additions and 85 deletions

View File

@ -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()

View File

@ -295,6 +295,16 @@ func GameExp(v int) predicate.User {
return predicate.User(sql.FieldEQ(FieldGameExp, v))
}
// GameStory applies equality check predicate on the "game_story" field. It's identical to GameStoryEQ.
func GameStory(v int) predicate.User {
return predicate.User(sql.FieldEQ(FieldGameStory, v))
}
// GameLimit applies equality check predicate on the "game_limit" field. It's identical to GameLimitEQ.
func GameLimit(v bool) predicate.User {
return predicate.User(sql.FieldEQ(FieldGameLimit, v))
}
// Coin applies equality check predicate on the "coin" field. It's identical to CoinEQ.
func Coin(v int) predicate.User {
return predicate.User(sql.FieldEQ(FieldCoin, v))
@ -2495,6 +2505,76 @@ func GameExpNotNil() predicate.User {
return predicate.User(sql.FieldNotNull(FieldGameExp))
}
// GameStoryEQ applies the EQ predicate on the "game_story" field.
func GameStoryEQ(v int) predicate.User {
return predicate.User(sql.FieldEQ(FieldGameStory, v))
}
// GameStoryNEQ applies the NEQ predicate on the "game_story" field.
func GameStoryNEQ(v int) predicate.User {
return predicate.User(sql.FieldNEQ(FieldGameStory, v))
}
// GameStoryIn applies the In predicate on the "game_story" field.
func GameStoryIn(vs ...int) predicate.User {
return predicate.User(sql.FieldIn(FieldGameStory, vs...))
}
// GameStoryNotIn applies the NotIn predicate on the "game_story" field.
func GameStoryNotIn(vs ...int) predicate.User {
return predicate.User(sql.FieldNotIn(FieldGameStory, vs...))
}
// GameStoryGT applies the GT predicate on the "game_story" field.
func GameStoryGT(v int) predicate.User {
return predicate.User(sql.FieldGT(FieldGameStory, v))
}
// GameStoryGTE applies the GTE predicate on the "game_story" field.
func GameStoryGTE(v int) predicate.User {
return predicate.User(sql.FieldGTE(FieldGameStory, v))
}
// GameStoryLT applies the LT predicate on the "game_story" field.
func GameStoryLT(v int) predicate.User {
return predicate.User(sql.FieldLT(FieldGameStory, v))
}
// GameStoryLTE applies the LTE predicate on the "game_story" field.
func GameStoryLTE(v int) predicate.User {
return predicate.User(sql.FieldLTE(FieldGameStory, v))
}
// GameStoryIsNil applies the IsNil predicate on the "game_story" field.
func GameStoryIsNil() predicate.User {
return predicate.User(sql.FieldIsNull(FieldGameStory))
}
// GameStoryNotNil applies the NotNil predicate on the "game_story" field.
func GameStoryNotNil() predicate.User {
return predicate.User(sql.FieldNotNull(FieldGameStory))
}
// GameLimitEQ applies the EQ predicate on the "game_limit" field.
func GameLimitEQ(v bool) predicate.User {
return predicate.User(sql.FieldEQ(FieldGameLimit, v))
}
// GameLimitNEQ applies the NEQ predicate on the "game_limit" field.
func GameLimitNEQ(v bool) predicate.User {
return predicate.User(sql.FieldNEQ(FieldGameLimit, v))
}
// GameLimitIsNil applies the IsNil predicate on the "game_limit" field.
func GameLimitIsNil() predicate.User {
return predicate.User(sql.FieldIsNull(FieldGameLimit))
}
// GameLimitNotNil applies the NotNil predicate on the "game_limit" field.
func GameLimitNotNil() predicate.User {
return predicate.User(sql.FieldNotNull(FieldGameLimit))
}
// CoinEQ applies the EQ predicate on the "coin" field.
func CoinEQ(v int) predicate.User {
return predicate.User(sql.FieldEQ(FieldCoin, v))