Documentation ¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.UserPassword) predicate.UserPassword
- func CreatedAt(v time.Time) predicate.UserPassword
- func CreatedAtEQ(v time.Time) predicate.UserPassword
- func CreatedAtGT(v time.Time) predicate.UserPassword
- func CreatedAtGTE(v time.Time) predicate.UserPassword
- func CreatedAtIn(vs ...time.Time) predicate.UserPassword
- func CreatedAtLT(v time.Time) predicate.UserPassword
- func CreatedAtLTE(v time.Time) predicate.UserPassword
- func CreatedAtNEQ(v time.Time) predicate.UserPassword
- func CreatedAtNotIn(vs ...time.Time) predicate.UserPassword
- func CreatedBy(v int) predicate.UserPassword
- func CreatedByEQ(v int) predicate.UserPassword
- func CreatedByGT(v int) predicate.UserPassword
- func CreatedByGTE(v int) predicate.UserPassword
- func CreatedByIn(vs ...int) predicate.UserPassword
- func CreatedByLT(v int) predicate.UserPassword
- func CreatedByLTE(v int) predicate.UserPassword
- func CreatedByNEQ(v int) predicate.UserPassword
- func CreatedByNotIn(vs ...int) predicate.UserPassword
- func HasUser() predicate.UserPassword
- func HasUserWith(preds ...predicate.User) predicate.UserPassword
- func ID(id int) predicate.UserPassword
- func IDEQ(id int) predicate.UserPassword
- func IDGT(id int) predicate.UserPassword
- func IDGTE(id int) predicate.UserPassword
- func IDIn(ids ...int) predicate.UserPassword
- func IDLT(id int) predicate.UserPassword
- func IDLTE(id int) predicate.UserPassword
- func IDNEQ(id int) predicate.UserPassword
- func IDNotIn(ids ...int) predicate.UserPassword
- func Not(p predicate.UserPassword) predicate.UserPassword
- func Or(predicates ...predicate.UserPassword) predicate.UserPassword
- func Password(v string) predicate.UserPassword
- func PasswordContains(v string) predicate.UserPassword
- func PasswordContainsFold(v string) predicate.UserPassword
- func PasswordEQ(v string) predicate.UserPassword
- func PasswordEqualFold(v string) predicate.UserPassword
- func PasswordGT(v string) predicate.UserPassword
- func PasswordGTE(v string) predicate.UserPassword
- func PasswordHasPrefix(v string) predicate.UserPassword
- func PasswordHasSuffix(v string) predicate.UserPassword
- func PasswordIn(vs ...string) predicate.UserPassword
- func PasswordIsNil() predicate.UserPassword
- func PasswordLT(v string) predicate.UserPassword
- func PasswordLTE(v string) predicate.UserPassword
- func PasswordNEQ(v string) predicate.UserPassword
- func PasswordNotIn(vs ...string) predicate.UserPassword
- func PasswordNotNil() predicate.UserPassword
- func Salt(v string) predicate.UserPassword
- func SaltContains(v string) predicate.UserPassword
- func SaltContainsFold(v string) predicate.UserPassword
- func SaltEQ(v string) predicate.UserPassword
- func SaltEqualFold(v string) predicate.UserPassword
- func SaltGT(v string) predicate.UserPassword
- func SaltGTE(v string) predicate.UserPassword
- func SaltHasPrefix(v string) predicate.UserPassword
- func SaltHasSuffix(v string) predicate.UserPassword
- func SaltIn(vs ...string) predicate.UserPassword
- func SaltLT(v string) predicate.UserPassword
- func SaltLTE(v string) predicate.UserPassword
- func SaltNEQ(v string) predicate.UserPassword
- func SaltNotIn(vs ...string) predicate.UserPassword
- func SceneEQ(v Scene) predicate.UserPassword
- func SceneIn(vs ...Scene) predicate.UserPassword
- func SceneNEQ(v Scene) predicate.UserPassword
- func SceneNotIn(vs ...Scene) predicate.UserPassword
- func SceneValidator(s Scene) error
- func StatusEQ(v typex.SimpleStatus) predicate.UserPassword
- func StatusIn(vs ...typex.SimpleStatus) predicate.UserPassword
- func StatusIsNil() predicate.UserPassword
- func StatusNEQ(v typex.SimpleStatus) predicate.UserPassword
- func StatusNotIn(vs ...typex.SimpleStatus) predicate.UserPassword
- func StatusNotNil() predicate.UserPassword
- func StatusValidator(s typex.SimpleStatus) error
- func UpdatedAt(v time.Time) predicate.UserPassword
- func UpdatedAtEQ(v time.Time) predicate.UserPassword
- func UpdatedAtGT(v time.Time) predicate.UserPassword
- func UpdatedAtGTE(v time.Time) predicate.UserPassword
- func UpdatedAtIn(vs ...time.Time) predicate.UserPassword
- func UpdatedAtIsNil() predicate.UserPassword
- func UpdatedAtLT(v time.Time) predicate.UserPassword
- func UpdatedAtLTE(v time.Time) predicate.UserPassword
- func UpdatedAtNEQ(v time.Time) predicate.UserPassword
- func UpdatedAtNotIn(vs ...time.Time) predicate.UserPassword
- func UpdatedAtNotNil() predicate.UserPassword
- func UpdatedBy(v int) predicate.UserPassword
- func UpdatedByEQ(v int) predicate.UserPassword
- func UpdatedByGT(v int) predicate.UserPassword
- func UpdatedByGTE(v int) predicate.UserPassword
- func UpdatedByIn(vs ...int) predicate.UserPassword
- func UpdatedByIsNil() predicate.UserPassword
- func UpdatedByLT(v int) predicate.UserPassword
- func UpdatedByLTE(v int) predicate.UserPassword
- func UpdatedByNEQ(v int) predicate.UserPassword
- func UpdatedByNotIn(vs ...int) predicate.UserPassword
- func UpdatedByNotNil() predicate.UserPassword
- func UserID(v int) predicate.UserPassword
- func UserIDEQ(v int) predicate.UserPassword
- func UserIDIn(vs ...int) predicate.UserPassword
- func UserIDIsNil() predicate.UserPassword
- func UserIDNEQ(v int) predicate.UserPassword
- func UserIDNotIn(vs ...int) predicate.UserPassword
- func UserIDNotNil() predicate.UserPassword
- func ValidColumn(column string) bool
- type OrderOption
- func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
- func ByCreatedBy(opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByPassword(opts ...sql.OrderTermOption) OrderOption
- func BySalt(opts ...sql.OrderTermOption) OrderOption
- func ByScene(opts ...sql.OrderTermOption) OrderOption
- func ByStatus(opts ...sql.OrderTermOption) OrderOption
- func ByUpdatedAt(opts ...sql.OrderTermOption) OrderOption
- func ByUpdatedBy(opts ...sql.OrderTermOption) OrderOption
- func ByUserField(field string, opts ...sql.OrderTermOption) OrderOption
- func ByUserID(opts ...sql.OrderTermOption) OrderOption
- type Scene
Constants ¶
const ( // Label holds the string label denoting the userpassword type in the database. Label = "user_password" // FieldID holds the string denoting the id field in the database. FieldID = "id" // FieldCreatedBy holds the string denoting the created_by field in the database. FieldCreatedBy = "created_by" // FieldCreatedAt holds the string denoting the created_at field in the database. FieldCreatedAt = "created_at" // FieldUpdatedBy holds the string denoting the updated_by field in the database. FieldUpdatedBy = "updated_by" // FieldUpdatedAt holds the string denoting the updated_at field in the database. FieldUpdatedAt = "updated_at" // FieldUserID holds the string denoting the user_id field in the database. FieldUserID = "user_id" // FieldScene holds the string denoting the scene field in the database. FieldScene = "scene" // FieldPassword holds the string denoting the password field in the database. FieldPassword = "password" // FieldSalt holds the string denoting the salt field in the database. FieldSalt = "salt" // FieldStatus holds the string denoting the status field in the database. FieldStatus = "status" // EdgeUser holds the string denoting the user edge name in mutations. EdgeUser = "user" // Table holds the table name of the userpassword in the database. Table = "user_password" // UserTable is the table that holds the user relation/edge. UserTable = "user_password" // UserInverseTable is the table name for the User entity. // It exists in this package in order to avoid circular dependency with the "user" package. UserInverseTable = "user" // UserColumn is the table column denoting the user relation/edge. UserColumn = "user_id" )
const DefaultStatus typex.SimpleStatus = "active"
Variables ¶
var ( Hooks [2]ent.Hook // DefaultCreatedAt holds the default value on creation for the "created_at" field. DefaultCreatedAt func() time.Time // SaltValidator is a validator for the "salt" field. It is called by the builders before save. SaltValidator func(string) error )
Note that the variables below are initialized by the runtime package on the initialization of the application. Therefore, it should be imported in the main as follows:
import _ "github.com/woocoos/knockout/ent/runtime"
var Columns = []string{ FieldID, FieldCreatedBy, FieldCreatedAt, FieldUpdatedBy, FieldUpdatedAt, FieldUserID, FieldScene, FieldPassword, FieldSalt, FieldStatus, }
Columns holds all SQL columns for userpassword fields.
Functions ¶
func And ¶
func And(predicates ...predicate.UserPassword) predicate.UserPassword
And groups predicates with the AND operator between them.
func CreatedAt ¶
func CreatedAt(v time.Time) predicate.UserPassword
CreatedAt applies equality check predicate on the "created_at" field. It's identical to CreatedAtEQ.
func CreatedAtEQ ¶
func CreatedAtEQ(v time.Time) predicate.UserPassword
CreatedAtEQ applies the EQ predicate on the "created_at" field.
func CreatedAtGT ¶
func CreatedAtGT(v time.Time) predicate.UserPassword
CreatedAtGT applies the GT predicate on the "created_at" field.
func CreatedAtGTE ¶
func CreatedAtGTE(v time.Time) predicate.UserPassword
CreatedAtGTE applies the GTE predicate on the "created_at" field.
func CreatedAtIn ¶
func CreatedAtIn(vs ...time.Time) predicate.UserPassword
CreatedAtIn applies the In predicate on the "created_at" field.
func CreatedAtLT ¶
func CreatedAtLT(v time.Time) predicate.UserPassword
CreatedAtLT applies the LT predicate on the "created_at" field.
func CreatedAtLTE ¶
func CreatedAtLTE(v time.Time) predicate.UserPassword
CreatedAtLTE applies the LTE predicate on the "created_at" field.
func CreatedAtNEQ ¶
func CreatedAtNEQ(v time.Time) predicate.UserPassword
CreatedAtNEQ applies the NEQ predicate on the "created_at" field.
func CreatedAtNotIn ¶
func CreatedAtNotIn(vs ...time.Time) predicate.UserPassword
CreatedAtNotIn applies the NotIn predicate on the "created_at" field.
func CreatedBy ¶
func CreatedBy(v int) predicate.UserPassword
CreatedBy applies equality check predicate on the "created_by" field. It's identical to CreatedByEQ.
func CreatedByEQ ¶
func CreatedByEQ(v int) predicate.UserPassword
CreatedByEQ applies the EQ predicate on the "created_by" field.
func CreatedByGT ¶
func CreatedByGT(v int) predicate.UserPassword
CreatedByGT applies the GT predicate on the "created_by" field.
func CreatedByGTE ¶
func CreatedByGTE(v int) predicate.UserPassword
CreatedByGTE applies the GTE predicate on the "created_by" field.
func CreatedByIn ¶
func CreatedByIn(vs ...int) predicate.UserPassword
CreatedByIn applies the In predicate on the "created_by" field.
func CreatedByLT ¶
func CreatedByLT(v int) predicate.UserPassword
CreatedByLT applies the LT predicate on the "created_by" field.
func CreatedByLTE ¶
func CreatedByLTE(v int) predicate.UserPassword
CreatedByLTE applies the LTE predicate on the "created_by" field.
func CreatedByNEQ ¶
func CreatedByNEQ(v int) predicate.UserPassword
CreatedByNEQ applies the NEQ predicate on the "created_by" field.
func CreatedByNotIn ¶
func CreatedByNotIn(vs ...int) predicate.UserPassword
CreatedByNotIn applies the NotIn predicate on the "created_by" field.
func HasUser ¶
func HasUser() predicate.UserPassword
HasUser applies the HasEdge predicate on the "user" edge.
func HasUserWith ¶
func HasUserWith(preds ...predicate.User) predicate.UserPassword
HasUserWith applies the HasEdge predicate on the "user" edge with a given conditions (other predicates).
func IDGTE ¶
func IDGTE(id int) predicate.UserPassword
IDGTE applies the GTE predicate on the ID field.
func IDIn ¶
func IDIn(ids ...int) predicate.UserPassword
IDIn applies the In predicate on the ID field.
func IDLTE ¶
func IDLTE(id int) predicate.UserPassword
IDLTE applies the LTE predicate on the ID field.
func IDNEQ ¶
func IDNEQ(id int) predicate.UserPassword
IDNEQ applies the NEQ predicate on the ID field.
func IDNotIn ¶
func IDNotIn(ids ...int) predicate.UserPassword
IDNotIn applies the NotIn predicate on the ID field.
func Not ¶
func Not(p predicate.UserPassword) predicate.UserPassword
Not applies the not operator on the given predicate.
func Or ¶
func Or(predicates ...predicate.UserPassword) predicate.UserPassword
Or groups predicates with the OR operator between them.
func Password ¶
func Password(v string) predicate.UserPassword
Password applies equality check predicate on the "password" field. It's identical to PasswordEQ.
func PasswordContains ¶
func PasswordContains(v string) predicate.UserPassword
PasswordContains applies the Contains predicate on the "password" field.
func PasswordContainsFold ¶
func PasswordContainsFold(v string) predicate.UserPassword
PasswordContainsFold applies the ContainsFold predicate on the "password" field.
func PasswordEQ ¶
func PasswordEQ(v string) predicate.UserPassword
PasswordEQ applies the EQ predicate on the "password" field.
func PasswordEqualFold ¶
func PasswordEqualFold(v string) predicate.UserPassword
PasswordEqualFold applies the EqualFold predicate on the "password" field.
func PasswordGT ¶
func PasswordGT(v string) predicate.UserPassword
PasswordGT applies the GT predicate on the "password" field.
func PasswordGTE ¶
func PasswordGTE(v string) predicate.UserPassword
PasswordGTE applies the GTE predicate on the "password" field.
func PasswordHasPrefix ¶
func PasswordHasPrefix(v string) predicate.UserPassword
PasswordHasPrefix applies the HasPrefix predicate on the "password" field.
func PasswordHasSuffix ¶
func PasswordHasSuffix(v string) predicate.UserPassword
PasswordHasSuffix applies the HasSuffix predicate on the "password" field.
func PasswordIn ¶
func PasswordIn(vs ...string) predicate.UserPassword
PasswordIn applies the In predicate on the "password" field.
func PasswordIsNil ¶
func PasswordIsNil() predicate.UserPassword
PasswordIsNil applies the IsNil predicate on the "password" field.
func PasswordLT ¶
func PasswordLT(v string) predicate.UserPassword
PasswordLT applies the LT predicate on the "password" field.
func PasswordLTE ¶
func PasswordLTE(v string) predicate.UserPassword
PasswordLTE applies the LTE predicate on the "password" field.
func PasswordNEQ ¶
func PasswordNEQ(v string) predicate.UserPassword
PasswordNEQ applies the NEQ predicate on the "password" field.
func PasswordNotIn ¶
func PasswordNotIn(vs ...string) predicate.UserPassword
PasswordNotIn applies the NotIn predicate on the "password" field.
func PasswordNotNil ¶
func PasswordNotNil() predicate.UserPassword
PasswordNotNil applies the NotNil predicate on the "password" field.
func Salt ¶
func Salt(v string) predicate.UserPassword
Salt applies equality check predicate on the "salt" field. It's identical to SaltEQ.
func SaltContains ¶
func SaltContains(v string) predicate.UserPassword
SaltContains applies the Contains predicate on the "salt" field.
func SaltContainsFold ¶
func SaltContainsFold(v string) predicate.UserPassword
SaltContainsFold applies the ContainsFold predicate on the "salt" field.
func SaltEQ ¶
func SaltEQ(v string) predicate.UserPassword
SaltEQ applies the EQ predicate on the "salt" field.
func SaltEqualFold ¶
func SaltEqualFold(v string) predicate.UserPassword
SaltEqualFold applies the EqualFold predicate on the "salt" field.
func SaltGT ¶
func SaltGT(v string) predicate.UserPassword
SaltGT applies the GT predicate on the "salt" field.
func SaltGTE ¶
func SaltGTE(v string) predicate.UserPassword
SaltGTE applies the GTE predicate on the "salt" field.
func SaltHasPrefix ¶
func SaltHasPrefix(v string) predicate.UserPassword
SaltHasPrefix applies the HasPrefix predicate on the "salt" field.
func SaltHasSuffix ¶
func SaltHasSuffix(v string) predicate.UserPassword
SaltHasSuffix applies the HasSuffix predicate on the "salt" field.
func SaltIn ¶
func SaltIn(vs ...string) predicate.UserPassword
SaltIn applies the In predicate on the "salt" field.
func SaltLT ¶
func SaltLT(v string) predicate.UserPassword
SaltLT applies the LT predicate on the "salt" field.
func SaltLTE ¶
func SaltLTE(v string) predicate.UserPassword
SaltLTE applies the LTE predicate on the "salt" field.
func SaltNEQ ¶
func SaltNEQ(v string) predicate.UserPassword
SaltNEQ applies the NEQ predicate on the "salt" field.
func SaltNotIn ¶
func SaltNotIn(vs ...string) predicate.UserPassword
SaltNotIn applies the NotIn predicate on the "salt" field.
func SceneEQ ¶
func SceneEQ(v Scene) predicate.UserPassword
SceneEQ applies the EQ predicate on the "scene" field.
func SceneIn ¶
func SceneIn(vs ...Scene) predicate.UserPassword
SceneIn applies the In predicate on the "scene" field.
func SceneNEQ ¶
func SceneNEQ(v Scene) predicate.UserPassword
SceneNEQ applies the NEQ predicate on the "scene" field.
func SceneNotIn ¶
func SceneNotIn(vs ...Scene) predicate.UserPassword
SceneNotIn applies the NotIn predicate on the "scene" field.
func SceneValidator ¶
SceneValidator is a validator for the "scene" field enum values. It is called by the builders before save.
func StatusEQ ¶
func StatusEQ(v typex.SimpleStatus) predicate.UserPassword
StatusEQ applies the EQ predicate on the "status" field.
func StatusIn ¶
func StatusIn(vs ...typex.SimpleStatus) predicate.UserPassword
StatusIn applies the In predicate on the "status" field.
func StatusIsNil ¶
func StatusIsNil() predicate.UserPassword
StatusIsNil applies the IsNil predicate on the "status" field.
func StatusNEQ ¶
func StatusNEQ(v typex.SimpleStatus) predicate.UserPassword
StatusNEQ applies the NEQ predicate on the "status" field.
func StatusNotIn ¶
func StatusNotIn(vs ...typex.SimpleStatus) predicate.UserPassword
StatusNotIn applies the NotIn predicate on the "status" field.
func StatusNotNil ¶
func StatusNotNil() predicate.UserPassword
StatusNotNil applies the NotNil predicate on the "status" field.
func StatusValidator ¶
func StatusValidator(s typex.SimpleStatus) error
StatusValidator is a validator for the "status" field enum values. It is called by the builders before save.
func UpdatedAt ¶
func UpdatedAt(v time.Time) predicate.UserPassword
UpdatedAt applies equality check predicate on the "updated_at" field. It's identical to UpdatedAtEQ.
func UpdatedAtEQ ¶
func UpdatedAtEQ(v time.Time) predicate.UserPassword
UpdatedAtEQ applies the EQ predicate on the "updated_at" field.
func UpdatedAtGT ¶
func UpdatedAtGT(v time.Time) predicate.UserPassword
UpdatedAtGT applies the GT predicate on the "updated_at" field.
func UpdatedAtGTE ¶
func UpdatedAtGTE(v time.Time) predicate.UserPassword
UpdatedAtGTE applies the GTE predicate on the "updated_at" field.
func UpdatedAtIn ¶
func UpdatedAtIn(vs ...time.Time) predicate.UserPassword
UpdatedAtIn applies the In predicate on the "updated_at" field.
func UpdatedAtIsNil ¶
func UpdatedAtIsNil() predicate.UserPassword
UpdatedAtIsNil applies the IsNil predicate on the "updated_at" field.
func UpdatedAtLT ¶
func UpdatedAtLT(v time.Time) predicate.UserPassword
UpdatedAtLT applies the LT predicate on the "updated_at" field.
func UpdatedAtLTE ¶
func UpdatedAtLTE(v time.Time) predicate.UserPassword
UpdatedAtLTE applies the LTE predicate on the "updated_at" field.
func UpdatedAtNEQ ¶
func UpdatedAtNEQ(v time.Time) predicate.UserPassword
UpdatedAtNEQ applies the NEQ predicate on the "updated_at" field.
func UpdatedAtNotIn ¶
func UpdatedAtNotIn(vs ...time.Time) predicate.UserPassword
UpdatedAtNotIn applies the NotIn predicate on the "updated_at" field.
func UpdatedAtNotNil ¶
func UpdatedAtNotNil() predicate.UserPassword
UpdatedAtNotNil applies the NotNil predicate on the "updated_at" field.
func UpdatedBy ¶
func UpdatedBy(v int) predicate.UserPassword
UpdatedBy applies equality check predicate on the "updated_by" field. It's identical to UpdatedByEQ.
func UpdatedByEQ ¶
func UpdatedByEQ(v int) predicate.UserPassword
UpdatedByEQ applies the EQ predicate on the "updated_by" field.
func UpdatedByGT ¶
func UpdatedByGT(v int) predicate.UserPassword
UpdatedByGT applies the GT predicate on the "updated_by" field.
func UpdatedByGTE ¶
func UpdatedByGTE(v int) predicate.UserPassword
UpdatedByGTE applies the GTE predicate on the "updated_by" field.
func UpdatedByIn ¶
func UpdatedByIn(vs ...int) predicate.UserPassword
UpdatedByIn applies the In predicate on the "updated_by" field.
func UpdatedByIsNil ¶
func UpdatedByIsNil() predicate.UserPassword
UpdatedByIsNil applies the IsNil predicate on the "updated_by" field.
func UpdatedByLT ¶
func UpdatedByLT(v int) predicate.UserPassword
UpdatedByLT applies the LT predicate on the "updated_by" field.
func UpdatedByLTE ¶
func UpdatedByLTE(v int) predicate.UserPassword
UpdatedByLTE applies the LTE predicate on the "updated_by" field.
func UpdatedByNEQ ¶
func UpdatedByNEQ(v int) predicate.UserPassword
UpdatedByNEQ applies the NEQ predicate on the "updated_by" field.
func UpdatedByNotIn ¶
func UpdatedByNotIn(vs ...int) predicate.UserPassword
UpdatedByNotIn applies the NotIn predicate on the "updated_by" field.
func UpdatedByNotNil ¶
func UpdatedByNotNil() predicate.UserPassword
UpdatedByNotNil applies the NotNil predicate on the "updated_by" field.
func UserID ¶
func UserID(v int) predicate.UserPassword
UserID applies equality check predicate on the "user_id" field. It's identical to UserIDEQ.
func UserIDEQ ¶
func UserIDEQ(v int) predicate.UserPassword
UserIDEQ applies the EQ predicate on the "user_id" field.
func UserIDIn ¶
func UserIDIn(vs ...int) predicate.UserPassword
UserIDIn applies the In predicate on the "user_id" field.
func UserIDIsNil ¶
func UserIDIsNil() predicate.UserPassword
UserIDIsNil applies the IsNil predicate on the "user_id" field.
func UserIDNEQ ¶
func UserIDNEQ(v int) predicate.UserPassword
UserIDNEQ applies the NEQ predicate on the "user_id" field.
func UserIDNotIn ¶
func UserIDNotIn(vs ...int) predicate.UserPassword
UserIDNotIn applies the NotIn predicate on the "user_id" field.
func UserIDNotNil ¶
func UserIDNotNil() predicate.UserPassword
UserIDNotNil applies the NotNil predicate on the "user_id" 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 UserPassword queries.
func ByCreatedAt ¶
func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
ByCreatedAt orders the results by the created_at field.
func ByCreatedBy ¶
func ByCreatedBy(opts ...sql.OrderTermOption) OrderOption
ByCreatedBy orders the results by the created_by field.
func ByID ¶
func ByID(opts ...sql.OrderTermOption) OrderOption
ByID orders the results by the id field.
func ByPassword ¶
func ByPassword(opts ...sql.OrderTermOption) OrderOption
ByPassword orders the results by the password field.
func BySalt ¶
func BySalt(opts ...sql.OrderTermOption) OrderOption
BySalt orders the results by the salt field.
func ByScene ¶
func ByScene(opts ...sql.OrderTermOption) OrderOption
ByScene orders the results by the scene field.
func ByStatus ¶
func ByStatus(opts ...sql.OrderTermOption) OrderOption
ByStatus orders the results by the status field.
func ByUpdatedAt ¶
func ByUpdatedAt(opts ...sql.OrderTermOption) OrderOption
ByUpdatedAt orders the results by the updated_at field.
func ByUpdatedBy ¶
func ByUpdatedBy(opts ...sql.OrderTermOption) OrderOption
ByUpdatedBy orders the results by the updated_by field.
func ByUserField ¶
func ByUserField(field string, opts ...sql.OrderTermOption) OrderOption
ByUserField orders the results by user field.
func ByUserID ¶
func ByUserID(opts ...sql.OrderTermOption) OrderOption
ByUserID orders the results by the user_id field.
type Scene ¶
type Scene string
Scene defines the type for the "scene" enum field.
const (
SceneLogin Scene = "login"
)
Scene values.
func (Scene) MarshalGQL ¶
MarshalGQL implements graphql.Marshaler interface.
func (*Scene) UnmarshalGQL ¶
UnmarshalGQL implements graphql.Unmarshaler interface.