mirror of
https://github.com/simon-ding/polaris.git
synced 2026-04-22 03:37:30 +08:00
embed frontend files
This commit is contained in:
@@ -30,6 +30,8 @@ const (
|
||||
FieldPosterPath = "poster_path"
|
||||
// FieldCreatedAt holds the string denoting the created_at field in the database.
|
||||
FieldCreatedAt = "created_at"
|
||||
// FieldAirDate holds the string denoting the air_date field in the database.
|
||||
FieldAirDate = "air_date"
|
||||
// EdgeEpisodes holds the string denoting the episodes edge name in mutations.
|
||||
EdgeEpisodes = "episodes"
|
||||
// Table holds the table name of the series in the database.
|
||||
@@ -54,6 +56,7 @@ var Columns = []string{
|
||||
FieldPath,
|
||||
FieldPosterPath,
|
||||
FieldCreatedAt,
|
||||
FieldAirDate,
|
||||
}
|
||||
|
||||
// ValidColumn reports if the column name is valid (part of the table columns).
|
||||
@@ -69,6 +72,8 @@ func ValidColumn(column string) bool {
|
||||
var (
|
||||
// DefaultCreatedAt holds the default value on creation for the "created_at" field.
|
||||
DefaultCreatedAt time.Time
|
||||
// DefaultAirDate holds the default value on creation for the "air_date" field.
|
||||
DefaultAirDate string
|
||||
)
|
||||
|
||||
// OrderOption defines the ordering options for the Series queries.
|
||||
@@ -119,6 +124,11 @@ func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption {
|
||||
return sql.OrderByField(FieldCreatedAt, opts...).ToFunc()
|
||||
}
|
||||
|
||||
// ByAirDate orders the results by the air_date field.
|
||||
func ByAirDate(opts ...sql.OrderTermOption) OrderOption {
|
||||
return sql.OrderByField(FieldAirDate, opts...).ToFunc()
|
||||
}
|
||||
|
||||
// ByEpisodesCount orders the results by episodes count.
|
||||
func ByEpisodesCount(opts ...sql.OrderTermOption) OrderOption {
|
||||
return func(s *sql.Selector) {
|
||||
|
||||
@@ -95,6 +95,11 @@ func CreatedAt(v time.Time) predicate.Series {
|
||||
return predicate.Series(sql.FieldEQ(FieldCreatedAt, v))
|
||||
}
|
||||
|
||||
// AirDate applies equality check predicate on the "air_date" field. It's identical to AirDateEQ.
|
||||
func AirDate(v string) predicate.Series {
|
||||
return predicate.Series(sql.FieldEQ(FieldAirDate, v))
|
||||
}
|
||||
|
||||
// TmdbIDEQ applies the EQ predicate on the "tmdb_id" field.
|
||||
func TmdbIDEQ(v int) predicate.Series {
|
||||
return predicate.Series(sql.FieldEQ(FieldTmdbID, v))
|
||||
@@ -585,6 +590,71 @@ func CreatedAtLTE(v time.Time) predicate.Series {
|
||||
return predicate.Series(sql.FieldLTE(FieldCreatedAt, v))
|
||||
}
|
||||
|
||||
// AirDateEQ applies the EQ predicate on the "air_date" field.
|
||||
func AirDateEQ(v string) predicate.Series {
|
||||
return predicate.Series(sql.FieldEQ(FieldAirDate, v))
|
||||
}
|
||||
|
||||
// AirDateNEQ applies the NEQ predicate on the "air_date" field.
|
||||
func AirDateNEQ(v string) predicate.Series {
|
||||
return predicate.Series(sql.FieldNEQ(FieldAirDate, v))
|
||||
}
|
||||
|
||||
// AirDateIn applies the In predicate on the "air_date" field.
|
||||
func AirDateIn(vs ...string) predicate.Series {
|
||||
return predicate.Series(sql.FieldIn(FieldAirDate, vs...))
|
||||
}
|
||||
|
||||
// AirDateNotIn applies the NotIn predicate on the "air_date" field.
|
||||
func AirDateNotIn(vs ...string) predicate.Series {
|
||||
return predicate.Series(sql.FieldNotIn(FieldAirDate, vs...))
|
||||
}
|
||||
|
||||
// AirDateGT applies the GT predicate on the "air_date" field.
|
||||
func AirDateGT(v string) predicate.Series {
|
||||
return predicate.Series(sql.FieldGT(FieldAirDate, v))
|
||||
}
|
||||
|
||||
// AirDateGTE applies the GTE predicate on the "air_date" field.
|
||||
func AirDateGTE(v string) predicate.Series {
|
||||
return predicate.Series(sql.FieldGTE(FieldAirDate, v))
|
||||
}
|
||||
|
||||
// AirDateLT applies the LT predicate on the "air_date" field.
|
||||
func AirDateLT(v string) predicate.Series {
|
||||
return predicate.Series(sql.FieldLT(FieldAirDate, v))
|
||||
}
|
||||
|
||||
// AirDateLTE applies the LTE predicate on the "air_date" field.
|
||||
func AirDateLTE(v string) predicate.Series {
|
||||
return predicate.Series(sql.FieldLTE(FieldAirDate, v))
|
||||
}
|
||||
|
||||
// AirDateContains applies the Contains predicate on the "air_date" field.
|
||||
func AirDateContains(v string) predicate.Series {
|
||||
return predicate.Series(sql.FieldContains(FieldAirDate, v))
|
||||
}
|
||||
|
||||
// AirDateHasPrefix applies the HasPrefix predicate on the "air_date" field.
|
||||
func AirDateHasPrefix(v string) predicate.Series {
|
||||
return predicate.Series(sql.FieldHasPrefix(FieldAirDate, v))
|
||||
}
|
||||
|
||||
// AirDateHasSuffix applies the HasSuffix predicate on the "air_date" field.
|
||||
func AirDateHasSuffix(v string) predicate.Series {
|
||||
return predicate.Series(sql.FieldHasSuffix(FieldAirDate, v))
|
||||
}
|
||||
|
||||
// AirDateEqualFold applies the EqualFold predicate on the "air_date" field.
|
||||
func AirDateEqualFold(v string) predicate.Series {
|
||||
return predicate.Series(sql.FieldEqualFold(FieldAirDate, v))
|
||||
}
|
||||
|
||||
// AirDateContainsFold applies the ContainsFold predicate on the "air_date" field.
|
||||
func AirDateContainsFold(v string) predicate.Series {
|
||||
return predicate.Series(sql.FieldContainsFold(FieldAirDate, v))
|
||||
}
|
||||
|
||||
// HasEpisodes applies the HasEdge predicate on the "episodes" edge.
|
||||
func HasEpisodes() predicate.Series {
|
||||
return predicate.Series(func(s *sql.Selector) {
|
||||
|
||||
Reference in New Issue
Block a user