511 lines
17 KiB
Go
511 lines
17 KiB
Go
// Code generated by ent, DO NOT EDIT.
|
|
|
|
package admin
|
|
|
|
import (
|
|
"time"
|
|
|
|
"entgo.io/ent/dialect/sql"
|
|
"kra/internal/data/ent/predicate"
|
|
)
|
|
|
|
// ID filters vertices based on their ID field.
|
|
func ID(id int64) predicate.Admin {
|
|
return predicate.Admin(sql.FieldEQ(FieldID, id))
|
|
}
|
|
|
|
// IDEQ applies the EQ predicate on the ID field.
|
|
func IDEQ(id int64) predicate.Admin {
|
|
return predicate.Admin(sql.FieldEQ(FieldID, id))
|
|
}
|
|
|
|
// IDNEQ applies the NEQ predicate on the ID field.
|
|
func IDNEQ(id int64) predicate.Admin {
|
|
return predicate.Admin(sql.FieldNEQ(FieldID, id))
|
|
}
|
|
|
|
// IDIn applies the In predicate on the ID field.
|
|
func IDIn(ids ...int64) predicate.Admin {
|
|
return predicate.Admin(sql.FieldIn(FieldID, ids...))
|
|
}
|
|
|
|
// IDNotIn applies the NotIn predicate on the ID field.
|
|
func IDNotIn(ids ...int64) predicate.Admin {
|
|
return predicate.Admin(sql.FieldNotIn(FieldID, ids...))
|
|
}
|
|
|
|
// IDGT applies the GT predicate on the ID field.
|
|
func IDGT(id int64) predicate.Admin {
|
|
return predicate.Admin(sql.FieldGT(FieldID, id))
|
|
}
|
|
|
|
// IDGTE applies the GTE predicate on the ID field.
|
|
func IDGTE(id int64) predicate.Admin {
|
|
return predicate.Admin(sql.FieldGTE(FieldID, id))
|
|
}
|
|
|
|
// IDLT applies the LT predicate on the ID field.
|
|
func IDLT(id int64) predicate.Admin {
|
|
return predicate.Admin(sql.FieldLT(FieldID, id))
|
|
}
|
|
|
|
// IDLTE applies the LTE predicate on the ID field.
|
|
func IDLTE(id int64) predicate.Admin {
|
|
return predicate.Admin(sql.FieldLTE(FieldID, id))
|
|
}
|
|
|
|
// Name applies equality check predicate on the "name" field. It's identical to NameEQ.
|
|
func Name(v string) predicate.Admin {
|
|
return predicate.Admin(sql.FieldEQ(FieldName, v))
|
|
}
|
|
|
|
// Email applies equality check predicate on the "email" field. It's identical to EmailEQ.
|
|
func Email(v string) predicate.Admin {
|
|
return predicate.Admin(sql.FieldEQ(FieldEmail, v))
|
|
}
|
|
|
|
// Avatar applies equality check predicate on the "avatar" field. It's identical to AvatarEQ.
|
|
func Avatar(v string) predicate.Admin {
|
|
return predicate.Admin(sql.FieldEQ(FieldAvatar, v))
|
|
}
|
|
|
|
// Access applies equality check predicate on the "access" field. It's identical to AccessEQ.
|
|
func Access(v string) predicate.Admin {
|
|
return predicate.Admin(sql.FieldEQ(FieldAccess, v))
|
|
}
|
|
|
|
// Password applies equality check predicate on the "password" field. It's identical to PasswordEQ.
|
|
func Password(v string) predicate.Admin {
|
|
return predicate.Admin(sql.FieldEQ(FieldPassword, v))
|
|
}
|
|
|
|
// CreateTime applies equality check predicate on the "create_time" field. It's identical to CreateTimeEQ.
|
|
func CreateTime(v time.Time) predicate.Admin {
|
|
return predicate.Admin(sql.FieldEQ(FieldCreateTime, v))
|
|
}
|
|
|
|
// UpdateTime applies equality check predicate on the "update_time" field. It's identical to UpdateTimeEQ.
|
|
func UpdateTime(v time.Time) predicate.Admin {
|
|
return predicate.Admin(sql.FieldEQ(FieldUpdateTime, v))
|
|
}
|
|
|
|
// NameEQ applies the EQ predicate on the "name" field.
|
|
func NameEQ(v string) predicate.Admin {
|
|
return predicate.Admin(sql.FieldEQ(FieldName, v))
|
|
}
|
|
|
|
// NameNEQ applies the NEQ predicate on the "name" field.
|
|
func NameNEQ(v string) predicate.Admin {
|
|
return predicate.Admin(sql.FieldNEQ(FieldName, v))
|
|
}
|
|
|
|
// NameIn applies the In predicate on the "name" field.
|
|
func NameIn(vs ...string) predicate.Admin {
|
|
return predicate.Admin(sql.FieldIn(FieldName, vs...))
|
|
}
|
|
|
|
// NameNotIn applies the NotIn predicate on the "name" field.
|
|
func NameNotIn(vs ...string) predicate.Admin {
|
|
return predicate.Admin(sql.FieldNotIn(FieldName, vs...))
|
|
}
|
|
|
|
// NameGT applies the GT predicate on the "name" field.
|
|
func NameGT(v string) predicate.Admin {
|
|
return predicate.Admin(sql.FieldGT(FieldName, v))
|
|
}
|
|
|
|
// NameGTE applies the GTE predicate on the "name" field.
|
|
func NameGTE(v string) predicate.Admin {
|
|
return predicate.Admin(sql.FieldGTE(FieldName, v))
|
|
}
|
|
|
|
// NameLT applies the LT predicate on the "name" field.
|
|
func NameLT(v string) predicate.Admin {
|
|
return predicate.Admin(sql.FieldLT(FieldName, v))
|
|
}
|
|
|
|
// NameLTE applies the LTE predicate on the "name" field.
|
|
func NameLTE(v string) predicate.Admin {
|
|
return predicate.Admin(sql.FieldLTE(FieldName, v))
|
|
}
|
|
|
|
// NameContains applies the Contains predicate on the "name" field.
|
|
func NameContains(v string) predicate.Admin {
|
|
return predicate.Admin(sql.FieldContains(FieldName, v))
|
|
}
|
|
|
|
// NameHasPrefix applies the HasPrefix predicate on the "name" field.
|
|
func NameHasPrefix(v string) predicate.Admin {
|
|
return predicate.Admin(sql.FieldHasPrefix(FieldName, v))
|
|
}
|
|
|
|
// NameHasSuffix applies the HasSuffix predicate on the "name" field.
|
|
func NameHasSuffix(v string) predicate.Admin {
|
|
return predicate.Admin(sql.FieldHasSuffix(FieldName, v))
|
|
}
|
|
|
|
// NameEqualFold applies the EqualFold predicate on the "name" field.
|
|
func NameEqualFold(v string) predicate.Admin {
|
|
return predicate.Admin(sql.FieldEqualFold(FieldName, v))
|
|
}
|
|
|
|
// NameContainsFold applies the ContainsFold predicate on the "name" field.
|
|
func NameContainsFold(v string) predicate.Admin {
|
|
return predicate.Admin(sql.FieldContainsFold(FieldName, v))
|
|
}
|
|
|
|
// EmailEQ applies the EQ predicate on the "email" field.
|
|
func EmailEQ(v string) predicate.Admin {
|
|
return predicate.Admin(sql.FieldEQ(FieldEmail, v))
|
|
}
|
|
|
|
// EmailNEQ applies the NEQ predicate on the "email" field.
|
|
func EmailNEQ(v string) predicate.Admin {
|
|
return predicate.Admin(sql.FieldNEQ(FieldEmail, v))
|
|
}
|
|
|
|
// EmailIn applies the In predicate on the "email" field.
|
|
func EmailIn(vs ...string) predicate.Admin {
|
|
return predicate.Admin(sql.FieldIn(FieldEmail, vs...))
|
|
}
|
|
|
|
// EmailNotIn applies the NotIn predicate on the "email" field.
|
|
func EmailNotIn(vs ...string) predicate.Admin {
|
|
return predicate.Admin(sql.FieldNotIn(FieldEmail, vs...))
|
|
}
|
|
|
|
// EmailGT applies the GT predicate on the "email" field.
|
|
func EmailGT(v string) predicate.Admin {
|
|
return predicate.Admin(sql.FieldGT(FieldEmail, v))
|
|
}
|
|
|
|
// EmailGTE applies the GTE predicate on the "email" field.
|
|
func EmailGTE(v string) predicate.Admin {
|
|
return predicate.Admin(sql.FieldGTE(FieldEmail, v))
|
|
}
|
|
|
|
// EmailLT applies the LT predicate on the "email" field.
|
|
func EmailLT(v string) predicate.Admin {
|
|
return predicate.Admin(sql.FieldLT(FieldEmail, v))
|
|
}
|
|
|
|
// EmailLTE applies the LTE predicate on the "email" field.
|
|
func EmailLTE(v string) predicate.Admin {
|
|
return predicate.Admin(sql.FieldLTE(FieldEmail, v))
|
|
}
|
|
|
|
// EmailContains applies the Contains predicate on the "email" field.
|
|
func EmailContains(v string) predicate.Admin {
|
|
return predicate.Admin(sql.FieldContains(FieldEmail, v))
|
|
}
|
|
|
|
// EmailHasPrefix applies the HasPrefix predicate on the "email" field.
|
|
func EmailHasPrefix(v string) predicate.Admin {
|
|
return predicate.Admin(sql.FieldHasPrefix(FieldEmail, v))
|
|
}
|
|
|
|
// EmailHasSuffix applies the HasSuffix predicate on the "email" field.
|
|
func EmailHasSuffix(v string) predicate.Admin {
|
|
return predicate.Admin(sql.FieldHasSuffix(FieldEmail, v))
|
|
}
|
|
|
|
// EmailEqualFold applies the EqualFold predicate on the "email" field.
|
|
func EmailEqualFold(v string) predicate.Admin {
|
|
return predicate.Admin(sql.FieldEqualFold(FieldEmail, v))
|
|
}
|
|
|
|
// EmailContainsFold applies the ContainsFold predicate on the "email" field.
|
|
func EmailContainsFold(v string) predicate.Admin {
|
|
return predicate.Admin(sql.FieldContainsFold(FieldEmail, v))
|
|
}
|
|
|
|
// AvatarEQ applies the EQ predicate on the "avatar" field.
|
|
func AvatarEQ(v string) predicate.Admin {
|
|
return predicate.Admin(sql.FieldEQ(FieldAvatar, v))
|
|
}
|
|
|
|
// AvatarNEQ applies the NEQ predicate on the "avatar" field.
|
|
func AvatarNEQ(v string) predicate.Admin {
|
|
return predicate.Admin(sql.FieldNEQ(FieldAvatar, v))
|
|
}
|
|
|
|
// AvatarIn applies the In predicate on the "avatar" field.
|
|
func AvatarIn(vs ...string) predicate.Admin {
|
|
return predicate.Admin(sql.FieldIn(FieldAvatar, vs...))
|
|
}
|
|
|
|
// AvatarNotIn applies the NotIn predicate on the "avatar" field.
|
|
func AvatarNotIn(vs ...string) predicate.Admin {
|
|
return predicate.Admin(sql.FieldNotIn(FieldAvatar, vs...))
|
|
}
|
|
|
|
// AvatarGT applies the GT predicate on the "avatar" field.
|
|
func AvatarGT(v string) predicate.Admin {
|
|
return predicate.Admin(sql.FieldGT(FieldAvatar, v))
|
|
}
|
|
|
|
// AvatarGTE applies the GTE predicate on the "avatar" field.
|
|
func AvatarGTE(v string) predicate.Admin {
|
|
return predicate.Admin(sql.FieldGTE(FieldAvatar, v))
|
|
}
|
|
|
|
// AvatarLT applies the LT predicate on the "avatar" field.
|
|
func AvatarLT(v string) predicate.Admin {
|
|
return predicate.Admin(sql.FieldLT(FieldAvatar, v))
|
|
}
|
|
|
|
// AvatarLTE applies the LTE predicate on the "avatar" field.
|
|
func AvatarLTE(v string) predicate.Admin {
|
|
return predicate.Admin(sql.FieldLTE(FieldAvatar, v))
|
|
}
|
|
|
|
// AvatarContains applies the Contains predicate on the "avatar" field.
|
|
func AvatarContains(v string) predicate.Admin {
|
|
return predicate.Admin(sql.FieldContains(FieldAvatar, v))
|
|
}
|
|
|
|
// AvatarHasPrefix applies the HasPrefix predicate on the "avatar" field.
|
|
func AvatarHasPrefix(v string) predicate.Admin {
|
|
return predicate.Admin(sql.FieldHasPrefix(FieldAvatar, v))
|
|
}
|
|
|
|
// AvatarHasSuffix applies the HasSuffix predicate on the "avatar" field.
|
|
func AvatarHasSuffix(v string) predicate.Admin {
|
|
return predicate.Admin(sql.FieldHasSuffix(FieldAvatar, v))
|
|
}
|
|
|
|
// AvatarEqualFold applies the EqualFold predicate on the "avatar" field.
|
|
func AvatarEqualFold(v string) predicate.Admin {
|
|
return predicate.Admin(sql.FieldEqualFold(FieldAvatar, v))
|
|
}
|
|
|
|
// AvatarContainsFold applies the ContainsFold predicate on the "avatar" field.
|
|
func AvatarContainsFold(v string) predicate.Admin {
|
|
return predicate.Admin(sql.FieldContainsFold(FieldAvatar, v))
|
|
}
|
|
|
|
// AccessEQ applies the EQ predicate on the "access" field.
|
|
func AccessEQ(v string) predicate.Admin {
|
|
return predicate.Admin(sql.FieldEQ(FieldAccess, v))
|
|
}
|
|
|
|
// AccessNEQ applies the NEQ predicate on the "access" field.
|
|
func AccessNEQ(v string) predicate.Admin {
|
|
return predicate.Admin(sql.FieldNEQ(FieldAccess, v))
|
|
}
|
|
|
|
// AccessIn applies the In predicate on the "access" field.
|
|
func AccessIn(vs ...string) predicate.Admin {
|
|
return predicate.Admin(sql.FieldIn(FieldAccess, vs...))
|
|
}
|
|
|
|
// AccessNotIn applies the NotIn predicate on the "access" field.
|
|
func AccessNotIn(vs ...string) predicate.Admin {
|
|
return predicate.Admin(sql.FieldNotIn(FieldAccess, vs...))
|
|
}
|
|
|
|
// AccessGT applies the GT predicate on the "access" field.
|
|
func AccessGT(v string) predicate.Admin {
|
|
return predicate.Admin(sql.FieldGT(FieldAccess, v))
|
|
}
|
|
|
|
// AccessGTE applies the GTE predicate on the "access" field.
|
|
func AccessGTE(v string) predicate.Admin {
|
|
return predicate.Admin(sql.FieldGTE(FieldAccess, v))
|
|
}
|
|
|
|
// AccessLT applies the LT predicate on the "access" field.
|
|
func AccessLT(v string) predicate.Admin {
|
|
return predicate.Admin(sql.FieldLT(FieldAccess, v))
|
|
}
|
|
|
|
// AccessLTE applies the LTE predicate on the "access" field.
|
|
func AccessLTE(v string) predicate.Admin {
|
|
return predicate.Admin(sql.FieldLTE(FieldAccess, v))
|
|
}
|
|
|
|
// AccessContains applies the Contains predicate on the "access" field.
|
|
func AccessContains(v string) predicate.Admin {
|
|
return predicate.Admin(sql.FieldContains(FieldAccess, v))
|
|
}
|
|
|
|
// AccessHasPrefix applies the HasPrefix predicate on the "access" field.
|
|
func AccessHasPrefix(v string) predicate.Admin {
|
|
return predicate.Admin(sql.FieldHasPrefix(FieldAccess, v))
|
|
}
|
|
|
|
// AccessHasSuffix applies the HasSuffix predicate on the "access" field.
|
|
func AccessHasSuffix(v string) predicate.Admin {
|
|
return predicate.Admin(sql.FieldHasSuffix(FieldAccess, v))
|
|
}
|
|
|
|
// AccessEqualFold applies the EqualFold predicate on the "access" field.
|
|
func AccessEqualFold(v string) predicate.Admin {
|
|
return predicate.Admin(sql.FieldEqualFold(FieldAccess, v))
|
|
}
|
|
|
|
// AccessContainsFold applies the ContainsFold predicate on the "access" field.
|
|
func AccessContainsFold(v string) predicate.Admin {
|
|
return predicate.Admin(sql.FieldContainsFold(FieldAccess, v))
|
|
}
|
|
|
|
// PasswordEQ applies the EQ predicate on the "password" field.
|
|
func PasswordEQ(v string) predicate.Admin {
|
|
return predicate.Admin(sql.FieldEQ(FieldPassword, v))
|
|
}
|
|
|
|
// PasswordNEQ applies the NEQ predicate on the "password" field.
|
|
func PasswordNEQ(v string) predicate.Admin {
|
|
return predicate.Admin(sql.FieldNEQ(FieldPassword, v))
|
|
}
|
|
|
|
// PasswordIn applies the In predicate on the "password" field.
|
|
func PasswordIn(vs ...string) predicate.Admin {
|
|
return predicate.Admin(sql.FieldIn(FieldPassword, vs...))
|
|
}
|
|
|
|
// PasswordNotIn applies the NotIn predicate on the "password" field.
|
|
func PasswordNotIn(vs ...string) predicate.Admin {
|
|
return predicate.Admin(sql.FieldNotIn(FieldPassword, vs...))
|
|
}
|
|
|
|
// PasswordGT applies the GT predicate on the "password" field.
|
|
func PasswordGT(v string) predicate.Admin {
|
|
return predicate.Admin(sql.FieldGT(FieldPassword, v))
|
|
}
|
|
|
|
// PasswordGTE applies the GTE predicate on the "password" field.
|
|
func PasswordGTE(v string) predicate.Admin {
|
|
return predicate.Admin(sql.FieldGTE(FieldPassword, v))
|
|
}
|
|
|
|
// PasswordLT applies the LT predicate on the "password" field.
|
|
func PasswordLT(v string) predicate.Admin {
|
|
return predicate.Admin(sql.FieldLT(FieldPassword, v))
|
|
}
|
|
|
|
// PasswordLTE applies the LTE predicate on the "password" field.
|
|
func PasswordLTE(v string) predicate.Admin {
|
|
return predicate.Admin(sql.FieldLTE(FieldPassword, v))
|
|
}
|
|
|
|
// PasswordContains applies the Contains predicate on the "password" field.
|
|
func PasswordContains(v string) predicate.Admin {
|
|
return predicate.Admin(sql.FieldContains(FieldPassword, v))
|
|
}
|
|
|
|
// PasswordHasPrefix applies the HasPrefix predicate on the "password" field.
|
|
func PasswordHasPrefix(v string) predicate.Admin {
|
|
return predicate.Admin(sql.FieldHasPrefix(FieldPassword, v))
|
|
}
|
|
|
|
// PasswordHasSuffix applies the HasSuffix predicate on the "password" field.
|
|
func PasswordHasSuffix(v string) predicate.Admin {
|
|
return predicate.Admin(sql.FieldHasSuffix(FieldPassword, v))
|
|
}
|
|
|
|
// PasswordEqualFold applies the EqualFold predicate on the "password" field.
|
|
func PasswordEqualFold(v string) predicate.Admin {
|
|
return predicate.Admin(sql.FieldEqualFold(FieldPassword, v))
|
|
}
|
|
|
|
// PasswordContainsFold applies the ContainsFold predicate on the "password" field.
|
|
func PasswordContainsFold(v string) predicate.Admin {
|
|
return predicate.Admin(sql.FieldContainsFold(FieldPassword, v))
|
|
}
|
|
|
|
// CreateTimeEQ applies the EQ predicate on the "create_time" field.
|
|
func CreateTimeEQ(v time.Time) predicate.Admin {
|
|
return predicate.Admin(sql.FieldEQ(FieldCreateTime, v))
|
|
}
|
|
|
|
// CreateTimeNEQ applies the NEQ predicate on the "create_time" field.
|
|
func CreateTimeNEQ(v time.Time) predicate.Admin {
|
|
return predicate.Admin(sql.FieldNEQ(FieldCreateTime, v))
|
|
}
|
|
|
|
// CreateTimeIn applies the In predicate on the "create_time" field.
|
|
func CreateTimeIn(vs ...time.Time) predicate.Admin {
|
|
return predicate.Admin(sql.FieldIn(FieldCreateTime, vs...))
|
|
}
|
|
|
|
// CreateTimeNotIn applies the NotIn predicate on the "create_time" field.
|
|
func CreateTimeNotIn(vs ...time.Time) predicate.Admin {
|
|
return predicate.Admin(sql.FieldNotIn(FieldCreateTime, vs...))
|
|
}
|
|
|
|
// CreateTimeGT applies the GT predicate on the "create_time" field.
|
|
func CreateTimeGT(v time.Time) predicate.Admin {
|
|
return predicate.Admin(sql.FieldGT(FieldCreateTime, v))
|
|
}
|
|
|
|
// CreateTimeGTE applies the GTE predicate on the "create_time" field.
|
|
func CreateTimeGTE(v time.Time) predicate.Admin {
|
|
return predicate.Admin(sql.FieldGTE(FieldCreateTime, v))
|
|
}
|
|
|
|
// CreateTimeLT applies the LT predicate on the "create_time" field.
|
|
func CreateTimeLT(v time.Time) predicate.Admin {
|
|
return predicate.Admin(sql.FieldLT(FieldCreateTime, v))
|
|
}
|
|
|
|
// CreateTimeLTE applies the LTE predicate on the "create_time" field.
|
|
func CreateTimeLTE(v time.Time) predicate.Admin {
|
|
return predicate.Admin(sql.FieldLTE(FieldCreateTime, v))
|
|
}
|
|
|
|
// UpdateTimeEQ applies the EQ predicate on the "update_time" field.
|
|
func UpdateTimeEQ(v time.Time) predicate.Admin {
|
|
return predicate.Admin(sql.FieldEQ(FieldUpdateTime, v))
|
|
}
|
|
|
|
// UpdateTimeNEQ applies the NEQ predicate on the "update_time" field.
|
|
func UpdateTimeNEQ(v time.Time) predicate.Admin {
|
|
return predicate.Admin(sql.FieldNEQ(FieldUpdateTime, v))
|
|
}
|
|
|
|
// UpdateTimeIn applies the In predicate on the "update_time" field.
|
|
func UpdateTimeIn(vs ...time.Time) predicate.Admin {
|
|
return predicate.Admin(sql.FieldIn(FieldUpdateTime, vs...))
|
|
}
|
|
|
|
// UpdateTimeNotIn applies the NotIn predicate on the "update_time" field.
|
|
func UpdateTimeNotIn(vs ...time.Time) predicate.Admin {
|
|
return predicate.Admin(sql.FieldNotIn(FieldUpdateTime, vs...))
|
|
}
|
|
|
|
// UpdateTimeGT applies the GT predicate on the "update_time" field.
|
|
func UpdateTimeGT(v time.Time) predicate.Admin {
|
|
return predicate.Admin(sql.FieldGT(FieldUpdateTime, v))
|
|
}
|
|
|
|
// UpdateTimeGTE applies the GTE predicate on the "update_time" field.
|
|
func UpdateTimeGTE(v time.Time) predicate.Admin {
|
|
return predicate.Admin(sql.FieldGTE(FieldUpdateTime, v))
|
|
}
|
|
|
|
// UpdateTimeLT applies the LT predicate on the "update_time" field.
|
|
func UpdateTimeLT(v time.Time) predicate.Admin {
|
|
return predicate.Admin(sql.FieldLT(FieldUpdateTime, v))
|
|
}
|
|
|
|
// UpdateTimeLTE applies the LTE predicate on the "update_time" field.
|
|
func UpdateTimeLTE(v time.Time) predicate.Admin {
|
|
return predicate.Admin(sql.FieldLTE(FieldUpdateTime, v))
|
|
}
|
|
|
|
// And groups predicates with the AND operator between them.
|
|
func And(predicates ...predicate.Admin) predicate.Admin {
|
|
return predicate.Admin(sql.AndPredicates(predicates...))
|
|
}
|
|
|
|
// Or groups predicates with the OR operator between them.
|
|
func Or(predicates ...predicate.Admin) predicate.Admin {
|
|
return predicate.Admin(sql.OrPredicates(predicates...))
|
|
}
|
|
|
|
// Not applies the not operator on the given predicate.
|
|
func Not(p predicate.Admin) predicate.Admin {
|
|
return predicate.Admin(sql.NotPredicates(p))
|
|
}
|