1
0

fix ue game lv

This commit is contained in:
2024-06-01 23:35:34 +09:00
parent 2b479451c1
commit e508a50025
21 changed files with 2170 additions and 79 deletions

View File

@ -108,6 +108,8 @@ const (
FieldGameAccount = "game_account"
// FieldGameLv holds the string denoting the game_lv field in the database.
FieldGameLv = "game_lv"
// FieldGameExp holds the string denoting the game_exp field in the database.
FieldGameExp = "game_exp"
// 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.
@ -204,6 +206,7 @@ var Columns = []string{
FieldGameEnd,
FieldGameAccount,
FieldGameLv,
FieldGameExp,
FieldCoin,
FieldCoinOpen,
FieldCoinAt,
@ -528,6 +531,11 @@ func ByGameLv(opts ...sql.OrderTermOption) OrderOption {
return sql.OrderByField(FieldGameLv, opts...).ToFunc()
}
// ByGameExp orders the results by the game_exp field.
func ByGameExp(opts ...sql.OrderTermOption) OrderOption {
return sql.OrderByField(FieldGameExp, opts...).ToFunc()
}
// ByCoin orders the results by the coin field.
func ByCoin(opts ...sql.OrderTermOption) OrderOption {
return sql.OrderByField(FieldCoin, opts...).ToFunc()

View File

@ -290,6 +290,11 @@ func GameLv(v int) predicate.User {
return predicate.User(sql.FieldEQ(FieldGameLv, v))
}
// GameExp applies equality check predicate on the "game_exp" field. It's identical to GameExpEQ.
func GameExp(v int) predicate.User {
return predicate.User(sql.FieldEQ(FieldGameExp, 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))
@ -2440,6 +2445,56 @@ func GameLvNotNil() predicate.User {
return predicate.User(sql.FieldNotNull(FieldGameLv))
}
// GameExpEQ applies the EQ predicate on the "game_exp" field.
func GameExpEQ(v int) predicate.User {
return predicate.User(sql.FieldEQ(FieldGameExp, v))
}
// GameExpNEQ applies the NEQ predicate on the "game_exp" field.
func GameExpNEQ(v int) predicate.User {
return predicate.User(sql.FieldNEQ(FieldGameExp, v))
}
// GameExpIn applies the In predicate on the "game_exp" field.
func GameExpIn(vs ...int) predicate.User {
return predicate.User(sql.FieldIn(FieldGameExp, vs...))
}
// GameExpNotIn applies the NotIn predicate on the "game_exp" field.
func GameExpNotIn(vs ...int) predicate.User {
return predicate.User(sql.FieldNotIn(FieldGameExp, vs...))
}
// GameExpGT applies the GT predicate on the "game_exp" field.
func GameExpGT(v int) predicate.User {
return predicate.User(sql.FieldGT(FieldGameExp, v))
}
// GameExpGTE applies the GTE predicate on the "game_exp" field.
func GameExpGTE(v int) predicate.User {
return predicate.User(sql.FieldGTE(FieldGameExp, v))
}
// GameExpLT applies the LT predicate on the "game_exp" field.
func GameExpLT(v int) predicate.User {
return predicate.User(sql.FieldLT(FieldGameExp, v))
}
// GameExpLTE applies the LTE predicate on the "game_exp" field.
func GameExpLTE(v int) predicate.User {
return predicate.User(sql.FieldLTE(FieldGameExp, v))
}
// GameExpIsNil applies the IsNil predicate on the "game_exp" field.
func GameExpIsNil() predicate.User {
return predicate.User(sql.FieldIsNull(FieldGameExp))
}
// GameExpNotNil applies the NotNil predicate on the "game_exp" field.
func GameExpNotNil() predicate.User {
return predicate.User(sql.FieldNotNull(FieldGameExp))
}
// CoinEQ applies the EQ predicate on the "coin" field.
func CoinEQ(v int) predicate.User {
return predicate.User(sql.FieldEQ(FieldCoin, v))