add initial application structure with configuration, logging, and health check endpoints

This commit is contained in:
kever
2026-01-15 21:39:15 +08:00
parent fed727e593
commit ed8c3d55b8
103 changed files with 39974 additions and 80 deletions

View File

@@ -0,0 +1,96 @@
// Code generated by ent, DO NOT EDIT.
package epicgvgattackteams
import (
"entgo.io/ent/dialect/sql"
)
const (
// Label holds the string label denoting the epicgvgattackteams type in the database.
Label = "epic_gvg_attack_teams"
// FieldID holds the string denoting the id field in the database.
FieldID = "id"
// FieldAttackHeroes holds the string denoting the attack_heroes field in the database.
FieldAttackHeroes = "attack_heroes"
// FieldCreator holds the string denoting the creator field in the database.
FieldCreator = "creator"
// FieldCreateTime holds the string denoting the create_time field in the database.
FieldCreateTime = "create_time"
// FieldUpdater holds the string denoting the updater field in the database.
FieldUpdater = "updater"
// FieldUpdateTime holds the string denoting the update_time field in the database.
FieldUpdateTime = "update_time"
// FieldDeleted holds the string denoting the deleted field in the database.
FieldDeleted = "deleted"
// Table holds the table name of the epicgvgattackteams in the database.
Table = "epic_gvg_attack_teams"
)
// Columns holds all SQL columns for epicgvgattackteams fields.
var Columns = []string{
FieldID,
FieldAttackHeroes,
FieldCreator,
FieldCreateTime,
FieldUpdater,
FieldUpdateTime,
FieldDeleted,
}
// ValidColumn reports if the column name is valid (part of the table columns).
func ValidColumn(column string) bool {
for i := range Columns {
if column == Columns[i] {
return true
}
}
return false
}
var (
// AttackHeroesValidator is a validator for the "attack_heroes" field. It is called by the builders before save.
AttackHeroesValidator func(string) error
// CreatorValidator is a validator for the "creator" field. It is called by the builders before save.
CreatorValidator func(string) error
// UpdaterValidator is a validator for the "updater" field. It is called by the builders before save.
UpdaterValidator func(string) error
)
// OrderOption defines the ordering options for the EpicGvgAttackTeams queries.
type OrderOption func(*sql.Selector)
// ByID orders the results by the id field.
func ByID(opts ...sql.OrderTermOption) OrderOption {
return sql.OrderByField(FieldID, opts...).ToFunc()
}
// ByAttackHeroes orders the results by the attack_heroes field.
func ByAttackHeroes(opts ...sql.OrderTermOption) OrderOption {
return sql.OrderByField(FieldAttackHeroes, opts...).ToFunc()
}
// ByCreator orders the results by the creator field.
func ByCreator(opts ...sql.OrderTermOption) OrderOption {
return sql.OrderByField(FieldCreator, opts...).ToFunc()
}
// ByCreateTime orders the results by the create_time field.
func ByCreateTime(opts ...sql.OrderTermOption) OrderOption {
return sql.OrderByField(FieldCreateTime, opts...).ToFunc()
}
// ByUpdater orders the results by the updater field.
func ByUpdater(opts ...sql.OrderTermOption) OrderOption {
return sql.OrderByField(FieldUpdater, opts...).ToFunc()
}
// ByUpdateTime orders the results by the update_time field.
func ByUpdateTime(opts ...sql.OrderTermOption) OrderOption {
return sql.OrderByField(FieldUpdateTime, opts...).ToFunc()
}
// ByDeleted orders the results by the deleted field.
func ByDeleted(opts ...sql.OrderTermOption) OrderOption {
return sql.OrderByField(FieldDeleted, opts...).ToFunc()
}