Documentation ¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.UserRole) predicate.UserRole
- func ID(id int) predicate.UserRole
- func IDEQ(id int) predicate.UserRole
- func IDGT(id int) predicate.UserRole
- func IDGTE(id int) predicate.UserRole
- func IDIn(ids ...int) predicate.UserRole
- func IDLT(id int) predicate.UserRole
- func IDLTE(id int) predicate.UserRole
- func IDNEQ(id int) predicate.UserRole
- func IDNotIn(ids ...int) predicate.UserRole
- func Not(p predicate.UserRole) predicate.UserRole
- func Or(predicates ...predicate.UserRole) predicate.UserRole
- func RoleID(v int64) predicate.UserRole
- func RoleIDEQ(v int64) predicate.UserRole
- func RoleIDGT(v int64) predicate.UserRole
- func RoleIDGTE(v int64) predicate.UserRole
- func RoleIDIn(vs ...int64) predicate.UserRole
- func RoleIDLT(v int64) predicate.UserRole
- func RoleIDLTE(v int64) predicate.UserRole
- func RoleIDNEQ(v int64) predicate.UserRole
- func RoleIDNotIn(vs ...int64) predicate.UserRole
- func UserID(v int64) predicate.UserRole
- func UserIDEQ(v int64) predicate.UserRole
- func UserIDGT(v int64) predicate.UserRole
- func UserIDGTE(v int64) predicate.UserRole
- func UserIDIn(vs ...int64) predicate.UserRole
- func UserIDLT(v int64) predicate.UserRole
- func UserIDLTE(v int64) predicate.UserRole
- func UserIDNEQ(v int64) predicate.UserRole
- func UserIDNotIn(vs ...int64) predicate.UserRole
- func ValidColumn(column string) bool
Constants ¶
View Source
const ( // Label holds the string label denoting the userrole type in the database. Label = "user_role" // FieldID holds the string denoting the id field in the database. FieldID = "id" // FieldUserID holds the string denoting the user_id field in the database. FieldUserID = "user_id" // FieldRoleID holds the string denoting the role_id field in the database. FieldRoleID = "role_id" // Table holds the table name of the userrole in the database. Table = "sys_user_role" )
Variables ¶
View Source
var ( // DefaultUserID holds the default value on creation for the "user_id" field. DefaultUserID int64 // DefaultRoleID holds the default value on creation for the "role_id" field. DefaultRoleID int64 )
View Source
var Columns = []string{ FieldID, FieldUserID, FieldRoleID, }
Columns holds all SQL columns for userrole fields.
Functions ¶
func RoleID ¶
RoleID applies equality check predicate on the "role_id" field. It's identical to RoleIDEQ.
func RoleIDNotIn ¶
RoleIDNotIn applies the NotIn predicate on the "role_id" field.
func UserID ¶
UserID applies equality check predicate on the "user_id" field. It's identical to UserIDEQ.
func UserIDNotIn ¶
UserIDNotIn applies the NotIn predicate on the "user_id" field.
func ValidColumn ¶
ValidColumn reports if the column name is valid (part of the table columns).
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.