Documentation ¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.User) predicate.User
- func Authority(v int32) predicate.User
- func AuthorityEQ(v int32) predicate.User
- func AuthorityGT(v int32) predicate.User
- func AuthorityGTE(v int32) predicate.User
- func AuthorityIn(vs ...int32) predicate.User
- func AuthorityLT(v int32) predicate.User
- func AuthorityLTE(v int32) predicate.User
- func AuthorityNEQ(v int32) predicate.User
- func AuthorityNotIn(vs ...int32) predicate.User
- func Avatar(v string) predicate.User
- func AvatarContains(v string) predicate.User
- func AvatarContainsFold(v string) predicate.User
- func AvatarEQ(v string) predicate.User
- func AvatarEqualFold(v string) predicate.User
- func AvatarGT(v string) predicate.User
- func AvatarGTE(v string) predicate.User
- func AvatarHasPrefix(v string) predicate.User
- func AvatarHasSuffix(v string) predicate.User
- func AvatarIn(vs ...string) predicate.User
- func AvatarLT(v string) predicate.User
- func AvatarLTE(v string) predicate.User
- func AvatarNEQ(v string) predicate.User
- func AvatarNotIn(vs ...string) predicate.User
- func Birthday(v time.Time) predicate.User
- func BirthdayEQ(v time.Time) predicate.User
- func BirthdayGT(v time.Time) predicate.User
- func BirthdayGTE(v time.Time) predicate.User
- func BirthdayIn(vs ...time.Time) predicate.User
- func BirthdayLT(v time.Time) predicate.User
- func BirthdayLTE(v time.Time) predicate.User
- func BirthdayNEQ(v time.Time) predicate.User
- func BirthdayNotIn(vs ...time.Time) predicate.User
- func CreatedAt(v time.Time) predicate.User
- func CreatedAtEQ(v time.Time) predicate.User
- func CreatedAtGT(v time.Time) predicate.User
- func CreatedAtGTE(v time.Time) predicate.User
- func CreatedAtIn(vs ...time.Time) predicate.User
- func CreatedAtIsNil() predicate.User
- func CreatedAtLT(v time.Time) predicate.User
- func CreatedAtLTE(v time.Time) predicate.User
- func CreatedAtNEQ(v time.Time) predicate.User
- func CreatedAtNotIn(vs ...time.Time) predicate.User
- func CreatedAtNotNil() predicate.User
- func DeletedAt(v time.Time) predicate.User
- func DeletedAtEQ(v time.Time) predicate.User
- func DeletedAtGT(v time.Time) predicate.User
- func DeletedAtGTE(v time.Time) predicate.User
- func DeletedAtIn(vs ...time.Time) predicate.User
- func DeletedAtIsNil() predicate.User
- func DeletedAtLT(v time.Time) predicate.User
- func DeletedAtLTE(v time.Time) predicate.User
- func DeletedAtNEQ(v time.Time) predicate.User
- func DeletedAtNotIn(vs ...time.Time) predicate.User
- func DeletedAtNotNil() predicate.User
- func Description(v string) predicate.User
- func DescriptionContains(v string) predicate.User
- func DescriptionContainsFold(v string) predicate.User
- func DescriptionEQ(v string) predicate.User
- func DescriptionEqualFold(v string) predicate.User
- func DescriptionGT(v string) predicate.User
- func DescriptionGTE(v string) predicate.User
- func DescriptionHasPrefix(v string) predicate.User
- func DescriptionHasSuffix(v string) predicate.User
- func DescriptionIn(vs ...string) predicate.User
- func DescriptionLT(v string) predicate.User
- func DescriptionLTE(v string) predicate.User
- func DescriptionNEQ(v string) predicate.User
- func DescriptionNotIn(vs ...string) predicate.User
- func Email(v string) predicate.User
- func EmailContains(v string) predicate.User
- func EmailContainsFold(v string) predicate.User
- func EmailEQ(v string) predicate.User
- func EmailEqualFold(v string) predicate.User
- func EmailGT(v string) predicate.User
- func EmailGTE(v string) predicate.User
- func EmailHasPrefix(v string) predicate.User
- func EmailHasSuffix(v string) predicate.User
- func EmailIn(vs ...string) predicate.User
- func EmailLT(v string) predicate.User
- func EmailLTE(v string) predicate.User
- func EmailNEQ(v string) predicate.User
- func EmailNotIn(vs ...string) predicate.User
- func Gender(v int32) predicate.User
- func GenderEQ(v int32) predicate.User
- func GenderGT(v int32) predicate.User
- func GenderGTE(v int32) predicate.User
- func GenderIn(vs ...int32) predicate.User
- func GenderLT(v int32) predicate.User
- func GenderLTE(v int32) predicate.User
- func GenderNEQ(v int32) predicate.User
- func GenderNotIn(vs ...int32) predicate.User
- func HasPosts() predicate.User
- func HasPostsWith(preds ...predicate.Post) predicate.User
- func HasRoles() predicate.User
- func HasRolesWith(preds ...predicate.Role) predicate.User
- func ID(id uint32) predicate.User
- func IDEQ(id uint32) predicate.User
- func IDGT(id uint32) predicate.User
- func IDGTE(id uint32) predicate.User
- func IDIn(ids ...uint32) predicate.User
- func IDLT(id uint32) predicate.User
- func IDLTE(id uint32) predicate.User
- func IDNEQ(id uint32) predicate.User
- func IDNotIn(ids ...uint32) predicate.User
- func Name(v string) predicate.User
- func NameContains(v string) predicate.User
- func NameContainsFold(v string) predicate.User
- func NameEQ(v string) predicate.User
- func NameEqualFold(v string) predicate.User
- func NameGT(v string) predicate.User
- func NameGTE(v string) predicate.User
- func NameHasPrefix(v string) predicate.User
- func NameHasSuffix(v string) predicate.User
- func NameIn(vs ...string) predicate.User
- func NameLT(v string) predicate.User
- func NameLTE(v string) predicate.User
- func NameNEQ(v string) predicate.User
- func NameNotIn(vs ...string) predicate.User
- func NickName(v string) predicate.User
- func NickNameContains(v string) predicate.User
- func NickNameContainsFold(v string) predicate.User
- func NickNameEQ(v string) predicate.User
- func NickNameEqualFold(v string) predicate.User
- func NickNameGT(v string) predicate.User
- func NickNameGTE(v string) predicate.User
- func NickNameHasPrefix(v string) predicate.User
- func NickNameHasSuffix(v string) predicate.User
- func NickNameIn(vs ...string) predicate.User
- func NickNameLT(v string) predicate.User
- func NickNameLTE(v string) predicate.User
- func NickNameNEQ(v string) predicate.User
- func NickNameNotIn(vs ...string) predicate.User
- func Not(p predicate.User) predicate.User
- func Or(predicates ...predicate.User) predicate.User
- func Password(v string) predicate.User
- func PasswordContains(v string) predicate.User
- func PasswordContainsFold(v string) predicate.User
- func PasswordEQ(v string) predicate.User
- func PasswordEqualFold(v string) predicate.User
- func PasswordGT(v string) predicate.User
- func PasswordGTE(v string) predicate.User
- func PasswordHasPrefix(v string) predicate.User
- func PasswordHasSuffix(v string) predicate.User
- func PasswordIn(vs ...string) predicate.User
- func PasswordLT(v string) predicate.User
- func PasswordLTE(v string) predicate.User
- func PasswordNEQ(v string) predicate.User
- func PasswordNotIn(vs ...string) predicate.User
- func Phone(v string) predicate.User
- func PhoneContains(v string) predicate.User
- func PhoneContainsFold(v string) predicate.User
- func PhoneEQ(v string) predicate.User
- func PhoneEqualFold(v string) predicate.User
- func PhoneGT(v string) predicate.User
- func PhoneGTE(v string) predicate.User
- func PhoneHasPrefix(v string) predicate.User
- func PhoneHasSuffix(v string) predicate.User
- func PhoneIn(vs ...string) predicate.User
- func PhoneLT(v string) predicate.User
- func PhoneLTE(v string) predicate.User
- func PhoneNEQ(v string) predicate.User
- func PhoneNotIn(vs ...string) predicate.User
- func RealName(v string) predicate.User
- func RealNameContains(v string) predicate.User
- func RealNameContainsFold(v string) predicate.User
- func RealNameEQ(v string) predicate.User
- func RealNameEqualFold(v string) predicate.User
- func RealNameGT(v string) predicate.User
- func RealNameGTE(v string) predicate.User
- func RealNameHasPrefix(v string) predicate.User
- func RealNameHasSuffix(v string) predicate.User
- func RealNameIn(vs ...string) predicate.User
- func RealNameLT(v string) predicate.User
- func RealNameLTE(v string) predicate.User
- func RealNameNEQ(v string) predicate.User
- func RealNameNotIn(vs ...string) predicate.User
- func Remark(v string) predicate.User
- func RemarkContains(v string) predicate.User
- func RemarkContainsFold(v string) predicate.User
- func RemarkEQ(v string) predicate.User
- func RemarkEqualFold(v string) predicate.User
- func RemarkGT(v string) predicate.User
- func RemarkGTE(v string) predicate.User
- func RemarkHasPrefix(v string) predicate.User
- func RemarkHasSuffix(v string) predicate.User
- func RemarkIn(vs ...string) predicate.User
- func RemarkIsNil() predicate.User
- func RemarkLT(v string) predicate.User
- func RemarkLTE(v string) predicate.User
- func RemarkNEQ(v string) predicate.User
- func RemarkNotIn(vs ...string) predicate.User
- func RemarkNotNil() predicate.User
- func Sort(v int32) predicate.User
- func SortEQ(v int32) predicate.User
- func SortGT(v int32) predicate.User
- func SortGTE(v int32) predicate.User
- func SortIn(vs ...int32) predicate.User
- func SortLT(v int32) predicate.User
- func SortLTE(v int32) predicate.User
- func SortNEQ(v int32) predicate.User
- func SortNotIn(vs ...int32) predicate.User
- func State(v int32) predicate.User
- func StateEQ(v int32) predicate.User
- func StateGT(v int32) predicate.User
- func StateGTE(v int32) predicate.User
- func StateIn(vs ...int32) predicate.User
- func StateLT(v int32) predicate.User
- func StateLTE(v int32) predicate.User
- func StateNEQ(v int32) predicate.User
- func StateNotIn(vs ...int32) predicate.User
- func UpdatedAt(v time.Time) predicate.User
- func UpdatedAtEQ(v time.Time) predicate.User
- func UpdatedAtGT(v time.Time) predicate.User
- func UpdatedAtGTE(v time.Time) predicate.User
- func UpdatedAtIn(vs ...time.Time) predicate.User
- func UpdatedAtIsNil() predicate.User
- func UpdatedAtLT(v time.Time) predicate.User
- func UpdatedAtLTE(v time.Time) predicate.User
- func UpdatedAtNEQ(v time.Time) predicate.User
- func UpdatedAtNotIn(vs ...time.Time) predicate.User
- func UpdatedAtNotNil() predicate.User
- func ValidColumn(column string) bool
- type OrderOption
- func ByAuthority(opts ...sql.OrderTermOption) OrderOption
- func ByAvatar(opts ...sql.OrderTermOption) OrderOption
- func ByBirthday(opts ...sql.OrderTermOption) OrderOption
- func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
- func ByDeletedAt(opts ...sql.OrderTermOption) OrderOption
- func ByDescription(opts ...sql.OrderTermOption) OrderOption
- func ByEmail(opts ...sql.OrderTermOption) OrderOption
- func ByGender(opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByName(opts ...sql.OrderTermOption) OrderOption
- func ByNickName(opts ...sql.OrderTermOption) OrderOption
- func ByPassword(opts ...sql.OrderTermOption) OrderOption
- func ByPhone(opts ...sql.OrderTermOption) OrderOption
- func ByPosts(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByPostsCount(opts ...sql.OrderTermOption) OrderOption
- func ByRealName(opts ...sql.OrderTermOption) OrderOption
- func ByRemark(opts ...sql.OrderTermOption) OrderOption
- func ByRoles(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByRolesCount(opts ...sql.OrderTermOption) OrderOption
- func BySort(opts ...sql.OrderTermOption) OrderOption
- func ByState(opts ...sql.OrderTermOption) OrderOption
- func ByUpdatedAt(opts ...sql.OrderTermOption) OrderOption
Constants ¶
const ( // Label holds the string label denoting the user type in the database. Label = "user" // FieldID holds the string denoting the id field in the database. FieldID = "id" // FieldCreatedAt holds the string denoting the created_at field in the database. FieldCreatedAt = "created_at" // FieldUpdatedAt holds the string denoting the updated_at field in the database. FieldUpdatedAt = "updated_at" // FieldDeletedAt holds the string denoting the deleted_at field in the database. FieldDeletedAt = "deleted_at" // FieldRemark holds the string denoting the remark field in the database. FieldRemark = "remark" // FieldSort holds the string denoting the sort field in the database. FieldSort = "sort" // FieldState holds the string denoting the state field in the database. FieldState = "state" // FieldName holds the string denoting the name field in the database. FieldName = "name" // FieldPassword holds the string denoting the password field in the database. FieldPassword = "password" // FieldNickName holds the string denoting the nick_name field in the database. FieldNickName = "nick_name" // FieldRealName holds the string denoting the real_name field in the database. FieldRealName = "real_name" // FieldPhone holds the string denoting the phone field in the database. FieldPhone = "phone" // FieldEmail holds the string denoting the email field in the database. FieldEmail = "email" // FieldBirthday holds the string denoting the birthday field in the database. FieldBirthday = "birthday" // FieldGender holds the string denoting the gender field in the database. FieldGender = "gender" // FieldAvatar holds the string denoting the avatar field in the database. FieldAvatar = "avatar" // FieldDescription holds the string denoting the description field in the database. FieldDescription = "description" // FieldAuthority holds the string denoting the authority field in the database. FieldAuthority = "authority" // EdgeRoles holds the string denoting the roles edge name in mutations. EdgeRoles = "roles" // EdgePosts holds the string denoting the posts edge name in mutations. EdgePosts = "posts" // Table holds the table name of the user in the database. Table = "users" // RolesTable is the table that holds the roles relation/edge. The primary key declared below. RolesTable = "user_roles" // RolesInverseTable is the table name for the Role entity. // It exists in this package in order to avoid circular dependency with the "role" package. RolesInverseTable = "roles" // PostsTable is the table that holds the posts relation/edge. PostsTable = "posts" // PostsInverseTable is the table name for the Post entity. // It exists in this package in order to avoid circular dependency with the "post" package. PostsInverseTable = "posts" // PostsColumn is the table column denoting the posts relation/edge. PostsColumn = "user_posts" )
Variables ¶
var ( // DefaultRemark holds the default value on creation for the "remark" field. DefaultRemark string // DefaultSort holds the default value on creation for the "sort" field. DefaultSort int32 // SortValidator is a validator for the "sort" field. It is called by the builders before save. SortValidator func(int32) error // DefaultState holds the default value on creation for the "state" field. DefaultState int32 // StateValidator is a validator for the "state" field. It is called by the builders before save. StateValidator func(int32) error // NameValidator is a validator for the "name" field. It is called by the builders before save. NameValidator func(string) error // DefaultPassword holds the default value on creation for the "password" field. DefaultPassword string // PasswordValidator is a validator for the "password" field. It is called by the builders before save. PasswordValidator func(string) error // DefaultNickName holds the default value on creation for the "nick_name" field. DefaultNickName string // NickNameValidator is a validator for the "nick_name" field. It is called by the builders before save. NickNameValidator func(string) error // DefaultRealName holds the default value on creation for the "real_name" field. DefaultRealName string // RealNameValidator is a validator for the "real_name" field. It is called by the builders before save. RealNameValidator func(string) error // PhoneValidator is a validator for the "phone" field. It is called by the builders before save. PhoneValidator func(string) error // DefaultEmail holds the default value on creation for the "email" field. DefaultEmail string // EmailValidator is a validator for the "email" field. It is called by the builders before save. EmailValidator func(string) error // DefaultBirthday holds the default value on creation for the "birthday" field. DefaultBirthday time.Time // DefaultGender holds the default value on creation for the "gender" field. DefaultGender int32 // DefaultAvatar holds the default value on creation for the "avatar" field. DefaultAvatar string // AvatarValidator is a validator for the "avatar" field. It is called by the builders before save. AvatarValidator func(string) error // DefaultDescription holds the default value on creation for the "description" field. DefaultDescription string // DescriptionValidator is a validator for the "description" field. It is called by the builders before save. DescriptionValidator func(string) error // DefaultAuthority holds the default value on creation for the "authority" field. DefaultAuthority int32 // IDValidator is a validator for the "id" field. It is called by the builders before save. IDValidator func(uint32) error )
var Columns = []string{ FieldID, FieldCreatedAt, FieldUpdatedAt, FieldDeletedAt, FieldRemark, FieldSort, FieldState, FieldName, FieldPassword, FieldNickName, FieldRealName, FieldPhone, FieldEmail, FieldBirthday, FieldGender, FieldAvatar, FieldDescription, FieldAuthority, }
Columns holds all SQL columns for user fields.
var ( // RolesPrimaryKey and RolesColumn2 are the table columns denoting the // primary key for the roles relation (M2M). RolesPrimaryKey = []string{"user_id", "role_id"} )
Functions ¶
func Authority ¶
Authority applies equality check predicate on the "authority" field. It's identical to AuthorityEQ.
func AuthorityEQ ¶
AuthorityEQ applies the EQ predicate on the "authority" field.
func AuthorityGT ¶
AuthorityGT applies the GT predicate on the "authority" field.
func AuthorityGTE ¶
AuthorityGTE applies the GTE predicate on the "authority" field.
func AuthorityIn ¶
AuthorityIn applies the In predicate on the "authority" field.
func AuthorityLT ¶
AuthorityLT applies the LT predicate on the "authority" field.
func AuthorityLTE ¶
AuthorityLTE applies the LTE predicate on the "authority" field.
func AuthorityNEQ ¶
AuthorityNEQ applies the NEQ predicate on the "authority" field.
func AuthorityNotIn ¶
AuthorityNotIn applies the NotIn predicate on the "authority" field.
func Avatar ¶
Avatar applies equality check predicate on the "avatar" field. It's identical to AvatarEQ.
func AvatarContains ¶
AvatarContains applies the Contains predicate on the "avatar" field.
func AvatarContainsFold ¶
AvatarContainsFold applies the ContainsFold predicate on the "avatar" field.
func AvatarEqualFold ¶
AvatarEqualFold applies the EqualFold predicate on the "avatar" field.
func AvatarHasPrefix ¶
AvatarHasPrefix applies the HasPrefix predicate on the "avatar" field.
func AvatarHasSuffix ¶
AvatarHasSuffix applies the HasSuffix predicate on the "avatar" field.
func AvatarNotIn ¶
AvatarNotIn applies the NotIn predicate on the "avatar" field.
func Birthday ¶
Birthday applies equality check predicate on the "birthday" field. It's identical to BirthdayEQ.
func BirthdayEQ ¶
BirthdayEQ applies the EQ predicate on the "birthday" field.
func BirthdayGT ¶
BirthdayGT applies the GT predicate on the "birthday" field.
func BirthdayGTE ¶
BirthdayGTE applies the GTE predicate on the "birthday" field.
func BirthdayIn ¶
BirthdayIn applies the In predicate on the "birthday" field.
func BirthdayLT ¶
BirthdayLT applies the LT predicate on the "birthday" field.
func BirthdayLTE ¶
BirthdayLTE applies the LTE predicate on the "birthday" field.
func BirthdayNEQ ¶
BirthdayNEQ applies the NEQ predicate on the "birthday" field.
func BirthdayNotIn ¶
BirthdayNotIn applies the NotIn predicate on the "birthday" field.
func CreatedAt ¶
CreatedAt applies equality check predicate on the "created_at" field. It's identical to CreatedAtEQ.
func CreatedAtEQ ¶
CreatedAtEQ applies the EQ predicate on the "created_at" field.
func CreatedAtGT ¶
CreatedAtGT applies the GT predicate on the "created_at" field.
func CreatedAtGTE ¶
CreatedAtGTE applies the GTE predicate on the "created_at" field.
func CreatedAtIn ¶
CreatedAtIn applies the In predicate on the "created_at" field.
func CreatedAtIsNil ¶
CreatedAtIsNil applies the IsNil predicate on the "created_at" field.
func CreatedAtLT ¶
CreatedAtLT applies the LT predicate on the "created_at" field.
func CreatedAtLTE ¶
CreatedAtLTE applies the LTE predicate on the "created_at" field.
func CreatedAtNEQ ¶
CreatedAtNEQ applies the NEQ predicate on the "created_at" field.
func CreatedAtNotIn ¶
CreatedAtNotIn applies the NotIn predicate on the "created_at" field.
func CreatedAtNotNil ¶
CreatedAtNotNil applies the NotNil predicate on the "created_at" field.
func DeletedAt ¶
DeletedAt applies equality check predicate on the "deleted_at" field. It's identical to DeletedAtEQ.
func DeletedAtEQ ¶
DeletedAtEQ applies the EQ predicate on the "deleted_at" field.
func DeletedAtGT ¶
DeletedAtGT applies the GT predicate on the "deleted_at" field.
func DeletedAtGTE ¶
DeletedAtGTE applies the GTE predicate on the "deleted_at" field.
func DeletedAtIn ¶
DeletedAtIn applies the In predicate on the "deleted_at" field.
func DeletedAtIsNil ¶
DeletedAtIsNil applies the IsNil predicate on the "deleted_at" field.
func DeletedAtLT ¶
DeletedAtLT applies the LT predicate on the "deleted_at" field.
func DeletedAtLTE ¶
DeletedAtLTE applies the LTE predicate on the "deleted_at" field.
func DeletedAtNEQ ¶
DeletedAtNEQ applies the NEQ predicate on the "deleted_at" field.
func DeletedAtNotIn ¶
DeletedAtNotIn applies the NotIn predicate on the "deleted_at" field.
func DeletedAtNotNil ¶
DeletedAtNotNil applies the NotNil predicate on the "deleted_at" field.
func Description ¶
Description applies equality check predicate on the "description" field. It's identical to DescriptionEQ.
func DescriptionContains ¶
DescriptionContains applies the Contains predicate on the "description" field.
func DescriptionContainsFold ¶
DescriptionContainsFold applies the ContainsFold predicate on the "description" field.
func DescriptionEQ ¶
DescriptionEQ applies the EQ predicate on the "description" field.
func DescriptionEqualFold ¶
DescriptionEqualFold applies the EqualFold predicate on the "description" field.
func DescriptionGT ¶
DescriptionGT applies the GT predicate on the "description" field.
func DescriptionGTE ¶
DescriptionGTE applies the GTE predicate on the "description" field.
func DescriptionHasPrefix ¶
DescriptionHasPrefix applies the HasPrefix predicate on the "description" field.
func DescriptionHasSuffix ¶
DescriptionHasSuffix applies the HasSuffix predicate on the "description" field.
func DescriptionIn ¶
DescriptionIn applies the In predicate on the "description" field.
func DescriptionLT ¶
DescriptionLT applies the LT predicate on the "description" field.
func DescriptionLTE ¶
DescriptionLTE applies the LTE predicate on the "description" field.
func DescriptionNEQ ¶
DescriptionNEQ applies the NEQ predicate on the "description" field.
func DescriptionNotIn ¶
DescriptionNotIn applies the NotIn predicate on the "description" field.
func Email ¶
Email applies equality check predicate on the "email" field. It's identical to EmailEQ.
func EmailContains ¶
EmailContains applies the Contains predicate on the "email" field.
func EmailContainsFold ¶
EmailContainsFold applies the ContainsFold predicate on the "email" field.
func EmailEqualFold ¶
EmailEqualFold applies the EqualFold predicate on the "email" field.
func EmailHasPrefix ¶
EmailHasPrefix applies the HasPrefix predicate on the "email" field.
func EmailHasSuffix ¶
EmailHasSuffix applies the HasSuffix predicate on the "email" field.
func EmailNotIn ¶
EmailNotIn applies the NotIn predicate on the "email" field.
func Gender ¶
Gender applies equality check predicate on the "gender" field. It's identical to GenderEQ.
func GenderNotIn ¶
GenderNotIn applies the NotIn predicate on the "gender" field.
func HasPostsWith ¶
HasPostsWith applies the HasEdge predicate on the "posts" edge with a given conditions (other predicates).
func HasRolesWith ¶
HasRolesWith applies the HasEdge predicate on the "roles" edge with a given conditions (other predicates).
func NameContains ¶
NameContains applies the Contains predicate on the "name" field.
func NameContainsFold ¶
NameContainsFold applies the ContainsFold predicate on the "name" field.
func NameEqualFold ¶
NameEqualFold applies the EqualFold predicate on the "name" field.
func NameHasPrefix ¶
NameHasPrefix applies the HasPrefix predicate on the "name" field.
func NameHasSuffix ¶
NameHasSuffix applies the HasSuffix predicate on the "name" field.
func NickName ¶
NickName applies equality check predicate on the "nick_name" field. It's identical to NickNameEQ.
func NickNameContains ¶
NickNameContains applies the Contains predicate on the "nick_name" field.
func NickNameContainsFold ¶
NickNameContainsFold applies the ContainsFold predicate on the "nick_name" field.
func NickNameEQ ¶
NickNameEQ applies the EQ predicate on the "nick_name" field.
func NickNameEqualFold ¶
NickNameEqualFold applies the EqualFold predicate on the "nick_name" field.
func NickNameGT ¶
NickNameGT applies the GT predicate on the "nick_name" field.
func NickNameGTE ¶
NickNameGTE applies the GTE predicate on the "nick_name" field.
func NickNameHasPrefix ¶
NickNameHasPrefix applies the HasPrefix predicate on the "nick_name" field.
func NickNameHasSuffix ¶
NickNameHasSuffix applies the HasSuffix predicate on the "nick_name" field.
func NickNameIn ¶
NickNameIn applies the In predicate on the "nick_name" field.
func NickNameLT ¶
NickNameLT applies the LT predicate on the "nick_name" field.
func NickNameLTE ¶
NickNameLTE applies the LTE predicate on the "nick_name" field.
func NickNameNEQ ¶
NickNameNEQ applies the NEQ predicate on the "nick_name" field.
func NickNameNotIn ¶
NickNameNotIn applies the NotIn predicate on the "nick_name" field.
func Password ¶
Password applies equality check predicate on the "password" field. It's identical to PasswordEQ.
func PasswordContains ¶
PasswordContains applies the Contains predicate on the "password" field.
func PasswordContainsFold ¶
PasswordContainsFold applies the ContainsFold predicate on the "password" field.
func PasswordEQ ¶
PasswordEQ applies the EQ predicate on the "password" field.
func PasswordEqualFold ¶
PasswordEqualFold applies the EqualFold predicate on the "password" field.
func PasswordGT ¶
PasswordGT applies the GT predicate on the "password" field.
func PasswordGTE ¶
PasswordGTE applies the GTE predicate on the "password" field.
func PasswordHasPrefix ¶
PasswordHasPrefix applies the HasPrefix predicate on the "password" field.
func PasswordHasSuffix ¶
PasswordHasSuffix applies the HasSuffix predicate on the "password" field.
func PasswordIn ¶
PasswordIn applies the In predicate on the "password" field.
func PasswordLT ¶
PasswordLT applies the LT predicate on the "password" field.
func PasswordLTE ¶
PasswordLTE applies the LTE predicate on the "password" field.
func PasswordNEQ ¶
PasswordNEQ applies the NEQ predicate on the "password" field.
func PasswordNotIn ¶
PasswordNotIn applies the NotIn predicate on the "password" field.
func Phone ¶
Phone applies equality check predicate on the "phone" field. It's identical to PhoneEQ.
func PhoneContains ¶
PhoneContains applies the Contains predicate on the "phone" field.
func PhoneContainsFold ¶
PhoneContainsFold applies the ContainsFold predicate on the "phone" field.
func PhoneEqualFold ¶
PhoneEqualFold applies the EqualFold predicate on the "phone" field.
func PhoneHasPrefix ¶
PhoneHasPrefix applies the HasPrefix predicate on the "phone" field.
func PhoneHasSuffix ¶
PhoneHasSuffix applies the HasSuffix predicate on the "phone" field.
func PhoneNotIn ¶
PhoneNotIn applies the NotIn predicate on the "phone" field.
func RealName ¶
RealName applies equality check predicate on the "real_name" field. It's identical to RealNameEQ.
func RealNameContains ¶
RealNameContains applies the Contains predicate on the "real_name" field.
func RealNameContainsFold ¶
RealNameContainsFold applies the ContainsFold predicate on the "real_name" field.
func RealNameEQ ¶
RealNameEQ applies the EQ predicate on the "real_name" field.
func RealNameEqualFold ¶
RealNameEqualFold applies the EqualFold predicate on the "real_name" field.
func RealNameGT ¶
RealNameGT applies the GT predicate on the "real_name" field.
func RealNameGTE ¶
RealNameGTE applies the GTE predicate on the "real_name" field.
func RealNameHasPrefix ¶
RealNameHasPrefix applies the HasPrefix predicate on the "real_name" field.
func RealNameHasSuffix ¶
RealNameHasSuffix applies the HasSuffix predicate on the "real_name" field.
func RealNameIn ¶
RealNameIn applies the In predicate on the "real_name" field.
func RealNameLT ¶
RealNameLT applies the LT predicate on the "real_name" field.
func RealNameLTE ¶
RealNameLTE applies the LTE predicate on the "real_name" field.
func RealNameNEQ ¶
RealNameNEQ applies the NEQ predicate on the "real_name" field.
func RealNameNotIn ¶
RealNameNotIn applies the NotIn predicate on the "real_name" field.
func Remark ¶
Remark applies equality check predicate on the "remark" field. It's identical to RemarkEQ.
func RemarkContains ¶
RemarkContains applies the Contains predicate on the "remark" field.
func RemarkContainsFold ¶
RemarkContainsFold applies the ContainsFold predicate on the "remark" field.
func RemarkEqualFold ¶
RemarkEqualFold applies the EqualFold predicate on the "remark" field.
func RemarkHasPrefix ¶
RemarkHasPrefix applies the HasPrefix predicate on the "remark" field.
func RemarkHasSuffix ¶
RemarkHasSuffix applies the HasSuffix predicate on the "remark" field.
func RemarkIsNil ¶
RemarkIsNil applies the IsNil predicate on the "remark" field.
func RemarkNotIn ¶
RemarkNotIn applies the NotIn predicate on the "remark" field.
func RemarkNotNil ¶
RemarkNotNil applies the NotNil predicate on the "remark" field.
func State ¶
State applies equality check predicate on the "state" field. It's identical to StateEQ.
func StateNotIn ¶
StateNotIn applies the NotIn predicate on the "state" field.
func UpdatedAt ¶
UpdatedAt applies equality check predicate on the "updated_at" field. It's identical to UpdatedAtEQ.
func UpdatedAtEQ ¶
UpdatedAtEQ applies the EQ predicate on the "updated_at" field.
func UpdatedAtGT ¶
UpdatedAtGT applies the GT predicate on the "updated_at" field.
func UpdatedAtGTE ¶
UpdatedAtGTE applies the GTE predicate on the "updated_at" field.
func UpdatedAtIn ¶
UpdatedAtIn applies the In predicate on the "updated_at" field.
func UpdatedAtIsNil ¶
UpdatedAtIsNil applies the IsNil predicate on the "updated_at" field.
func UpdatedAtLT ¶
UpdatedAtLT applies the LT predicate on the "updated_at" field.
func UpdatedAtLTE ¶
UpdatedAtLTE applies the LTE predicate on the "updated_at" field.
func UpdatedAtNEQ ¶
UpdatedAtNEQ applies the NEQ predicate on the "updated_at" field.
func UpdatedAtNotIn ¶
UpdatedAtNotIn applies the NotIn predicate on the "updated_at" field.
func UpdatedAtNotNil ¶
UpdatedAtNotNil applies the NotNil predicate on the "updated_at" field.
func ValidColumn ¶
ValidColumn reports if the column name is valid (part of the table columns).
Types ¶
type OrderOption ¶
OrderOption defines the ordering options for the User queries.
func ByAuthority ¶
func ByAuthority(opts ...sql.OrderTermOption) OrderOption
ByAuthority orders the results by the authority field.
func ByAvatar ¶
func ByAvatar(opts ...sql.OrderTermOption) OrderOption
ByAvatar orders the results by the avatar field.
func ByBirthday ¶
func ByBirthday(opts ...sql.OrderTermOption) OrderOption
ByBirthday orders the results by the birthday field.
func ByCreatedAt ¶
func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
ByCreatedAt orders the results by the created_at field.
func ByDeletedAt ¶
func ByDeletedAt(opts ...sql.OrderTermOption) OrderOption
ByDeletedAt orders the results by the deleted_at field.
func ByDescription ¶
func ByDescription(opts ...sql.OrderTermOption) OrderOption
ByDescription orders the results by the description field.
func ByEmail ¶
func ByEmail(opts ...sql.OrderTermOption) OrderOption
ByEmail orders the results by the email field.
func ByGender ¶
func ByGender(opts ...sql.OrderTermOption) OrderOption
ByGender orders the results by the gender field.
func ByID ¶
func ByID(opts ...sql.OrderTermOption) OrderOption
ByID orders the results by the id field.
func ByName ¶
func ByName(opts ...sql.OrderTermOption) OrderOption
ByName orders the results by the name field.
func ByNickName ¶
func ByNickName(opts ...sql.OrderTermOption) OrderOption
ByNickName orders the results by the nick_name field.
func ByPassword ¶
func ByPassword(opts ...sql.OrderTermOption) OrderOption
ByPassword orders the results by the password field.
func ByPhone ¶
func ByPhone(opts ...sql.OrderTermOption) OrderOption
ByPhone orders the results by the phone field.
func ByPosts ¶
func ByPosts(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
ByPosts orders the results by posts terms.
func ByPostsCount ¶
func ByPostsCount(opts ...sql.OrderTermOption) OrderOption
ByPostsCount orders the results by posts count.
func ByRealName ¶
func ByRealName(opts ...sql.OrderTermOption) OrderOption
ByRealName orders the results by the real_name field.
func ByRemark ¶
func ByRemark(opts ...sql.OrderTermOption) OrderOption
ByRemark orders the results by the remark field.
func ByRoles ¶
func ByRoles(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
ByRoles orders the results by roles terms.
func ByRolesCount ¶
func ByRolesCount(opts ...sql.OrderTermOption) OrderOption
ByRolesCount orders the results by roles count.
func BySort ¶
func BySort(opts ...sql.OrderTermOption) OrderOption
BySort orders the results by the sort field.
func ByState ¶
func ByState(opts ...sql.OrderTermOption) OrderOption
ByState orders the results by the state field.
func ByUpdatedAt ¶
func ByUpdatedAt(opts ...sql.OrderTermOption) OrderOption
ByUpdatedAt orders the results by the updated_at field.