Documentation ¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Permission) predicate.Permission
- func ID(id int64) predicate.Permission
- func IDEQ(id int64) predicate.Permission
- func IDGT(id int64) predicate.Permission
- func IDGTE(id int64) predicate.Permission
- func IDIn(ids ...int64) predicate.Permission
- func IDLT(id int64) predicate.Permission
- func IDLTE(id int64) predicate.Permission
- func IDNEQ(id int64) predicate.Permission
- func IDNotIn(ids ...int64) predicate.Permission
- func MenuID(v int64) predicate.Permission
- func MenuIDEQ(v int64) predicate.Permission
- func MenuIDGT(v int64) predicate.Permission
- func MenuIDGTE(v int64) predicate.Permission
- func MenuIDIn(vs ...int64) predicate.Permission
- func MenuIDLT(v int64) predicate.Permission
- func MenuIDLTE(v int64) predicate.Permission
- func MenuIDNEQ(v int64) predicate.Permission
- func MenuIDNotIn(vs ...int64) predicate.Permission
- func Name(v string) predicate.Permission
- func NameContains(v string) predicate.Permission
- func NameContainsFold(v string) predicate.Permission
- func NameEQ(v string) predicate.Permission
- func NameEqualFold(v string) predicate.Permission
- func NameGT(v string) predicate.Permission
- func NameGTE(v string) predicate.Permission
- func NameHasPrefix(v string) predicate.Permission
- func NameHasSuffix(v string) predicate.Permission
- func NameIn(vs ...string) predicate.Permission
- func NameLT(v string) predicate.Permission
- func NameLTE(v string) predicate.Permission
- func NameNEQ(v string) predicate.Permission
- func NameNotIn(vs ...string) predicate.Permission
- func Not(p predicate.Permission) predicate.Permission
- func Or(predicates ...predicate.Permission) predicate.Permission
- func Permission(v string) predicate.Permission
- func PermissionContains(v string) predicate.Permission
- func PermissionContainsFold(v string) predicate.Permission
- func PermissionEQ(v string) predicate.Permission
- func PermissionEqualFold(v string) predicate.Permission
- func PermissionGT(v string) predicate.Permission
- func PermissionGTE(v string) predicate.Permission
- func PermissionHasPrefix(v string) predicate.Permission
- func PermissionHasSuffix(v string) predicate.Permission
- func PermissionIn(vs ...string) predicate.Permission
- func PermissionLT(v string) predicate.Permission
- func PermissionLTE(v string) predicate.Permission
- func PermissionNEQ(v string) predicate.Permission
- func PermissionNotIn(vs ...string) predicate.Permission
- func ValidColumn(column string) bool
Constants ¶
const ( // Label holds the string label denoting the permission type in the database. Label = "permission" // FieldID holds the string denoting the id field in the database. FieldID = "id" // FieldMenuID holds the string denoting the menu_id field in the database. FieldMenuID = "menu_id" // FieldName holds the string denoting the name field in the database. FieldName = "name" // FieldPermission holds the string denoting the permission field in the database. FieldPermission = "permission" // Table holds the table name of the permission in the database. Table = "sys_permission" )
Variables ¶
var ( // DefaultMenuID holds the default value on creation for the "menu_id" field. DefaultMenuID int64 // DefaultName holds the default value on creation for the "name" field. DefaultName string // DefaultPermission holds the default value on creation for the "permission" field. DefaultPermission string )
var Columns = []string{ FieldID, FieldMenuID, FieldName, FieldPermission, }
Columns holds all SQL columns for permission fields.
Functions ¶
func And ¶
func And(predicates ...predicate.Permission) predicate.Permission
And groups predicates with the AND operator between them.
func IDGTE ¶
func IDGTE(id int64) predicate.Permission
IDGTE applies the GTE predicate on the ID field.
func IDIn ¶
func IDIn(ids ...int64) predicate.Permission
IDIn applies the In predicate on the ID field.
func IDLTE ¶
func IDLTE(id int64) predicate.Permission
IDLTE applies the LTE predicate on the ID field.
func IDNEQ ¶
func IDNEQ(id int64) predicate.Permission
IDNEQ applies the NEQ predicate on the ID field.
func IDNotIn ¶
func IDNotIn(ids ...int64) predicate.Permission
IDNotIn applies the NotIn predicate on the ID field.
func MenuID ¶
func MenuID(v int64) predicate.Permission
MenuID applies equality check predicate on the "menu_id" field. It's identical to MenuIDEQ.
func MenuIDEQ ¶
func MenuIDEQ(v int64) predicate.Permission
MenuIDEQ applies the EQ predicate on the "menu_id" field.
func MenuIDGT ¶
func MenuIDGT(v int64) predicate.Permission
MenuIDGT applies the GT predicate on the "menu_id" field.
func MenuIDGTE ¶
func MenuIDGTE(v int64) predicate.Permission
MenuIDGTE applies the GTE predicate on the "menu_id" field.
func MenuIDIn ¶
func MenuIDIn(vs ...int64) predicate.Permission
MenuIDIn applies the In predicate on the "menu_id" field.
func MenuIDLT ¶
func MenuIDLT(v int64) predicate.Permission
MenuIDLT applies the LT predicate on the "menu_id" field.
func MenuIDLTE ¶
func MenuIDLTE(v int64) predicate.Permission
MenuIDLTE applies the LTE predicate on the "menu_id" field.
func MenuIDNEQ ¶
func MenuIDNEQ(v int64) predicate.Permission
MenuIDNEQ applies the NEQ predicate on the "menu_id" field.
func MenuIDNotIn ¶
func MenuIDNotIn(vs ...int64) predicate.Permission
MenuIDNotIn applies the NotIn predicate on the "menu_id" field.
func Name ¶
func Name(v string) predicate.Permission
Name applies equality check predicate on the "name" field. It's identical to NameEQ.
func NameContains ¶
func NameContains(v string) predicate.Permission
NameContains applies the Contains predicate on the "name" field.
func NameContainsFold ¶
func NameContainsFold(v string) predicate.Permission
NameContainsFold applies the ContainsFold predicate on the "name" field.
func NameEQ ¶
func NameEQ(v string) predicate.Permission
NameEQ applies the EQ predicate on the "name" field.
func NameEqualFold ¶
func NameEqualFold(v string) predicate.Permission
NameEqualFold applies the EqualFold predicate on the "name" field.
func NameGT ¶
func NameGT(v string) predicate.Permission
NameGT applies the GT predicate on the "name" field.
func NameGTE ¶
func NameGTE(v string) predicate.Permission
NameGTE applies the GTE predicate on the "name" field.
func NameHasPrefix ¶
func NameHasPrefix(v string) predicate.Permission
NameHasPrefix applies the HasPrefix predicate on the "name" field.
func NameHasSuffix ¶
func NameHasSuffix(v string) predicate.Permission
NameHasSuffix applies the HasSuffix predicate on the "name" field.
func NameIn ¶
func NameIn(vs ...string) predicate.Permission
NameIn applies the In predicate on the "name" field.
func NameLT ¶
func NameLT(v string) predicate.Permission
NameLT applies the LT predicate on the "name" field.
func NameLTE ¶
func NameLTE(v string) predicate.Permission
NameLTE applies the LTE predicate on the "name" field.
func NameNEQ ¶
func NameNEQ(v string) predicate.Permission
NameNEQ applies the NEQ predicate on the "name" field.
func NameNotIn ¶
func NameNotIn(vs ...string) predicate.Permission
NameNotIn applies the NotIn predicate on the "name" field.
func Not ¶
func Not(p predicate.Permission) predicate.Permission
Not applies the not operator on the given predicate.
func Or ¶
func Or(predicates ...predicate.Permission) predicate.Permission
Or groups predicates with the OR operator between them.
func Permission ¶
func Permission(v string) predicate.Permission
Permission applies equality check predicate on the "permission" field. It's identical to PermissionEQ.
func PermissionContains ¶
func PermissionContains(v string) predicate.Permission
PermissionContains applies the Contains predicate on the "permission" field.
func PermissionContainsFold ¶
func PermissionContainsFold(v string) predicate.Permission
PermissionContainsFold applies the ContainsFold predicate on the "permission" field.
func PermissionEQ ¶
func PermissionEQ(v string) predicate.Permission
PermissionEQ applies the EQ predicate on the "permission" field.
func PermissionEqualFold ¶
func PermissionEqualFold(v string) predicate.Permission
PermissionEqualFold applies the EqualFold predicate on the "permission" field.
func PermissionGT ¶
func PermissionGT(v string) predicate.Permission
PermissionGT applies the GT predicate on the "permission" field.
func PermissionGTE ¶
func PermissionGTE(v string) predicate.Permission
PermissionGTE applies the GTE predicate on the "permission" field.
func PermissionHasPrefix ¶
func PermissionHasPrefix(v string) predicate.Permission
PermissionHasPrefix applies the HasPrefix predicate on the "permission" field.
func PermissionHasSuffix ¶
func PermissionHasSuffix(v string) predicate.Permission
PermissionHasSuffix applies the HasSuffix predicate on the "permission" field.
func PermissionIn ¶
func PermissionIn(vs ...string) predicate.Permission
PermissionIn applies the In predicate on the "permission" field.
func PermissionLT ¶
func PermissionLT(v string) predicate.Permission
PermissionLT applies the LT predicate on the "permission" field.
func PermissionLTE ¶
func PermissionLTE(v string) predicate.Permission
PermissionLTE applies the LTE predicate on the "permission" field.
func PermissionNEQ ¶
func PermissionNEQ(v string) predicate.Permission
PermissionNEQ applies the NEQ predicate on the "permission" field.
func PermissionNotIn ¶
func PermissionNotIn(vs ...string) predicate.Permission
PermissionNotIn applies the NotIn predicate on the "permission" field.
func ValidColumn ¶
ValidColumn reports if the column name is valid (part of the table columns).
Types ¶
This section is empty.