Files
juwan-backend/app/users/rpc/internal/models/userfollows/where.go
T
2026-03-31 22:12:06 +08:00

206 lines
7.2 KiB
Go

// Code generated by ent, DO NOT EDIT.
package userfollows
import (
"juwan-backend/app/users/rpc/internal/models/predicate"
"time"
"entgo.io/ent/dialect/sql"
)
// ID filters vertices based on their ID field.
func ID(id int64) predicate.UserFollows {
return predicate.UserFollows(sql.FieldEQ(FieldID, id))
}
// IDEQ applies the EQ predicate on the ID field.
func IDEQ(id int64) predicate.UserFollows {
return predicate.UserFollows(sql.FieldEQ(FieldID, id))
}
// IDNEQ applies the NEQ predicate on the ID field.
func IDNEQ(id int64) predicate.UserFollows {
return predicate.UserFollows(sql.FieldNEQ(FieldID, id))
}
// IDIn applies the In predicate on the ID field.
func IDIn(ids ...int64) predicate.UserFollows {
return predicate.UserFollows(sql.FieldIn(FieldID, ids...))
}
// IDNotIn applies the NotIn predicate on the ID field.
func IDNotIn(ids ...int64) predicate.UserFollows {
return predicate.UserFollows(sql.FieldNotIn(FieldID, ids...))
}
// IDGT applies the GT predicate on the ID field.
func IDGT(id int64) predicate.UserFollows {
return predicate.UserFollows(sql.FieldGT(FieldID, id))
}
// IDGTE applies the GTE predicate on the ID field.
func IDGTE(id int64) predicate.UserFollows {
return predicate.UserFollows(sql.FieldGTE(FieldID, id))
}
// IDLT applies the LT predicate on the ID field.
func IDLT(id int64) predicate.UserFollows {
return predicate.UserFollows(sql.FieldLT(FieldID, id))
}
// IDLTE applies the LTE predicate on the ID field.
func IDLTE(id int64) predicate.UserFollows {
return predicate.UserFollows(sql.FieldLTE(FieldID, id))
}
// FollowerID applies equality check predicate on the "follower_id" field. It's identical to FollowerIDEQ.
func FollowerID(v int64) predicate.UserFollows {
return predicate.UserFollows(sql.FieldEQ(FieldFollowerID, v))
}
// FolloweeID applies equality check predicate on the "followee_id" field. It's identical to FolloweeIDEQ.
func FolloweeID(v int64) predicate.UserFollows {
return predicate.UserFollows(sql.FieldEQ(FieldFolloweeID, v))
}
// CreatedAt applies equality check predicate on the "created_at" field. It's identical to CreatedAtEQ.
func CreatedAt(v time.Time) predicate.UserFollows {
return predicate.UserFollows(sql.FieldEQ(FieldCreatedAt, v))
}
// FollowerIDEQ applies the EQ predicate on the "follower_id" field.
func FollowerIDEQ(v int64) predicate.UserFollows {
return predicate.UserFollows(sql.FieldEQ(FieldFollowerID, v))
}
// FollowerIDNEQ applies the NEQ predicate on the "follower_id" field.
func FollowerIDNEQ(v int64) predicate.UserFollows {
return predicate.UserFollows(sql.FieldNEQ(FieldFollowerID, v))
}
// FollowerIDIn applies the In predicate on the "follower_id" field.
func FollowerIDIn(vs ...int64) predicate.UserFollows {
return predicate.UserFollows(sql.FieldIn(FieldFollowerID, vs...))
}
// FollowerIDNotIn applies the NotIn predicate on the "follower_id" field.
func FollowerIDNotIn(vs ...int64) predicate.UserFollows {
return predicate.UserFollows(sql.FieldNotIn(FieldFollowerID, vs...))
}
// FollowerIDGT applies the GT predicate on the "follower_id" field.
func FollowerIDGT(v int64) predicate.UserFollows {
return predicate.UserFollows(sql.FieldGT(FieldFollowerID, v))
}
// FollowerIDGTE applies the GTE predicate on the "follower_id" field.
func FollowerIDGTE(v int64) predicate.UserFollows {
return predicate.UserFollows(sql.FieldGTE(FieldFollowerID, v))
}
// FollowerIDLT applies the LT predicate on the "follower_id" field.
func FollowerIDLT(v int64) predicate.UserFollows {
return predicate.UserFollows(sql.FieldLT(FieldFollowerID, v))
}
// FollowerIDLTE applies the LTE predicate on the "follower_id" field.
func FollowerIDLTE(v int64) predicate.UserFollows {
return predicate.UserFollows(sql.FieldLTE(FieldFollowerID, v))
}
// FolloweeIDEQ applies the EQ predicate on the "followee_id" field.
func FolloweeIDEQ(v int64) predicate.UserFollows {
return predicate.UserFollows(sql.FieldEQ(FieldFolloweeID, v))
}
// FolloweeIDNEQ applies the NEQ predicate on the "followee_id" field.
func FolloweeIDNEQ(v int64) predicate.UserFollows {
return predicate.UserFollows(sql.FieldNEQ(FieldFolloweeID, v))
}
// FolloweeIDIn applies the In predicate on the "followee_id" field.
func FolloweeIDIn(vs ...int64) predicate.UserFollows {
return predicate.UserFollows(sql.FieldIn(FieldFolloweeID, vs...))
}
// FolloweeIDNotIn applies the NotIn predicate on the "followee_id" field.
func FolloweeIDNotIn(vs ...int64) predicate.UserFollows {
return predicate.UserFollows(sql.FieldNotIn(FieldFolloweeID, vs...))
}
// FolloweeIDGT applies the GT predicate on the "followee_id" field.
func FolloweeIDGT(v int64) predicate.UserFollows {
return predicate.UserFollows(sql.FieldGT(FieldFolloweeID, v))
}
// FolloweeIDGTE applies the GTE predicate on the "followee_id" field.
func FolloweeIDGTE(v int64) predicate.UserFollows {
return predicate.UserFollows(sql.FieldGTE(FieldFolloweeID, v))
}
// FolloweeIDLT applies the LT predicate on the "followee_id" field.
func FolloweeIDLT(v int64) predicate.UserFollows {
return predicate.UserFollows(sql.FieldLT(FieldFolloweeID, v))
}
// FolloweeIDLTE applies the LTE predicate on the "followee_id" field.
func FolloweeIDLTE(v int64) predicate.UserFollows {
return predicate.UserFollows(sql.FieldLTE(FieldFolloweeID, v))
}
// CreatedAtEQ applies the EQ predicate on the "created_at" field.
func CreatedAtEQ(v time.Time) predicate.UserFollows {
return predicate.UserFollows(sql.FieldEQ(FieldCreatedAt, v))
}
// CreatedAtNEQ applies the NEQ predicate on the "created_at" field.
func CreatedAtNEQ(v time.Time) predicate.UserFollows {
return predicate.UserFollows(sql.FieldNEQ(FieldCreatedAt, v))
}
// CreatedAtIn applies the In predicate on the "created_at" field.
func CreatedAtIn(vs ...time.Time) predicate.UserFollows {
return predicate.UserFollows(sql.FieldIn(FieldCreatedAt, vs...))
}
// CreatedAtNotIn applies the NotIn predicate on the "created_at" field.
func CreatedAtNotIn(vs ...time.Time) predicate.UserFollows {
return predicate.UserFollows(sql.FieldNotIn(FieldCreatedAt, vs...))
}
// CreatedAtGT applies the GT predicate on the "created_at" field.
func CreatedAtGT(v time.Time) predicate.UserFollows {
return predicate.UserFollows(sql.FieldGT(FieldCreatedAt, v))
}
// CreatedAtGTE applies the GTE predicate on the "created_at" field.
func CreatedAtGTE(v time.Time) predicate.UserFollows {
return predicate.UserFollows(sql.FieldGTE(FieldCreatedAt, v))
}
// CreatedAtLT applies the LT predicate on the "created_at" field.
func CreatedAtLT(v time.Time) predicate.UserFollows {
return predicate.UserFollows(sql.FieldLT(FieldCreatedAt, v))
}
// CreatedAtLTE applies the LTE predicate on the "created_at" field.
func CreatedAtLTE(v time.Time) predicate.UserFollows {
return predicate.UserFollows(sql.FieldLTE(FieldCreatedAt, v))
}
// And groups predicates with the AND operator between them.
func And(predicates ...predicate.UserFollows) predicate.UserFollows {
return predicate.UserFollows(sql.AndPredicates(predicates...))
}
// Or groups predicates with the OR operator between them.
func Or(predicates ...predicate.UserFollows) predicate.UserFollows {
return predicate.UserFollows(sql.OrPredicates(predicates...))
}
// Not applies the not operator on the given predicate.
func Not(p predicate.UserFollows) predicate.UserFollows {
return predicate.UserFollows(sql.NotPredicates(p))
}