You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
832 lines
30 KiB
Go
832 lines
30 KiB
Go
// Code generated by ent, DO NOT EDIT.
|
|
|
|
package usersocial
|
|
|
|
import (
|
|
"time"
|
|
|
|
"entgo.io/ent/dialect/sql"
|
|
"entgo.io/ent/dialect/sql/sqlgraph"
|
|
"git.noahlan.cn/n-admin/n-admin-server/rpc/core/ent/predicate"
|
|
)
|
|
|
|
// ID filters vertices based on their ID field.
|
|
func ID(id int64) predicate.UserSocial {
|
|
return predicate.UserSocial(sql.FieldEQ(FieldID, id))
|
|
}
|
|
|
|
// IDEQ applies the EQ predicate on the ID field.
|
|
func IDEQ(id int64) predicate.UserSocial {
|
|
return predicate.UserSocial(sql.FieldEQ(FieldID, id))
|
|
}
|
|
|
|
// IDNEQ applies the NEQ predicate on the ID field.
|
|
func IDNEQ(id int64) predicate.UserSocial {
|
|
return predicate.UserSocial(sql.FieldNEQ(FieldID, id))
|
|
}
|
|
|
|
// IDIn applies the In predicate on the ID field.
|
|
func IDIn(ids ...int64) predicate.UserSocial {
|
|
return predicate.UserSocial(sql.FieldIn(FieldID, ids...))
|
|
}
|
|
|
|
// IDNotIn applies the NotIn predicate on the ID field.
|
|
func IDNotIn(ids ...int64) predicate.UserSocial {
|
|
return predicate.UserSocial(sql.FieldNotIn(FieldID, ids...))
|
|
}
|
|
|
|
// IDGT applies the GT predicate on the ID field.
|
|
func IDGT(id int64) predicate.UserSocial {
|
|
return predicate.UserSocial(sql.FieldGT(FieldID, id))
|
|
}
|
|
|
|
// IDGTE applies the GTE predicate on the ID field.
|
|
func IDGTE(id int64) predicate.UserSocial {
|
|
return predicate.UserSocial(sql.FieldGTE(FieldID, id))
|
|
}
|
|
|
|
// IDLT applies the LT predicate on the ID field.
|
|
func IDLT(id int64) predicate.UserSocial {
|
|
return predicate.UserSocial(sql.FieldLT(FieldID, id))
|
|
}
|
|
|
|
// IDLTE applies the LTE predicate on the ID field.
|
|
func IDLTE(id int64) predicate.UserSocial {
|
|
return predicate.UserSocial(sql.FieldLTE(FieldID, id))
|
|
}
|
|
|
|
// CreatedAt applies equality check predicate on the "created_at" field. It's identical to CreatedAtEQ.
|
|
func CreatedAt(v time.Time) predicate.UserSocial {
|
|
return predicate.UserSocial(sql.FieldEQ(FieldCreatedAt, v))
|
|
}
|
|
|
|
// UpdatedAt applies equality check predicate on the "updated_at" field. It's identical to UpdatedAtEQ.
|
|
func UpdatedAt(v time.Time) predicate.UserSocial {
|
|
return predicate.UserSocial(sql.FieldEQ(FieldUpdatedAt, v))
|
|
}
|
|
|
|
// UserID applies equality check predicate on the "user_id" field. It's identical to UserIDEQ.
|
|
func UserID(v int64) predicate.UserSocial {
|
|
return predicate.UserSocial(sql.FieldEQ(FieldUserID, v))
|
|
}
|
|
|
|
// Provider applies equality check predicate on the "provider" field. It's identical to ProviderEQ.
|
|
func Provider(v string) predicate.UserSocial {
|
|
return predicate.UserSocial(sql.FieldEQ(FieldProvider, v))
|
|
}
|
|
|
|
// AccessToken applies equality check predicate on the "access_token" field. It's identical to AccessTokenEQ.
|
|
func AccessToken(v string) predicate.UserSocial {
|
|
return predicate.UserSocial(sql.FieldEQ(FieldAccessToken, v))
|
|
}
|
|
|
|
// RefreshToken applies equality check predicate on the "refresh_token" field. It's identical to RefreshTokenEQ.
|
|
func RefreshToken(v string) predicate.UserSocial {
|
|
return predicate.UserSocial(sql.FieldEQ(FieldRefreshToken, v))
|
|
}
|
|
|
|
// UID applies equality check predicate on the "uid" field. It's identical to UIDEQ.
|
|
func UID(v string) predicate.UserSocial {
|
|
return predicate.UserSocial(sql.FieldEQ(FieldUID, v))
|
|
}
|
|
|
|
// OpenID applies equality check predicate on the "open_id" field. It's identical to OpenIDEQ.
|
|
func OpenID(v string) predicate.UserSocial {
|
|
return predicate.UserSocial(sql.FieldEQ(FieldOpenID, v))
|
|
}
|
|
|
|
// UnionID applies equality check predicate on the "union_id" field. It's identical to UnionIDEQ.
|
|
func UnionID(v string) predicate.UserSocial {
|
|
return predicate.UserSocial(sql.FieldEQ(FieldUnionID, v))
|
|
}
|
|
|
|
// Key applies equality check predicate on the "key" field. It's identical to KeyEQ.
|
|
func Key(v string) predicate.UserSocial {
|
|
return predicate.UserSocial(sql.FieldEQ(FieldKey, v))
|
|
}
|
|
|
|
// ExpiresIn applies equality check predicate on the "expires_in" field. It's identical to ExpiresInEQ.
|
|
func ExpiresIn(v uint64) predicate.UserSocial {
|
|
return predicate.UserSocial(sql.FieldEQ(FieldExpiresIn, v))
|
|
}
|
|
|
|
// UserProfile applies equality check predicate on the "user_profile" field. It's identical to UserProfileEQ.
|
|
func UserProfile(v string) predicate.UserSocial {
|
|
return predicate.UserSocial(sql.FieldEQ(FieldUserProfile, v))
|
|
}
|
|
|
|
// CreatedAtEQ applies the EQ predicate on the "created_at" field.
|
|
func CreatedAtEQ(v time.Time) predicate.UserSocial {
|
|
return predicate.UserSocial(sql.FieldEQ(FieldCreatedAt, v))
|
|
}
|
|
|
|
// CreatedAtNEQ applies the NEQ predicate on the "created_at" field.
|
|
func CreatedAtNEQ(v time.Time) predicate.UserSocial {
|
|
return predicate.UserSocial(sql.FieldNEQ(FieldCreatedAt, v))
|
|
}
|
|
|
|
// CreatedAtIn applies the In predicate on the "created_at" field.
|
|
func CreatedAtIn(vs ...time.Time) predicate.UserSocial {
|
|
return predicate.UserSocial(sql.FieldIn(FieldCreatedAt, vs...))
|
|
}
|
|
|
|
// CreatedAtNotIn applies the NotIn predicate on the "created_at" field.
|
|
func CreatedAtNotIn(vs ...time.Time) predicate.UserSocial {
|
|
return predicate.UserSocial(sql.FieldNotIn(FieldCreatedAt, vs...))
|
|
}
|
|
|
|
// CreatedAtGT applies the GT predicate on the "created_at" field.
|
|
func CreatedAtGT(v time.Time) predicate.UserSocial {
|
|
return predicate.UserSocial(sql.FieldGT(FieldCreatedAt, v))
|
|
}
|
|
|
|
// CreatedAtGTE applies the GTE predicate on the "created_at" field.
|
|
func CreatedAtGTE(v time.Time) predicate.UserSocial {
|
|
return predicate.UserSocial(sql.FieldGTE(FieldCreatedAt, v))
|
|
}
|
|
|
|
// CreatedAtLT applies the LT predicate on the "created_at" field.
|
|
func CreatedAtLT(v time.Time) predicate.UserSocial {
|
|
return predicate.UserSocial(sql.FieldLT(FieldCreatedAt, v))
|
|
}
|
|
|
|
// CreatedAtLTE applies the LTE predicate on the "created_at" field.
|
|
func CreatedAtLTE(v time.Time) predicate.UserSocial {
|
|
return predicate.UserSocial(sql.FieldLTE(FieldCreatedAt, v))
|
|
}
|
|
|
|
// UpdatedAtEQ applies the EQ predicate on the "updated_at" field.
|
|
func UpdatedAtEQ(v time.Time) predicate.UserSocial {
|
|
return predicate.UserSocial(sql.FieldEQ(FieldUpdatedAt, v))
|
|
}
|
|
|
|
// UpdatedAtNEQ applies the NEQ predicate on the "updated_at" field.
|
|
func UpdatedAtNEQ(v time.Time) predicate.UserSocial {
|
|
return predicate.UserSocial(sql.FieldNEQ(FieldUpdatedAt, v))
|
|
}
|
|
|
|
// UpdatedAtIn applies the In predicate on the "updated_at" field.
|
|
func UpdatedAtIn(vs ...time.Time) predicate.UserSocial {
|
|
return predicate.UserSocial(sql.FieldIn(FieldUpdatedAt, vs...))
|
|
}
|
|
|
|
// UpdatedAtNotIn applies the NotIn predicate on the "updated_at" field.
|
|
func UpdatedAtNotIn(vs ...time.Time) predicate.UserSocial {
|
|
return predicate.UserSocial(sql.FieldNotIn(FieldUpdatedAt, vs...))
|
|
}
|
|
|
|
// UpdatedAtGT applies the GT predicate on the "updated_at" field.
|
|
func UpdatedAtGT(v time.Time) predicate.UserSocial {
|
|
return predicate.UserSocial(sql.FieldGT(FieldUpdatedAt, v))
|
|
}
|
|
|
|
// UpdatedAtGTE applies the GTE predicate on the "updated_at" field.
|
|
func UpdatedAtGTE(v time.Time) predicate.UserSocial {
|
|
return predicate.UserSocial(sql.FieldGTE(FieldUpdatedAt, v))
|
|
}
|
|
|
|
// UpdatedAtLT applies the LT predicate on the "updated_at" field.
|
|
func UpdatedAtLT(v time.Time) predicate.UserSocial {
|
|
return predicate.UserSocial(sql.FieldLT(FieldUpdatedAt, v))
|
|
}
|
|
|
|
// UpdatedAtLTE applies the LTE predicate on the "updated_at" field.
|
|
func UpdatedAtLTE(v time.Time) predicate.UserSocial {
|
|
return predicate.UserSocial(sql.FieldLTE(FieldUpdatedAt, v))
|
|
}
|
|
|
|
// UserIDEQ applies the EQ predicate on the "user_id" field.
|
|
func UserIDEQ(v int64) predicate.UserSocial {
|
|
return predicate.UserSocial(sql.FieldEQ(FieldUserID, v))
|
|
}
|
|
|
|
// UserIDNEQ applies the NEQ predicate on the "user_id" field.
|
|
func UserIDNEQ(v int64) predicate.UserSocial {
|
|
return predicate.UserSocial(sql.FieldNEQ(FieldUserID, v))
|
|
}
|
|
|
|
// UserIDIn applies the In predicate on the "user_id" field.
|
|
func UserIDIn(vs ...int64) predicate.UserSocial {
|
|
return predicate.UserSocial(sql.FieldIn(FieldUserID, vs...))
|
|
}
|
|
|
|
// UserIDNotIn applies the NotIn predicate on the "user_id" field.
|
|
func UserIDNotIn(vs ...int64) predicate.UserSocial {
|
|
return predicate.UserSocial(sql.FieldNotIn(FieldUserID, vs...))
|
|
}
|
|
|
|
// ProviderEQ applies the EQ predicate on the "provider" field.
|
|
func ProviderEQ(v string) predicate.UserSocial {
|
|
return predicate.UserSocial(sql.FieldEQ(FieldProvider, v))
|
|
}
|
|
|
|
// ProviderNEQ applies the NEQ predicate on the "provider" field.
|
|
func ProviderNEQ(v string) predicate.UserSocial {
|
|
return predicate.UserSocial(sql.FieldNEQ(FieldProvider, v))
|
|
}
|
|
|
|
// ProviderIn applies the In predicate on the "provider" field.
|
|
func ProviderIn(vs ...string) predicate.UserSocial {
|
|
return predicate.UserSocial(sql.FieldIn(FieldProvider, vs...))
|
|
}
|
|
|
|
// ProviderNotIn applies the NotIn predicate on the "provider" field.
|
|
func ProviderNotIn(vs ...string) predicate.UserSocial {
|
|
return predicate.UserSocial(sql.FieldNotIn(FieldProvider, vs...))
|
|
}
|
|
|
|
// ProviderGT applies the GT predicate on the "provider" field.
|
|
func ProviderGT(v string) predicate.UserSocial {
|
|
return predicate.UserSocial(sql.FieldGT(FieldProvider, v))
|
|
}
|
|
|
|
// ProviderGTE applies the GTE predicate on the "provider" field.
|
|
func ProviderGTE(v string) predicate.UserSocial {
|
|
return predicate.UserSocial(sql.FieldGTE(FieldProvider, v))
|
|
}
|
|
|
|
// ProviderLT applies the LT predicate on the "provider" field.
|
|
func ProviderLT(v string) predicate.UserSocial {
|
|
return predicate.UserSocial(sql.FieldLT(FieldProvider, v))
|
|
}
|
|
|
|
// ProviderLTE applies the LTE predicate on the "provider" field.
|
|
func ProviderLTE(v string) predicate.UserSocial {
|
|
return predicate.UserSocial(sql.FieldLTE(FieldProvider, v))
|
|
}
|
|
|
|
// ProviderContains applies the Contains predicate on the "provider" field.
|
|
func ProviderContains(v string) predicate.UserSocial {
|
|
return predicate.UserSocial(sql.FieldContains(FieldProvider, v))
|
|
}
|
|
|
|
// ProviderHasPrefix applies the HasPrefix predicate on the "provider" field.
|
|
func ProviderHasPrefix(v string) predicate.UserSocial {
|
|
return predicate.UserSocial(sql.FieldHasPrefix(FieldProvider, v))
|
|
}
|
|
|
|
// ProviderHasSuffix applies the HasSuffix predicate on the "provider" field.
|
|
func ProviderHasSuffix(v string) predicate.UserSocial {
|
|
return predicate.UserSocial(sql.FieldHasSuffix(FieldProvider, v))
|
|
}
|
|
|
|
// ProviderEqualFold applies the EqualFold predicate on the "provider" field.
|
|
func ProviderEqualFold(v string) predicate.UserSocial {
|
|
return predicate.UserSocial(sql.FieldEqualFold(FieldProvider, v))
|
|
}
|
|
|
|
// ProviderContainsFold applies the ContainsFold predicate on the "provider" field.
|
|
func ProviderContainsFold(v string) predicate.UserSocial {
|
|
return predicate.UserSocial(sql.FieldContainsFold(FieldProvider, v))
|
|
}
|
|
|
|
// AccessTokenEQ applies the EQ predicate on the "access_token" field.
|
|
func AccessTokenEQ(v string) predicate.UserSocial {
|
|
return predicate.UserSocial(sql.FieldEQ(FieldAccessToken, v))
|
|
}
|
|
|
|
// AccessTokenNEQ applies the NEQ predicate on the "access_token" field.
|
|
func AccessTokenNEQ(v string) predicate.UserSocial {
|
|
return predicate.UserSocial(sql.FieldNEQ(FieldAccessToken, v))
|
|
}
|
|
|
|
// AccessTokenIn applies the In predicate on the "access_token" field.
|
|
func AccessTokenIn(vs ...string) predicate.UserSocial {
|
|
return predicate.UserSocial(sql.FieldIn(FieldAccessToken, vs...))
|
|
}
|
|
|
|
// AccessTokenNotIn applies the NotIn predicate on the "access_token" field.
|
|
func AccessTokenNotIn(vs ...string) predicate.UserSocial {
|
|
return predicate.UserSocial(sql.FieldNotIn(FieldAccessToken, vs...))
|
|
}
|
|
|
|
// AccessTokenGT applies the GT predicate on the "access_token" field.
|
|
func AccessTokenGT(v string) predicate.UserSocial {
|
|
return predicate.UserSocial(sql.FieldGT(FieldAccessToken, v))
|
|
}
|
|
|
|
// AccessTokenGTE applies the GTE predicate on the "access_token" field.
|
|
func AccessTokenGTE(v string) predicate.UserSocial {
|
|
return predicate.UserSocial(sql.FieldGTE(FieldAccessToken, v))
|
|
}
|
|
|
|
// AccessTokenLT applies the LT predicate on the "access_token" field.
|
|
func AccessTokenLT(v string) predicate.UserSocial {
|
|
return predicate.UserSocial(sql.FieldLT(FieldAccessToken, v))
|
|
}
|
|
|
|
// AccessTokenLTE applies the LTE predicate on the "access_token" field.
|
|
func AccessTokenLTE(v string) predicate.UserSocial {
|
|
return predicate.UserSocial(sql.FieldLTE(FieldAccessToken, v))
|
|
}
|
|
|
|
// AccessTokenContains applies the Contains predicate on the "access_token" field.
|
|
func AccessTokenContains(v string) predicate.UserSocial {
|
|
return predicate.UserSocial(sql.FieldContains(FieldAccessToken, v))
|
|
}
|
|
|
|
// AccessTokenHasPrefix applies the HasPrefix predicate on the "access_token" field.
|
|
func AccessTokenHasPrefix(v string) predicate.UserSocial {
|
|
return predicate.UserSocial(sql.FieldHasPrefix(FieldAccessToken, v))
|
|
}
|
|
|
|
// AccessTokenHasSuffix applies the HasSuffix predicate on the "access_token" field.
|
|
func AccessTokenHasSuffix(v string) predicate.UserSocial {
|
|
return predicate.UserSocial(sql.FieldHasSuffix(FieldAccessToken, v))
|
|
}
|
|
|
|
// AccessTokenEqualFold applies the EqualFold predicate on the "access_token" field.
|
|
func AccessTokenEqualFold(v string) predicate.UserSocial {
|
|
return predicate.UserSocial(sql.FieldEqualFold(FieldAccessToken, v))
|
|
}
|
|
|
|
// AccessTokenContainsFold applies the ContainsFold predicate on the "access_token" field.
|
|
func AccessTokenContainsFold(v string) predicate.UserSocial {
|
|
return predicate.UserSocial(sql.FieldContainsFold(FieldAccessToken, v))
|
|
}
|
|
|
|
// RefreshTokenEQ applies the EQ predicate on the "refresh_token" field.
|
|
func RefreshTokenEQ(v string) predicate.UserSocial {
|
|
return predicate.UserSocial(sql.FieldEQ(FieldRefreshToken, v))
|
|
}
|
|
|
|
// RefreshTokenNEQ applies the NEQ predicate on the "refresh_token" field.
|
|
func RefreshTokenNEQ(v string) predicate.UserSocial {
|
|
return predicate.UserSocial(sql.FieldNEQ(FieldRefreshToken, v))
|
|
}
|
|
|
|
// RefreshTokenIn applies the In predicate on the "refresh_token" field.
|
|
func RefreshTokenIn(vs ...string) predicate.UserSocial {
|
|
return predicate.UserSocial(sql.FieldIn(FieldRefreshToken, vs...))
|
|
}
|
|
|
|
// RefreshTokenNotIn applies the NotIn predicate on the "refresh_token" field.
|
|
func RefreshTokenNotIn(vs ...string) predicate.UserSocial {
|
|
return predicate.UserSocial(sql.FieldNotIn(FieldRefreshToken, vs...))
|
|
}
|
|
|
|
// RefreshTokenGT applies the GT predicate on the "refresh_token" field.
|
|
func RefreshTokenGT(v string) predicate.UserSocial {
|
|
return predicate.UserSocial(sql.FieldGT(FieldRefreshToken, v))
|
|
}
|
|
|
|
// RefreshTokenGTE applies the GTE predicate on the "refresh_token" field.
|
|
func RefreshTokenGTE(v string) predicate.UserSocial {
|
|
return predicate.UserSocial(sql.FieldGTE(FieldRefreshToken, v))
|
|
}
|
|
|
|
// RefreshTokenLT applies the LT predicate on the "refresh_token" field.
|
|
func RefreshTokenLT(v string) predicate.UserSocial {
|
|
return predicate.UserSocial(sql.FieldLT(FieldRefreshToken, v))
|
|
}
|
|
|
|
// RefreshTokenLTE applies the LTE predicate on the "refresh_token" field.
|
|
func RefreshTokenLTE(v string) predicate.UserSocial {
|
|
return predicate.UserSocial(sql.FieldLTE(FieldRefreshToken, v))
|
|
}
|
|
|
|
// RefreshTokenContains applies the Contains predicate on the "refresh_token" field.
|
|
func RefreshTokenContains(v string) predicate.UserSocial {
|
|
return predicate.UserSocial(sql.FieldContains(FieldRefreshToken, v))
|
|
}
|
|
|
|
// RefreshTokenHasPrefix applies the HasPrefix predicate on the "refresh_token" field.
|
|
func RefreshTokenHasPrefix(v string) predicate.UserSocial {
|
|
return predicate.UserSocial(sql.FieldHasPrefix(FieldRefreshToken, v))
|
|
}
|
|
|
|
// RefreshTokenHasSuffix applies the HasSuffix predicate on the "refresh_token" field.
|
|
func RefreshTokenHasSuffix(v string) predicate.UserSocial {
|
|
return predicate.UserSocial(sql.FieldHasSuffix(FieldRefreshToken, v))
|
|
}
|
|
|
|
// RefreshTokenEqualFold applies the EqualFold predicate on the "refresh_token" field.
|
|
func RefreshTokenEqualFold(v string) predicate.UserSocial {
|
|
return predicate.UserSocial(sql.FieldEqualFold(FieldRefreshToken, v))
|
|
}
|
|
|
|
// RefreshTokenContainsFold applies the ContainsFold predicate on the "refresh_token" field.
|
|
func RefreshTokenContainsFold(v string) predicate.UserSocial {
|
|
return predicate.UserSocial(sql.FieldContainsFold(FieldRefreshToken, v))
|
|
}
|
|
|
|
// UIDEQ applies the EQ predicate on the "uid" field.
|
|
func UIDEQ(v string) predicate.UserSocial {
|
|
return predicate.UserSocial(sql.FieldEQ(FieldUID, v))
|
|
}
|
|
|
|
// UIDNEQ applies the NEQ predicate on the "uid" field.
|
|
func UIDNEQ(v string) predicate.UserSocial {
|
|
return predicate.UserSocial(sql.FieldNEQ(FieldUID, v))
|
|
}
|
|
|
|
// UIDIn applies the In predicate on the "uid" field.
|
|
func UIDIn(vs ...string) predicate.UserSocial {
|
|
return predicate.UserSocial(sql.FieldIn(FieldUID, vs...))
|
|
}
|
|
|
|
// UIDNotIn applies the NotIn predicate on the "uid" field.
|
|
func UIDNotIn(vs ...string) predicate.UserSocial {
|
|
return predicate.UserSocial(sql.FieldNotIn(FieldUID, vs...))
|
|
}
|
|
|
|
// UIDGT applies the GT predicate on the "uid" field.
|
|
func UIDGT(v string) predicate.UserSocial {
|
|
return predicate.UserSocial(sql.FieldGT(FieldUID, v))
|
|
}
|
|
|
|
// UIDGTE applies the GTE predicate on the "uid" field.
|
|
func UIDGTE(v string) predicate.UserSocial {
|
|
return predicate.UserSocial(sql.FieldGTE(FieldUID, v))
|
|
}
|
|
|
|
// UIDLT applies the LT predicate on the "uid" field.
|
|
func UIDLT(v string) predicate.UserSocial {
|
|
return predicate.UserSocial(sql.FieldLT(FieldUID, v))
|
|
}
|
|
|
|
// UIDLTE applies the LTE predicate on the "uid" field.
|
|
func UIDLTE(v string) predicate.UserSocial {
|
|
return predicate.UserSocial(sql.FieldLTE(FieldUID, v))
|
|
}
|
|
|
|
// UIDContains applies the Contains predicate on the "uid" field.
|
|
func UIDContains(v string) predicate.UserSocial {
|
|
return predicate.UserSocial(sql.FieldContains(FieldUID, v))
|
|
}
|
|
|
|
// UIDHasPrefix applies the HasPrefix predicate on the "uid" field.
|
|
func UIDHasPrefix(v string) predicate.UserSocial {
|
|
return predicate.UserSocial(sql.FieldHasPrefix(FieldUID, v))
|
|
}
|
|
|
|
// UIDHasSuffix applies the HasSuffix predicate on the "uid" field.
|
|
func UIDHasSuffix(v string) predicate.UserSocial {
|
|
return predicate.UserSocial(sql.FieldHasSuffix(FieldUID, v))
|
|
}
|
|
|
|
// UIDEqualFold applies the EqualFold predicate on the "uid" field.
|
|
func UIDEqualFold(v string) predicate.UserSocial {
|
|
return predicate.UserSocial(sql.FieldEqualFold(FieldUID, v))
|
|
}
|
|
|
|
// UIDContainsFold applies the ContainsFold predicate on the "uid" field.
|
|
func UIDContainsFold(v string) predicate.UserSocial {
|
|
return predicate.UserSocial(sql.FieldContainsFold(FieldUID, v))
|
|
}
|
|
|
|
// OpenIDEQ applies the EQ predicate on the "open_id" field.
|
|
func OpenIDEQ(v string) predicate.UserSocial {
|
|
return predicate.UserSocial(sql.FieldEQ(FieldOpenID, v))
|
|
}
|
|
|
|
// OpenIDNEQ applies the NEQ predicate on the "open_id" field.
|
|
func OpenIDNEQ(v string) predicate.UserSocial {
|
|
return predicate.UserSocial(sql.FieldNEQ(FieldOpenID, v))
|
|
}
|
|
|
|
// OpenIDIn applies the In predicate on the "open_id" field.
|
|
func OpenIDIn(vs ...string) predicate.UserSocial {
|
|
return predicate.UserSocial(sql.FieldIn(FieldOpenID, vs...))
|
|
}
|
|
|
|
// OpenIDNotIn applies the NotIn predicate on the "open_id" field.
|
|
func OpenIDNotIn(vs ...string) predicate.UserSocial {
|
|
return predicate.UserSocial(sql.FieldNotIn(FieldOpenID, vs...))
|
|
}
|
|
|
|
// OpenIDGT applies the GT predicate on the "open_id" field.
|
|
func OpenIDGT(v string) predicate.UserSocial {
|
|
return predicate.UserSocial(sql.FieldGT(FieldOpenID, v))
|
|
}
|
|
|
|
// OpenIDGTE applies the GTE predicate on the "open_id" field.
|
|
func OpenIDGTE(v string) predicate.UserSocial {
|
|
return predicate.UserSocial(sql.FieldGTE(FieldOpenID, v))
|
|
}
|
|
|
|
// OpenIDLT applies the LT predicate on the "open_id" field.
|
|
func OpenIDLT(v string) predicate.UserSocial {
|
|
return predicate.UserSocial(sql.FieldLT(FieldOpenID, v))
|
|
}
|
|
|
|
// OpenIDLTE applies the LTE predicate on the "open_id" field.
|
|
func OpenIDLTE(v string) predicate.UserSocial {
|
|
return predicate.UserSocial(sql.FieldLTE(FieldOpenID, v))
|
|
}
|
|
|
|
// OpenIDContains applies the Contains predicate on the "open_id" field.
|
|
func OpenIDContains(v string) predicate.UserSocial {
|
|
return predicate.UserSocial(sql.FieldContains(FieldOpenID, v))
|
|
}
|
|
|
|
// OpenIDHasPrefix applies the HasPrefix predicate on the "open_id" field.
|
|
func OpenIDHasPrefix(v string) predicate.UserSocial {
|
|
return predicate.UserSocial(sql.FieldHasPrefix(FieldOpenID, v))
|
|
}
|
|
|
|
// OpenIDHasSuffix applies the HasSuffix predicate on the "open_id" field.
|
|
func OpenIDHasSuffix(v string) predicate.UserSocial {
|
|
return predicate.UserSocial(sql.FieldHasSuffix(FieldOpenID, v))
|
|
}
|
|
|
|
// OpenIDEqualFold applies the EqualFold predicate on the "open_id" field.
|
|
func OpenIDEqualFold(v string) predicate.UserSocial {
|
|
return predicate.UserSocial(sql.FieldEqualFold(FieldOpenID, v))
|
|
}
|
|
|
|
// OpenIDContainsFold applies the ContainsFold predicate on the "open_id" field.
|
|
func OpenIDContainsFold(v string) predicate.UserSocial {
|
|
return predicate.UserSocial(sql.FieldContainsFold(FieldOpenID, v))
|
|
}
|
|
|
|
// UnionIDEQ applies the EQ predicate on the "union_id" field.
|
|
func UnionIDEQ(v string) predicate.UserSocial {
|
|
return predicate.UserSocial(sql.FieldEQ(FieldUnionID, v))
|
|
}
|
|
|
|
// UnionIDNEQ applies the NEQ predicate on the "union_id" field.
|
|
func UnionIDNEQ(v string) predicate.UserSocial {
|
|
return predicate.UserSocial(sql.FieldNEQ(FieldUnionID, v))
|
|
}
|
|
|
|
// UnionIDIn applies the In predicate on the "union_id" field.
|
|
func UnionIDIn(vs ...string) predicate.UserSocial {
|
|
return predicate.UserSocial(sql.FieldIn(FieldUnionID, vs...))
|
|
}
|
|
|
|
// UnionIDNotIn applies the NotIn predicate on the "union_id" field.
|
|
func UnionIDNotIn(vs ...string) predicate.UserSocial {
|
|
return predicate.UserSocial(sql.FieldNotIn(FieldUnionID, vs...))
|
|
}
|
|
|
|
// UnionIDGT applies the GT predicate on the "union_id" field.
|
|
func UnionIDGT(v string) predicate.UserSocial {
|
|
return predicate.UserSocial(sql.FieldGT(FieldUnionID, v))
|
|
}
|
|
|
|
// UnionIDGTE applies the GTE predicate on the "union_id" field.
|
|
func UnionIDGTE(v string) predicate.UserSocial {
|
|
return predicate.UserSocial(sql.FieldGTE(FieldUnionID, v))
|
|
}
|
|
|
|
// UnionIDLT applies the LT predicate on the "union_id" field.
|
|
func UnionIDLT(v string) predicate.UserSocial {
|
|
return predicate.UserSocial(sql.FieldLT(FieldUnionID, v))
|
|
}
|
|
|
|
// UnionIDLTE applies the LTE predicate on the "union_id" field.
|
|
func UnionIDLTE(v string) predicate.UserSocial {
|
|
return predicate.UserSocial(sql.FieldLTE(FieldUnionID, v))
|
|
}
|
|
|
|
// UnionIDContains applies the Contains predicate on the "union_id" field.
|
|
func UnionIDContains(v string) predicate.UserSocial {
|
|
return predicate.UserSocial(sql.FieldContains(FieldUnionID, v))
|
|
}
|
|
|
|
// UnionIDHasPrefix applies the HasPrefix predicate on the "union_id" field.
|
|
func UnionIDHasPrefix(v string) predicate.UserSocial {
|
|
return predicate.UserSocial(sql.FieldHasPrefix(FieldUnionID, v))
|
|
}
|
|
|
|
// UnionIDHasSuffix applies the HasSuffix predicate on the "union_id" field.
|
|
func UnionIDHasSuffix(v string) predicate.UserSocial {
|
|
return predicate.UserSocial(sql.FieldHasSuffix(FieldUnionID, v))
|
|
}
|
|
|
|
// UnionIDEqualFold applies the EqualFold predicate on the "union_id" field.
|
|
func UnionIDEqualFold(v string) predicate.UserSocial {
|
|
return predicate.UserSocial(sql.FieldEqualFold(FieldUnionID, v))
|
|
}
|
|
|
|
// UnionIDContainsFold applies the ContainsFold predicate on the "union_id" field.
|
|
func UnionIDContainsFold(v string) predicate.UserSocial {
|
|
return predicate.UserSocial(sql.FieldContainsFold(FieldUnionID, v))
|
|
}
|
|
|
|
// KeyEQ applies the EQ predicate on the "key" field.
|
|
func KeyEQ(v string) predicate.UserSocial {
|
|
return predicate.UserSocial(sql.FieldEQ(FieldKey, v))
|
|
}
|
|
|
|
// KeyNEQ applies the NEQ predicate on the "key" field.
|
|
func KeyNEQ(v string) predicate.UserSocial {
|
|
return predicate.UserSocial(sql.FieldNEQ(FieldKey, v))
|
|
}
|
|
|
|
// KeyIn applies the In predicate on the "key" field.
|
|
func KeyIn(vs ...string) predicate.UserSocial {
|
|
return predicate.UserSocial(sql.FieldIn(FieldKey, vs...))
|
|
}
|
|
|
|
// KeyNotIn applies the NotIn predicate on the "key" field.
|
|
func KeyNotIn(vs ...string) predicate.UserSocial {
|
|
return predicate.UserSocial(sql.FieldNotIn(FieldKey, vs...))
|
|
}
|
|
|
|
// KeyGT applies the GT predicate on the "key" field.
|
|
func KeyGT(v string) predicate.UserSocial {
|
|
return predicate.UserSocial(sql.FieldGT(FieldKey, v))
|
|
}
|
|
|
|
// KeyGTE applies the GTE predicate on the "key" field.
|
|
func KeyGTE(v string) predicate.UserSocial {
|
|
return predicate.UserSocial(sql.FieldGTE(FieldKey, v))
|
|
}
|
|
|
|
// KeyLT applies the LT predicate on the "key" field.
|
|
func KeyLT(v string) predicate.UserSocial {
|
|
return predicate.UserSocial(sql.FieldLT(FieldKey, v))
|
|
}
|
|
|
|
// KeyLTE applies the LTE predicate on the "key" field.
|
|
func KeyLTE(v string) predicate.UserSocial {
|
|
return predicate.UserSocial(sql.FieldLTE(FieldKey, v))
|
|
}
|
|
|
|
// KeyContains applies the Contains predicate on the "key" field.
|
|
func KeyContains(v string) predicate.UserSocial {
|
|
return predicate.UserSocial(sql.FieldContains(FieldKey, v))
|
|
}
|
|
|
|
// KeyHasPrefix applies the HasPrefix predicate on the "key" field.
|
|
func KeyHasPrefix(v string) predicate.UserSocial {
|
|
return predicate.UserSocial(sql.FieldHasPrefix(FieldKey, v))
|
|
}
|
|
|
|
// KeyHasSuffix applies the HasSuffix predicate on the "key" field.
|
|
func KeyHasSuffix(v string) predicate.UserSocial {
|
|
return predicate.UserSocial(sql.FieldHasSuffix(FieldKey, v))
|
|
}
|
|
|
|
// KeyEqualFold applies the EqualFold predicate on the "key" field.
|
|
func KeyEqualFold(v string) predicate.UserSocial {
|
|
return predicate.UserSocial(sql.FieldEqualFold(FieldKey, v))
|
|
}
|
|
|
|
// KeyContainsFold applies the ContainsFold predicate on the "key" field.
|
|
func KeyContainsFold(v string) predicate.UserSocial {
|
|
return predicate.UserSocial(sql.FieldContainsFold(FieldKey, v))
|
|
}
|
|
|
|
// ExpiresInEQ applies the EQ predicate on the "expires_in" field.
|
|
func ExpiresInEQ(v uint64) predicate.UserSocial {
|
|
return predicate.UserSocial(sql.FieldEQ(FieldExpiresIn, v))
|
|
}
|
|
|
|
// ExpiresInNEQ applies the NEQ predicate on the "expires_in" field.
|
|
func ExpiresInNEQ(v uint64) predicate.UserSocial {
|
|
return predicate.UserSocial(sql.FieldNEQ(FieldExpiresIn, v))
|
|
}
|
|
|
|
// ExpiresInIn applies the In predicate on the "expires_in" field.
|
|
func ExpiresInIn(vs ...uint64) predicate.UserSocial {
|
|
return predicate.UserSocial(sql.FieldIn(FieldExpiresIn, vs...))
|
|
}
|
|
|
|
// ExpiresInNotIn applies the NotIn predicate on the "expires_in" field.
|
|
func ExpiresInNotIn(vs ...uint64) predicate.UserSocial {
|
|
return predicate.UserSocial(sql.FieldNotIn(FieldExpiresIn, vs...))
|
|
}
|
|
|
|
// ExpiresInGT applies the GT predicate on the "expires_in" field.
|
|
func ExpiresInGT(v uint64) predicate.UserSocial {
|
|
return predicate.UserSocial(sql.FieldGT(FieldExpiresIn, v))
|
|
}
|
|
|
|
// ExpiresInGTE applies the GTE predicate on the "expires_in" field.
|
|
func ExpiresInGTE(v uint64) predicate.UserSocial {
|
|
return predicate.UserSocial(sql.FieldGTE(FieldExpiresIn, v))
|
|
}
|
|
|
|
// ExpiresInLT applies the LT predicate on the "expires_in" field.
|
|
func ExpiresInLT(v uint64) predicate.UserSocial {
|
|
return predicate.UserSocial(sql.FieldLT(FieldExpiresIn, v))
|
|
}
|
|
|
|
// ExpiresInLTE applies the LTE predicate on the "expires_in" field.
|
|
func ExpiresInLTE(v uint64) predicate.UserSocial {
|
|
return predicate.UserSocial(sql.FieldLTE(FieldExpiresIn, v))
|
|
}
|
|
|
|
// UserProfileEQ applies the EQ predicate on the "user_profile" field.
|
|
func UserProfileEQ(v string) predicate.UserSocial {
|
|
return predicate.UserSocial(sql.FieldEQ(FieldUserProfile, v))
|
|
}
|
|
|
|
// UserProfileNEQ applies the NEQ predicate on the "user_profile" field.
|
|
func UserProfileNEQ(v string) predicate.UserSocial {
|
|
return predicate.UserSocial(sql.FieldNEQ(FieldUserProfile, v))
|
|
}
|
|
|
|
// UserProfileIn applies the In predicate on the "user_profile" field.
|
|
func UserProfileIn(vs ...string) predicate.UserSocial {
|
|
return predicate.UserSocial(sql.FieldIn(FieldUserProfile, vs...))
|
|
}
|
|
|
|
// UserProfileNotIn applies the NotIn predicate on the "user_profile" field.
|
|
func UserProfileNotIn(vs ...string) predicate.UserSocial {
|
|
return predicate.UserSocial(sql.FieldNotIn(FieldUserProfile, vs...))
|
|
}
|
|
|
|
// UserProfileGT applies the GT predicate on the "user_profile" field.
|
|
func UserProfileGT(v string) predicate.UserSocial {
|
|
return predicate.UserSocial(sql.FieldGT(FieldUserProfile, v))
|
|
}
|
|
|
|
// UserProfileGTE applies the GTE predicate on the "user_profile" field.
|
|
func UserProfileGTE(v string) predicate.UserSocial {
|
|
return predicate.UserSocial(sql.FieldGTE(FieldUserProfile, v))
|
|
}
|
|
|
|
// UserProfileLT applies the LT predicate on the "user_profile" field.
|
|
func UserProfileLT(v string) predicate.UserSocial {
|
|
return predicate.UserSocial(sql.FieldLT(FieldUserProfile, v))
|
|
}
|
|
|
|
// UserProfileLTE applies the LTE predicate on the "user_profile" field.
|
|
func UserProfileLTE(v string) predicate.UserSocial {
|
|
return predicate.UserSocial(sql.FieldLTE(FieldUserProfile, v))
|
|
}
|
|
|
|
// UserProfileContains applies the Contains predicate on the "user_profile" field.
|
|
func UserProfileContains(v string) predicate.UserSocial {
|
|
return predicate.UserSocial(sql.FieldContains(FieldUserProfile, v))
|
|
}
|
|
|
|
// UserProfileHasPrefix applies the HasPrefix predicate on the "user_profile" field.
|
|
func UserProfileHasPrefix(v string) predicate.UserSocial {
|
|
return predicate.UserSocial(sql.FieldHasPrefix(FieldUserProfile, v))
|
|
}
|
|
|
|
// UserProfileHasSuffix applies the HasSuffix predicate on the "user_profile" field.
|
|
func UserProfileHasSuffix(v string) predicate.UserSocial {
|
|
return predicate.UserSocial(sql.FieldHasSuffix(FieldUserProfile, v))
|
|
}
|
|
|
|
// UserProfileEqualFold applies the EqualFold predicate on the "user_profile" field.
|
|
func UserProfileEqualFold(v string) predicate.UserSocial {
|
|
return predicate.UserSocial(sql.FieldEqualFold(FieldUserProfile, v))
|
|
}
|
|
|
|
// UserProfileContainsFold applies the ContainsFold predicate on the "user_profile" field.
|
|
func UserProfileContainsFold(v string) predicate.UserSocial {
|
|
return predicate.UserSocial(sql.FieldContainsFold(FieldUserProfile, v))
|
|
}
|
|
|
|
// HasUser applies the HasEdge predicate on the "user" edge.
|
|
func HasUser() predicate.UserSocial {
|
|
return predicate.UserSocial(func(s *sql.Selector) {
|
|
step := sqlgraph.NewStep(
|
|
sqlgraph.From(Table, FieldID),
|
|
sqlgraph.Edge(sqlgraph.M2O, true, UserTable, UserColumn),
|
|
)
|
|
sqlgraph.HasNeighbors(s, step)
|
|
})
|
|
}
|
|
|
|
// HasUserWith applies the HasEdge predicate on the "user" edge with a given conditions (other predicates).
|
|
func HasUserWith(preds ...predicate.User) predicate.UserSocial {
|
|
return predicate.UserSocial(func(s *sql.Selector) {
|
|
step := newUserStep()
|
|
sqlgraph.HasNeighborsWith(s, step, func(s *sql.Selector) {
|
|
for _, p := range preds {
|
|
p(s)
|
|
}
|
|
})
|
|
})
|
|
}
|
|
|
|
// And groups predicates with the AND operator between them.
|
|
func And(predicates ...predicate.UserSocial) predicate.UserSocial {
|
|
return predicate.UserSocial(func(s *sql.Selector) {
|
|
s1 := s.Clone().SetP(nil)
|
|
for _, p := range predicates {
|
|
p(s1)
|
|
}
|
|
s.Where(s1.P())
|
|
})
|
|
}
|
|
|
|
// Or groups predicates with the OR operator between them.
|
|
func Or(predicates ...predicate.UserSocial) predicate.UserSocial {
|
|
return predicate.UserSocial(func(s *sql.Selector) {
|
|
s1 := s.Clone().SetP(nil)
|
|
for i, p := range predicates {
|
|
if i > 0 {
|
|
s1.Or()
|
|
}
|
|
p(s1)
|
|
}
|
|
s.Where(s1.P())
|
|
})
|
|
}
|
|
|
|
// Not applies the not operator on the given predicate.
|
|
func Not(p predicate.UserSocial) predicate.UserSocial {
|
|
return predicate.UserSocial(func(s *sql.Selector) {
|
|
p(s.Not())
|
|
})
|
|
}
|