add initial application structure with configuration, logging, and health check endpoints
This commit is contained in:
@@ -43,10 +43,10 @@ const (
|
||||
FieldRemark = "remark"
|
||||
// FieldRawJSON holds the string denoting the raw_json field in the database.
|
||||
FieldRawJSON = "raw_json"
|
||||
// FieldSetContentJSON holds the string denoting the set_content_json field in the database.
|
||||
FieldSetContentJSON = "set_content_json"
|
||||
// FieldSetUpdateTime holds the string denoting the set_update_time field in the database.
|
||||
FieldSetUpdateTime = "set_update_time"
|
||||
// FieldContentJSONSet holds the string denoting the content_json_set field in the database.
|
||||
FieldContentJSONSet = "content_json_set"
|
||||
// FieldUpdateTimeSet holds the string denoting the update_time_set field in the database.
|
||||
FieldUpdateTimeSet = "update_time_set"
|
||||
// Table holds the table name of the epicheroinfo in the database.
|
||||
Table = "epic_hero_infos"
|
||||
)
|
||||
@@ -70,8 +70,8 @@ var Columns = []string{
|
||||
FieldAttribute,
|
||||
FieldRemark,
|
||||
FieldRawJSON,
|
||||
FieldSetContentJSON,
|
||||
FieldSetUpdateTime,
|
||||
FieldContentJSONSet,
|
||||
FieldUpdateTimeSet,
|
||||
}
|
||||
|
||||
// ValidColumn reports if the column name is valid (part of the table columns).
|
||||
@@ -111,8 +111,8 @@ var (
|
||||
RemarkValidator func(string) error
|
||||
// RawJSONValidator is a validator for the "raw_json" field. It is called by the builders before save.
|
||||
RawJSONValidator func(string) error
|
||||
// SetContentJSONValidator is a validator for the "set_content_json" field. It is called by the builders before save.
|
||||
SetContentJSONValidator func(string) error
|
||||
// ContentJSONSetValidator is a validator for the "content_json_set" field. It is called by the builders before save.
|
||||
ContentJSONSetValidator func(string) error
|
||||
)
|
||||
|
||||
// OrderOption defines the ordering options for the EpicHeroInfo queries.
|
||||
@@ -203,12 +203,12 @@ func ByRawJSON(opts ...sql.OrderTermOption) OrderOption {
|
||||
return sql.OrderByField(FieldRawJSON, opts...).ToFunc()
|
||||
}
|
||||
|
||||
// BySetContentJSON orders the results by the set_content_json field.
|
||||
func BySetContentJSON(opts ...sql.OrderTermOption) OrderOption {
|
||||
return sql.OrderByField(FieldSetContentJSON, opts...).ToFunc()
|
||||
// ByContentJSONSet orders the results by the content_json_set field.
|
||||
func ByContentJSONSet(opts ...sql.OrderTermOption) OrderOption {
|
||||
return sql.OrderByField(FieldContentJSONSet, opts...).ToFunc()
|
||||
}
|
||||
|
||||
// BySetUpdateTime orders the results by the set_update_time field.
|
||||
func BySetUpdateTime(opts ...sql.OrderTermOption) OrderOption {
|
||||
return sql.OrderByField(FieldSetUpdateTime, opts...).ToFunc()
|
||||
// ByUpdateTimeSet orders the results by the update_time_set field.
|
||||
func ByUpdateTimeSet(opts ...sql.OrderTermOption) OrderOption {
|
||||
return sql.OrderByField(FieldUpdateTimeSet, opts...).ToFunc()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user