add initial application structure with configuration, logging, and health check endpoints
This commit is contained in:
@@ -2,6 +2,8 @@ package entity
|
||||
|
||||
import (
|
||||
"entgo.io/ent"
|
||||
"entgo.io/ent/dialect/entsql"
|
||||
"entgo.io/ent/schema"
|
||||
"entgo.io/ent/schema/field"
|
||||
)
|
||||
|
||||
@@ -9,8 +11,10 @@ type EpicArtifactInfo struct {
|
||||
ent.Schema
|
||||
}
|
||||
|
||||
func (EpicArtifactInfo) Table() string {
|
||||
return "epic_artifact_info"
|
||||
func (EpicArtifactInfo) Annotations() []schema.Annotation {
|
||||
return []schema.Annotation{
|
||||
entsql.Annotation{Table: "epic_artifact_info"},
|
||||
}
|
||||
}
|
||||
|
||||
func (EpicArtifactInfo) Fields() []ent.Field {
|
||||
|
||||
@@ -2,6 +2,8 @@ package entity
|
||||
|
||||
import (
|
||||
"entgo.io/ent"
|
||||
"entgo.io/ent/dialect/entsql"
|
||||
"entgo.io/ent/schema"
|
||||
"entgo.io/ent/schema/field"
|
||||
)
|
||||
|
||||
@@ -9,8 +11,10 @@ type EpicGvgAttackTeams struct {
|
||||
ent.Schema
|
||||
}
|
||||
|
||||
func (EpicGvgAttackTeams) Table() string {
|
||||
return "epic_gvg_attack_teams"
|
||||
func (EpicGvgAttackTeams) Annotations() []schema.Annotation {
|
||||
return []schema.Annotation{
|
||||
entsql.Annotation{Table: "epic_gvg_attack_teams"},
|
||||
}
|
||||
}
|
||||
|
||||
func (EpicGvgAttackTeams) Fields() []ent.Field {
|
||||
|
||||
@@ -2,6 +2,8 @@ package entity
|
||||
|
||||
import (
|
||||
"entgo.io/ent"
|
||||
"entgo.io/ent/dialect/entsql"
|
||||
"entgo.io/ent/schema"
|
||||
"entgo.io/ent/schema/field"
|
||||
)
|
||||
|
||||
@@ -9,8 +11,10 @@ type EpicGvgDefenseAttackMapping struct {
|
||||
ent.Schema
|
||||
}
|
||||
|
||||
func (EpicGvgDefenseAttackMapping) Table() string {
|
||||
return "epic_gvg_defense_attack_mapping"
|
||||
func (EpicGvgDefenseAttackMapping) Annotations() []schema.Annotation {
|
||||
return []schema.Annotation{
|
||||
entsql.Annotation{Table: "epic_gvg_defense_attack_mapping"},
|
||||
}
|
||||
}
|
||||
|
||||
func (EpicGvgDefenseAttackMapping) Fields() []ent.Field {
|
||||
|
||||
@@ -2,6 +2,8 @@ package entity
|
||||
|
||||
import (
|
||||
"entgo.io/ent"
|
||||
"entgo.io/ent/dialect/entsql"
|
||||
"entgo.io/ent/schema"
|
||||
"entgo.io/ent/schema/field"
|
||||
)
|
||||
|
||||
@@ -9,8 +11,10 @@ type EpicGvgDefenseTeams struct {
|
||||
ent.Schema
|
||||
}
|
||||
|
||||
func (EpicGvgDefenseTeams) Table() string {
|
||||
return "epic_gvg_defense_teams"
|
||||
func (EpicGvgDefenseTeams) Annotations() []schema.Annotation {
|
||||
return []schema.Annotation{
|
||||
entsql.Annotation{Table: "epic_gvg_defense_teams"},
|
||||
}
|
||||
}
|
||||
|
||||
func (EpicGvgDefenseTeams) Fields() []ent.Field {
|
||||
|
||||
@@ -2,6 +2,8 @@ package entity
|
||||
|
||||
import (
|
||||
"entgo.io/ent"
|
||||
"entgo.io/ent/dialect/entsql"
|
||||
"entgo.io/ent/schema"
|
||||
"entgo.io/ent/schema/field"
|
||||
)
|
||||
|
||||
@@ -9,8 +11,10 @@ type EpicHeroInfo struct {
|
||||
ent.Schema
|
||||
}
|
||||
|
||||
func (EpicHeroInfo) Table() string {
|
||||
return "epic_hero_info"
|
||||
func (EpicHeroInfo) Annotations() []schema.Annotation {
|
||||
return []schema.Annotation{
|
||||
entsql.Annotation{Table: "epic_hero_info"},
|
||||
}
|
||||
}
|
||||
|
||||
func (EpicHeroInfo) Fields() []ent.Field {
|
||||
|
||||
@@ -2,6 +2,8 @@ package entity
|
||||
|
||||
import (
|
||||
"entgo.io/ent"
|
||||
"entgo.io/ent/dialect/entsql"
|
||||
"entgo.io/ent/schema"
|
||||
"entgo.io/ent/schema/field"
|
||||
)
|
||||
|
||||
@@ -9,8 +11,10 @@ type EpicHeroUserBuild struct {
|
||||
ent.Schema
|
||||
}
|
||||
|
||||
func (EpicHeroUserBuild) Table() string {
|
||||
return "epic_hero_user_build"
|
||||
func (EpicHeroUserBuild) Annotations() []schema.Annotation {
|
||||
return []schema.Annotation{
|
||||
entsql.Annotation{Table: "epic_hero_user_build"},
|
||||
}
|
||||
}
|
||||
|
||||
func (EpicHeroUserBuild) Fields() []ent.Field {
|
||||
|
||||
@@ -2,6 +2,8 @@ package entity
|
||||
|
||||
import (
|
||||
"entgo.io/ent"
|
||||
"entgo.io/ent/dialect/entsql"
|
||||
"entgo.io/ent/schema"
|
||||
"entgo.io/ent/schema/field"
|
||||
)
|
||||
|
||||
@@ -9,8 +11,10 @@ type EpicI18NMappings struct {
|
||||
ent.Schema
|
||||
}
|
||||
|
||||
func (EpicI18NMappings) Table() string {
|
||||
return "epic_i18n_mappings"
|
||||
func (EpicI18NMappings) Annotations() []schema.Annotation {
|
||||
return []schema.Annotation{
|
||||
entsql.Annotation{Table: "epic_i18n_mappings"},
|
||||
}
|
||||
}
|
||||
|
||||
func (EpicI18NMappings) Fields() []ent.Field {
|
||||
|
||||
@@ -2,6 +2,8 @@ package entity
|
||||
|
||||
import (
|
||||
"entgo.io/ent"
|
||||
"entgo.io/ent/dialect/entsql"
|
||||
"entgo.io/ent/schema"
|
||||
"entgo.io/ent/schema/field"
|
||||
)
|
||||
|
||||
@@ -9,8 +11,10 @@ type FribbleHeroSet struct {
|
||||
ent.Schema
|
||||
}
|
||||
|
||||
func (FribbleHeroSet) Table() string {
|
||||
return "fribble_hero_set"
|
||||
func (FribbleHeroSet) Annotations() []schema.Annotation {
|
||||
return []schema.Annotation{
|
||||
entsql.Annotation{Table: "fribble_hero_set"},
|
||||
}
|
||||
}
|
||||
|
||||
func (FribbleHeroSet) Fields() []ent.Field {
|
||||
|
||||
@@ -2,6 +2,8 @@ package entity
|
||||
|
||||
import (
|
||||
"entgo.io/ent"
|
||||
"entgo.io/ent/dialect/entsql"
|
||||
"entgo.io/ent/schema"
|
||||
"entgo.io/ent/schema/field"
|
||||
)
|
||||
|
||||
@@ -9,8 +11,10 @@ type GearSetInfo struct {
|
||||
ent.Schema
|
||||
}
|
||||
|
||||
func (GearSetInfo) Table() string {
|
||||
return "gear_set_info"
|
||||
func (GearSetInfo) Annotations() []schema.Annotation {
|
||||
return []schema.Annotation{
|
||||
entsql.Annotation{Table: "gear_set_info"},
|
||||
}
|
||||
}
|
||||
|
||||
func (GearSetInfo) Fields() []ent.Field {
|
||||
|
||||
Reference in New Issue
Block a user