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

@@ -56,6 +56,10 @@ const (
FieldGameExp = "game_exp"
// FieldGameID holds the string denoting the game_id field in the database.
FieldGameID = "game_id"
// FieldGameStory holds the string denoting the game_story field in the database.
FieldGameStory = "game_story"
// FieldGameEp holds the string denoting the game_ep field in the database.
FieldGameEp = "game_ep"
// FieldCreatedAt holds the string denoting the created_at field in the database.
FieldCreatedAt = "created_at"
// EdgeOwner holds the string denoting the owner edge name in mutations.
@@ -95,6 +99,8 @@ var Columns = []string{
FieldGameLv,
FieldGameExp,
FieldGameID,
FieldGameStory,
FieldGameEp,
FieldCreatedAt,
}
@@ -245,6 +251,16 @@ func ByGameID(opts ...sql.OrderTermOption) OrderOption {
return sql.OrderByField(FieldGameID, opts...).ToFunc()
}
// ByGameStory orders the results by the game_story field.
func ByGameStory(opts ...sql.OrderTermOption) OrderOption {
return sql.OrderByField(FieldGameStory, opts...).ToFunc()
}
// ByGameEp orders the results by the game_ep field.
func ByGameEp(opts ...sql.OrderTermOption) OrderOption {
return sql.OrderByField(FieldGameEp, opts...).ToFunc()
}
// ByCreatedAt orders the results by the created_at field.
func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption {
return sql.OrderByField(FieldCreatedAt, opts...).ToFunc()