325 lines
10 KiB
Go
325 lines
10 KiB
Go
// Code generated by ent, DO NOT EDIT.
|
|
|
|
package site
|
|
|
|
import (
|
|
"home-vue-go/internal/ent/predicate"
|
|
|
|
"entgo.io/ent/dialect/sql"
|
|
)
|
|
|
|
// ID filters vertices based on their ID field.
|
|
func ID(id int) predicate.Site {
|
|
return predicate.Site(sql.FieldEQ(FieldID, id))
|
|
}
|
|
|
|
// IDEQ applies the EQ predicate on the ID field.
|
|
func IDEQ(id int) predicate.Site {
|
|
return predicate.Site(sql.FieldEQ(FieldID, id))
|
|
}
|
|
|
|
// IDNEQ applies the NEQ predicate on the ID field.
|
|
func IDNEQ(id int) predicate.Site {
|
|
return predicate.Site(sql.FieldNEQ(FieldID, id))
|
|
}
|
|
|
|
// IDIn applies the In predicate on the ID field.
|
|
func IDIn(ids ...int) predicate.Site {
|
|
return predicate.Site(sql.FieldIn(FieldID, ids...))
|
|
}
|
|
|
|
// IDNotIn applies the NotIn predicate on the ID field.
|
|
func IDNotIn(ids ...int) predicate.Site {
|
|
return predicate.Site(sql.FieldNotIn(FieldID, ids...))
|
|
}
|
|
|
|
// IDGT applies the GT predicate on the ID field.
|
|
func IDGT(id int) predicate.Site {
|
|
return predicate.Site(sql.FieldGT(FieldID, id))
|
|
}
|
|
|
|
// IDGTE applies the GTE predicate on the ID field.
|
|
func IDGTE(id int) predicate.Site {
|
|
return predicate.Site(sql.FieldGTE(FieldID, id))
|
|
}
|
|
|
|
// IDLT applies the LT predicate on the ID field.
|
|
func IDLT(id int) predicate.Site {
|
|
return predicate.Site(sql.FieldLT(FieldID, id))
|
|
}
|
|
|
|
// IDLTE applies the LTE predicate on the ID field.
|
|
func IDLTE(id int) predicate.Site {
|
|
return predicate.Site(sql.FieldLTE(FieldID, id))
|
|
}
|
|
|
|
// Name applies equality check predicate on the "name" field. It's identical to NameEQ.
|
|
func Name(v string) predicate.Site {
|
|
return predicate.Site(sql.FieldEQ(FieldName, v))
|
|
}
|
|
|
|
// URL applies equality check predicate on the "url" field. It's identical to URLEQ.
|
|
func URL(v string) predicate.Site {
|
|
return predicate.Site(sql.FieldEQ(FieldURL, v))
|
|
}
|
|
|
|
// Icon applies equality check predicate on the "icon" field. It's identical to IconEQ.
|
|
func Icon(v string) predicate.Site {
|
|
return predicate.Site(sql.FieldEQ(FieldIcon, v))
|
|
}
|
|
|
|
// SortOrder applies equality check predicate on the "sort_order" field. It's identical to SortOrderEQ.
|
|
func SortOrder(v int) predicate.Site {
|
|
return predicate.Site(sql.FieldEQ(FieldSortOrder, v))
|
|
}
|
|
|
|
// NameEQ applies the EQ predicate on the "name" field.
|
|
func NameEQ(v string) predicate.Site {
|
|
return predicate.Site(sql.FieldEQ(FieldName, v))
|
|
}
|
|
|
|
// NameNEQ applies the NEQ predicate on the "name" field.
|
|
func NameNEQ(v string) predicate.Site {
|
|
return predicate.Site(sql.FieldNEQ(FieldName, v))
|
|
}
|
|
|
|
// NameIn applies the In predicate on the "name" field.
|
|
func NameIn(vs ...string) predicate.Site {
|
|
return predicate.Site(sql.FieldIn(FieldName, vs...))
|
|
}
|
|
|
|
// NameNotIn applies the NotIn predicate on the "name" field.
|
|
func NameNotIn(vs ...string) predicate.Site {
|
|
return predicate.Site(sql.FieldNotIn(FieldName, vs...))
|
|
}
|
|
|
|
// NameGT applies the GT predicate on the "name" field.
|
|
func NameGT(v string) predicate.Site {
|
|
return predicate.Site(sql.FieldGT(FieldName, v))
|
|
}
|
|
|
|
// NameGTE applies the GTE predicate on the "name" field.
|
|
func NameGTE(v string) predicate.Site {
|
|
return predicate.Site(sql.FieldGTE(FieldName, v))
|
|
}
|
|
|
|
// NameLT applies the LT predicate on the "name" field.
|
|
func NameLT(v string) predicate.Site {
|
|
return predicate.Site(sql.FieldLT(FieldName, v))
|
|
}
|
|
|
|
// NameLTE applies the LTE predicate on the "name" field.
|
|
func NameLTE(v string) predicate.Site {
|
|
return predicate.Site(sql.FieldLTE(FieldName, v))
|
|
}
|
|
|
|
// NameContains applies the Contains predicate on the "name" field.
|
|
func NameContains(v string) predicate.Site {
|
|
return predicate.Site(sql.FieldContains(FieldName, v))
|
|
}
|
|
|
|
// NameHasPrefix applies the HasPrefix predicate on the "name" field.
|
|
func NameHasPrefix(v string) predicate.Site {
|
|
return predicate.Site(sql.FieldHasPrefix(FieldName, v))
|
|
}
|
|
|
|
// NameHasSuffix applies the HasSuffix predicate on the "name" field.
|
|
func NameHasSuffix(v string) predicate.Site {
|
|
return predicate.Site(sql.FieldHasSuffix(FieldName, v))
|
|
}
|
|
|
|
// NameEqualFold applies the EqualFold predicate on the "name" field.
|
|
func NameEqualFold(v string) predicate.Site {
|
|
return predicate.Site(sql.FieldEqualFold(FieldName, v))
|
|
}
|
|
|
|
// NameContainsFold applies the ContainsFold predicate on the "name" field.
|
|
func NameContainsFold(v string) predicate.Site {
|
|
return predicate.Site(sql.FieldContainsFold(FieldName, v))
|
|
}
|
|
|
|
// URLEQ applies the EQ predicate on the "url" field.
|
|
func URLEQ(v string) predicate.Site {
|
|
return predicate.Site(sql.FieldEQ(FieldURL, v))
|
|
}
|
|
|
|
// URLNEQ applies the NEQ predicate on the "url" field.
|
|
func URLNEQ(v string) predicate.Site {
|
|
return predicate.Site(sql.FieldNEQ(FieldURL, v))
|
|
}
|
|
|
|
// URLIn applies the In predicate on the "url" field.
|
|
func URLIn(vs ...string) predicate.Site {
|
|
return predicate.Site(sql.FieldIn(FieldURL, vs...))
|
|
}
|
|
|
|
// URLNotIn applies the NotIn predicate on the "url" field.
|
|
func URLNotIn(vs ...string) predicate.Site {
|
|
return predicate.Site(sql.FieldNotIn(FieldURL, vs...))
|
|
}
|
|
|
|
// URLGT applies the GT predicate on the "url" field.
|
|
func URLGT(v string) predicate.Site {
|
|
return predicate.Site(sql.FieldGT(FieldURL, v))
|
|
}
|
|
|
|
// URLGTE applies the GTE predicate on the "url" field.
|
|
func URLGTE(v string) predicate.Site {
|
|
return predicate.Site(sql.FieldGTE(FieldURL, v))
|
|
}
|
|
|
|
// URLLT applies the LT predicate on the "url" field.
|
|
func URLLT(v string) predicate.Site {
|
|
return predicate.Site(sql.FieldLT(FieldURL, v))
|
|
}
|
|
|
|
// URLLTE applies the LTE predicate on the "url" field.
|
|
func URLLTE(v string) predicate.Site {
|
|
return predicate.Site(sql.FieldLTE(FieldURL, v))
|
|
}
|
|
|
|
// URLContains applies the Contains predicate on the "url" field.
|
|
func URLContains(v string) predicate.Site {
|
|
return predicate.Site(sql.FieldContains(FieldURL, v))
|
|
}
|
|
|
|
// URLHasPrefix applies the HasPrefix predicate on the "url" field.
|
|
func URLHasPrefix(v string) predicate.Site {
|
|
return predicate.Site(sql.FieldHasPrefix(FieldURL, v))
|
|
}
|
|
|
|
// URLHasSuffix applies the HasSuffix predicate on the "url" field.
|
|
func URLHasSuffix(v string) predicate.Site {
|
|
return predicate.Site(sql.FieldHasSuffix(FieldURL, v))
|
|
}
|
|
|
|
// URLEqualFold applies the EqualFold predicate on the "url" field.
|
|
func URLEqualFold(v string) predicate.Site {
|
|
return predicate.Site(sql.FieldEqualFold(FieldURL, v))
|
|
}
|
|
|
|
// URLContainsFold applies the ContainsFold predicate on the "url" field.
|
|
func URLContainsFold(v string) predicate.Site {
|
|
return predicate.Site(sql.FieldContainsFold(FieldURL, v))
|
|
}
|
|
|
|
// IconEQ applies the EQ predicate on the "icon" field.
|
|
func IconEQ(v string) predicate.Site {
|
|
return predicate.Site(sql.FieldEQ(FieldIcon, v))
|
|
}
|
|
|
|
// IconNEQ applies the NEQ predicate on the "icon" field.
|
|
func IconNEQ(v string) predicate.Site {
|
|
return predicate.Site(sql.FieldNEQ(FieldIcon, v))
|
|
}
|
|
|
|
// IconIn applies the In predicate on the "icon" field.
|
|
func IconIn(vs ...string) predicate.Site {
|
|
return predicate.Site(sql.FieldIn(FieldIcon, vs...))
|
|
}
|
|
|
|
// IconNotIn applies the NotIn predicate on the "icon" field.
|
|
func IconNotIn(vs ...string) predicate.Site {
|
|
return predicate.Site(sql.FieldNotIn(FieldIcon, vs...))
|
|
}
|
|
|
|
// IconGT applies the GT predicate on the "icon" field.
|
|
func IconGT(v string) predicate.Site {
|
|
return predicate.Site(sql.FieldGT(FieldIcon, v))
|
|
}
|
|
|
|
// IconGTE applies the GTE predicate on the "icon" field.
|
|
func IconGTE(v string) predicate.Site {
|
|
return predicate.Site(sql.FieldGTE(FieldIcon, v))
|
|
}
|
|
|
|
// IconLT applies the LT predicate on the "icon" field.
|
|
func IconLT(v string) predicate.Site {
|
|
return predicate.Site(sql.FieldLT(FieldIcon, v))
|
|
}
|
|
|
|
// IconLTE applies the LTE predicate on the "icon" field.
|
|
func IconLTE(v string) predicate.Site {
|
|
return predicate.Site(sql.FieldLTE(FieldIcon, v))
|
|
}
|
|
|
|
// IconContains applies the Contains predicate on the "icon" field.
|
|
func IconContains(v string) predicate.Site {
|
|
return predicate.Site(sql.FieldContains(FieldIcon, v))
|
|
}
|
|
|
|
// IconHasPrefix applies the HasPrefix predicate on the "icon" field.
|
|
func IconHasPrefix(v string) predicate.Site {
|
|
return predicate.Site(sql.FieldHasPrefix(FieldIcon, v))
|
|
}
|
|
|
|
// IconHasSuffix applies the HasSuffix predicate on the "icon" field.
|
|
func IconHasSuffix(v string) predicate.Site {
|
|
return predicate.Site(sql.FieldHasSuffix(FieldIcon, v))
|
|
}
|
|
|
|
// IconEqualFold applies the EqualFold predicate on the "icon" field.
|
|
func IconEqualFold(v string) predicate.Site {
|
|
return predicate.Site(sql.FieldEqualFold(FieldIcon, v))
|
|
}
|
|
|
|
// IconContainsFold applies the ContainsFold predicate on the "icon" field.
|
|
func IconContainsFold(v string) predicate.Site {
|
|
return predicate.Site(sql.FieldContainsFold(FieldIcon, v))
|
|
}
|
|
|
|
// SortOrderEQ applies the EQ predicate on the "sort_order" field.
|
|
func SortOrderEQ(v int) predicate.Site {
|
|
return predicate.Site(sql.FieldEQ(FieldSortOrder, v))
|
|
}
|
|
|
|
// SortOrderNEQ applies the NEQ predicate on the "sort_order" field.
|
|
func SortOrderNEQ(v int) predicate.Site {
|
|
return predicate.Site(sql.FieldNEQ(FieldSortOrder, v))
|
|
}
|
|
|
|
// SortOrderIn applies the In predicate on the "sort_order" field.
|
|
func SortOrderIn(vs ...int) predicate.Site {
|
|
return predicate.Site(sql.FieldIn(FieldSortOrder, vs...))
|
|
}
|
|
|
|
// SortOrderNotIn applies the NotIn predicate on the "sort_order" field.
|
|
func SortOrderNotIn(vs ...int) predicate.Site {
|
|
return predicate.Site(sql.FieldNotIn(FieldSortOrder, vs...))
|
|
}
|
|
|
|
// SortOrderGT applies the GT predicate on the "sort_order" field.
|
|
func SortOrderGT(v int) predicate.Site {
|
|
return predicate.Site(sql.FieldGT(FieldSortOrder, v))
|
|
}
|
|
|
|
// SortOrderGTE applies the GTE predicate on the "sort_order" field.
|
|
func SortOrderGTE(v int) predicate.Site {
|
|
return predicate.Site(sql.FieldGTE(FieldSortOrder, v))
|
|
}
|
|
|
|
// SortOrderLT applies the LT predicate on the "sort_order" field.
|
|
func SortOrderLT(v int) predicate.Site {
|
|
return predicate.Site(sql.FieldLT(FieldSortOrder, v))
|
|
}
|
|
|
|
// SortOrderLTE applies the LTE predicate on the "sort_order" field.
|
|
func SortOrderLTE(v int) predicate.Site {
|
|
return predicate.Site(sql.FieldLTE(FieldSortOrder, v))
|
|
}
|
|
|
|
// And groups predicates with the AND operator between them.
|
|
func And(predicates ...predicate.Site) predicate.Site {
|
|
return predicate.Site(sql.AndPredicates(predicates...))
|
|
}
|
|
|
|
// Or groups predicates with the OR operator between them.
|
|
func Or(predicates ...predicate.Site) predicate.Site {
|
|
return predicate.Site(sql.OrPredicates(predicates...))
|
|
}
|
|
|
|
// Not applies the not operator on the given predicate.
|
|
func Not(p predicate.Site) predicate.Site {
|
|
return predicate.Site(sql.NotPredicates(p))
|
|
}
|