Documentation
¶
Index ¶
- Constants
- Variables
- func Account(v string) predicate.User
- func AccountContains(v string) predicate.User
- func AccountContainsFold(v string) predicate.User
- func AccountEQ(v string) predicate.User
- func AccountEqualFold(v string) predicate.User
- func AccountGT(v string) predicate.User
- func AccountGTE(v string) predicate.User
- func AccountHasPrefix(v string) predicate.User
- func AccountHasSuffix(v string) predicate.User
- func AccountIn(vs ...string) predicate.User
- func AccountLT(v string) predicate.User
- func AccountLTE(v string) predicate.User
- func AccountNEQ(v string) predicate.User
- func AccountNotIn(vs ...string) predicate.User
- func And(predicates ...predicate.User) 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 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 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 ID(id int64) predicate.User
- func IDEQ(id int64) predicate.User
- func IDGT(id int64) predicate.User
- func IDGTE(id int64) predicate.User
- func IDIn(ids ...int64) predicate.User
- func IDLT(id int64) predicate.User
- func IDLTE(id int64) predicate.User
- func IDNEQ(id int64) predicate.User
- func IDNotIn(ids ...int64) predicate.User
- func LastLoginAt(v time.Time) predicate.User
- func LastLoginAtEQ(v time.Time) predicate.User
- func LastLoginAtGT(v time.Time) predicate.User
- func LastLoginAtGTE(v time.Time) predicate.User
- func LastLoginAtIn(vs ...time.Time) predicate.User
- func LastLoginAtLT(v time.Time) predicate.User
- func LastLoginAtLTE(v time.Time) predicate.User
- func LastLoginAtNEQ(v time.Time) predicate.User
- func LastLoginAtNotIn(vs ...time.Time) 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 Note(v string) predicate.User
- func NoteContains(v string) predicate.User
- func NoteContainsFold(v string) predicate.User
- func NoteEQ(v string) predicate.User
- func NoteEqualFold(v string) predicate.User
- func NoteGT(v string) predicate.User
- func NoteGTE(v string) predicate.User
- func NoteHasPrefix(v string) predicate.User
- func NoteHasSuffix(v string) predicate.User
- func NoteIn(vs ...string) predicate.User
- func NoteLT(v string) predicate.User
- func NoteLTE(v string) predicate.User
- func NoteNEQ(v string) predicate.User
- func NoteNotIn(vs ...string) predicate.User
- func Num(v string) predicate.User
- func NumContains(v string) predicate.User
- func NumContainsFold(v string) predicate.User
- func NumEQ(v string) predicate.User
- func NumEqualFold(v string) predicate.User
- func NumGT(v string) predicate.User
- func NumGTE(v string) predicate.User
- func NumHasPrefix(v string) predicate.User
- func NumHasSuffix(v string) predicate.User
- func NumIn(vs ...string) predicate.User
- func NumLT(v string) predicate.User
- func NumLTE(v string) predicate.User
- func NumNEQ(v string) predicate.User
- func NumNotIn(vs ...string) 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 RegisterSource(v int32) predicate.User
- func RegisterSourceEQ(v int32) predicate.User
- func RegisterSourceGT(v int32) predicate.User
- func RegisterSourceGTE(v int32) predicate.User
- func RegisterSourceIn(vs ...int32) predicate.User
- func RegisterSourceLT(v int32) predicate.User
- func RegisterSourceLTE(v int32) predicate.User
- func RegisterSourceNEQ(v int32) predicate.User
- func RegisterSourceNotIn(vs ...int32) predicate.User
- func Stats(v int32) predicate.User
- func StatsEQ(v int32) predicate.User
- func StatsGT(v int32) predicate.User
- func StatsGTE(v int32) predicate.User
- func StatsIn(vs ...int32) predicate.User
- func StatsLT(v int32) predicate.User
- func StatsLTE(v int32) predicate.User
- func StatsNEQ(v int32) predicate.User
- func StatsNotIn(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 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 ValidColumn(column string) bool
- type OrderOption
- func ByAccount(opts ...sql.OrderTermOption) OrderOption
- func ByAvatar(opts ...sql.OrderTermOption) OrderOption
- func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByLastLoginAt(opts ...sql.OrderTermOption) OrderOption
- func ByNickname(opts ...sql.OrderTermOption) OrderOption
- func ByNote(opts ...sql.OrderTermOption) OrderOption
- func ByNum(opts ...sql.OrderTermOption) OrderOption
- func ByPassword(opts ...sql.OrderTermOption) OrderOption
- func ByPhone(opts ...sql.OrderTermOption) OrderOption
- func ByRegisterSource(opts ...sql.OrderTermOption) OrderOption
- func ByStats(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" // FieldNum holds the string denoting the num field in the database. FieldNum = "num" // FieldAccount holds the string denoting the account field in the database. FieldAccount = "account" // FieldPassword holds the string denoting the password field in the database. FieldPassword = "password" // FieldPhone holds the string denoting the phone field in the database. FieldPhone = "phone" // FieldNickname holds the string denoting the nickname field in the database. FieldNickname = "nickname" // FieldAvatar holds the string denoting the avatar field in the database. FieldAvatar = "avatar" // FieldStats holds the string denoting the stats field in the database. FieldStats = "stats" // FieldNote holds the string denoting the note field in the database. FieldNote = "note" // FieldRegisterSource holds the string denoting the register_source field in the database. FieldRegisterSource = "register_source" // FieldLastLoginAt holds the string denoting the last_login_at field in the database. FieldLastLoginAt = "last_login_at" // 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" // Table holds the table name of the user in the database. Table = "users" )
Variables ¶
var ( // NumValidator is a validator for the "num" field. It is called by the builders before save. NumValidator func(string) error // DefaultAccount holds the default value on creation for the "account" field. DefaultAccount string // AccountValidator is a validator for the "account" field. It is called by the builders before save. AccountValidator 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 // DefaultPhone holds the default value on creation for the "phone" field. DefaultPhone string // PhoneValidator is a validator for the "phone" field. It is called by the builders before save. PhoneValidator func(string) error // NicknameValidator is a validator for the "nickname" field. It is called by the builders before save. NicknameValidator func(string) error // 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 // DefaultStats holds the default value on creation for the "stats" field. DefaultStats int32 // DefaultNote holds the default value on creation for the "note" field. DefaultNote string // NoteValidator is a validator for the "note" field. It is called by the builders before save. NoteValidator func(string) error // DefaultCreatedAt holds the default value on creation for the "created_at" field. DefaultCreatedAt func() time.Time // DefaultUpdatedAt holds the default value on creation for the "updated_at" field. DefaultUpdatedAt func() time.Time // IDValidator is a validator for the "id" field. It is called by the builders before save. IDValidator func(int64) error )
var Columns = []string{ FieldID, FieldNum, FieldAccount, FieldPassword, FieldPhone, FieldNickname, FieldAvatar, FieldStats, FieldNote, FieldRegisterSource, FieldLastLoginAt, FieldCreatedAt, FieldUpdatedAt, }
Columns holds all SQL columns for user fields.
Functions ¶
func Account ¶
Account applies equality check predicate on the "account" field. It's identical to AccountEQ.
func AccountContains ¶
AccountContains applies the Contains predicate on the "account" field.
func AccountContainsFold ¶
AccountContainsFold applies the ContainsFold predicate on the "account" field.
func AccountEqualFold ¶
AccountEqualFold applies the EqualFold predicate on the "account" field.
func AccountGTE ¶
AccountGTE applies the GTE predicate on the "account" field.
func AccountHasPrefix ¶
AccountHasPrefix applies the HasPrefix predicate on the "account" field.
func AccountHasSuffix ¶
AccountHasSuffix applies the HasSuffix predicate on the "account" field.
func AccountLTE ¶
AccountLTE applies the LTE predicate on the "account" field.
func AccountNEQ ¶
AccountNEQ applies the NEQ predicate on the "account" field.
func AccountNotIn ¶
AccountNotIn applies the NotIn predicate on the "account" 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 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 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 LastLoginAt ¶
LastLoginAt applies equality check predicate on the "last_login_at" field. It's identical to LastLoginAtEQ.
func LastLoginAtEQ ¶
LastLoginAtEQ applies the EQ predicate on the "last_login_at" field.
func LastLoginAtGT ¶
LastLoginAtGT applies the GT predicate on the "last_login_at" field.
func LastLoginAtGTE ¶
LastLoginAtGTE applies the GTE predicate on the "last_login_at" field.
func LastLoginAtIn ¶
LastLoginAtIn applies the In predicate on the "last_login_at" field.
func LastLoginAtLT ¶
LastLoginAtLT applies the LT predicate on the "last_login_at" field.
func LastLoginAtLTE ¶
LastLoginAtLTE applies the LTE predicate on the "last_login_at" field.
func LastLoginAtNEQ ¶
LastLoginAtNEQ applies the NEQ predicate on the "last_login_at" field.
func LastLoginAtNotIn ¶
LastLoginAtNotIn applies the NotIn predicate on the "last_login_at" field.
func Nickname ¶
Nickname applies equality check predicate on the "nickname" field. It's identical to NicknameEQ.
func NicknameContains ¶
NicknameContains applies the Contains predicate on the "nickname" field.
func NicknameContainsFold ¶
NicknameContainsFold applies the ContainsFold predicate on the "nickname" field.
func NicknameEQ ¶
NicknameEQ applies the EQ predicate on the "nickname" field.
func NicknameEqualFold ¶
NicknameEqualFold applies the EqualFold predicate on the "nickname" field.
func NicknameGT ¶
NicknameGT applies the GT predicate on the "nickname" field.
func NicknameGTE ¶
NicknameGTE applies the GTE predicate on the "nickname" field.
func NicknameHasPrefix ¶
NicknameHasPrefix applies the HasPrefix predicate on the "nickname" field.
func NicknameHasSuffix ¶
NicknameHasSuffix applies the HasSuffix predicate on the "nickname" field.
func NicknameIn ¶
NicknameIn applies the In predicate on the "nickname" field.
func NicknameLT ¶
NicknameLT applies the LT predicate on the "nickname" field.
func NicknameLTE ¶
NicknameLTE applies the LTE predicate on the "nickname" field.
func NicknameNEQ ¶
NicknameNEQ applies the NEQ predicate on the "nickname" field.
func NicknameNotIn ¶
NicknameNotIn applies the NotIn predicate on the "nickname" field.
func NoteContains ¶
NoteContains applies the Contains predicate on the "note" field.
func NoteContainsFold ¶
NoteContainsFold applies the ContainsFold predicate on the "note" field.
func NoteEqualFold ¶
NoteEqualFold applies the EqualFold predicate on the "note" field.
func NoteHasPrefix ¶
NoteHasPrefix applies the HasPrefix predicate on the "note" field.
func NoteHasSuffix ¶
NoteHasSuffix applies the HasSuffix predicate on the "note" field.
func NumContains ¶
NumContains applies the Contains predicate on the "num" field.
func NumContainsFold ¶
NumContainsFold applies the ContainsFold predicate on the "num" field.
func NumEqualFold ¶
NumEqualFold applies the EqualFold predicate on the "num" field.
func NumHasPrefix ¶
NumHasPrefix applies the HasPrefix predicate on the "num" field.
func NumHasSuffix ¶
NumHasSuffix applies the HasSuffix predicate on the "num" 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 RegisterSource ¶
RegisterSource applies equality check predicate on the "register_source" field. It's identical to RegisterSourceEQ.
func RegisterSourceEQ ¶
RegisterSourceEQ applies the EQ predicate on the "register_source" field.
func RegisterSourceGT ¶
RegisterSourceGT applies the GT predicate on the "register_source" field.
func RegisterSourceGTE ¶
RegisterSourceGTE applies the GTE predicate on the "register_source" field.
func RegisterSourceIn ¶
RegisterSourceIn applies the In predicate on the "register_source" field.
func RegisterSourceLT ¶
RegisterSourceLT applies the LT predicate on the "register_source" field.
func RegisterSourceLTE ¶
RegisterSourceLTE applies the LTE predicate on the "register_source" field.
func RegisterSourceNEQ ¶
RegisterSourceNEQ applies the NEQ predicate on the "register_source" field.
func RegisterSourceNotIn ¶
RegisterSourceNotIn applies the NotIn predicate on the "register_source" field.
func Stats ¶
Stats applies equality check predicate on the "stats" field. It's identical to StatsEQ.
func StatsNotIn ¶
StatsNotIn applies the NotIn predicate on the "stats" 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 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 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 ByAccount ¶
func ByAccount(opts ...sql.OrderTermOption) OrderOption
ByAccount orders the results by the account field.
func ByAvatar ¶
func ByAvatar(opts ...sql.OrderTermOption) OrderOption
ByAvatar orders the results by the avatar field.
func ByCreatedAt ¶
func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
ByCreatedAt orders the results by the created_at field.
func ByID ¶
func ByID(opts ...sql.OrderTermOption) OrderOption
ByID orders the results by the id field.
func ByLastLoginAt ¶
func ByLastLoginAt(opts ...sql.OrderTermOption) OrderOption
ByLastLoginAt orders the results by the last_login_at field.
func ByNickname ¶
func ByNickname(opts ...sql.OrderTermOption) OrderOption
ByNickname orders the results by the nickname field.
func ByNote ¶
func ByNote(opts ...sql.OrderTermOption) OrderOption
ByNote orders the results by the note field.
func ByNum ¶
func ByNum(opts ...sql.OrderTermOption) OrderOption
ByNum orders the results by the num 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 ByRegisterSource ¶
func ByRegisterSource(opts ...sql.OrderTermOption) OrderOption
ByRegisterSource orders the results by the register_source field.
func ByStats ¶
func ByStats(opts ...sql.OrderTermOption) OrderOption
ByStats orders the results by the stats field.
func ByUpdatedAt ¶
func ByUpdatedAt(opts ...sql.OrderTermOption) OrderOption
ByUpdatedAt orders the results by the updated_at field.