permission

package
v0.0.0-...-9bd63dd Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 12, 2023 License: MIT, MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
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

View Source
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
)

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 ID

func ID(id int64) predicate.Permission

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id int64) predicate.Permission

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id int64) predicate.Permission

IDGT applies the GT predicate on the ID field.

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 IDLT

func IDLT(id int64) predicate.Permission

IDLT applies the LT 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(v int64) predicate.Permission

MenuID applies equality check predicate on the "menu_id" field. It's identical to MenuIDEQ.

func MenuIDEQ(v int64) predicate.Permission

MenuIDEQ applies the EQ predicate on the "menu_id" field.

func MenuIDGT(v int64) predicate.Permission

MenuIDGT applies the GT predicate on the "menu_id" field.

func MenuIDGTE(v int64) predicate.Permission

MenuIDGTE applies the GTE predicate on the "menu_id" field.

func MenuIDIn(vs ...int64) predicate.Permission

MenuIDIn applies the In predicate on the "menu_id" field.

func MenuIDLT(v int64) predicate.Permission

MenuIDLT applies the LT predicate on the "menu_id" field.

func MenuIDLTE(v int64) predicate.Permission

MenuIDLTE applies the LTE predicate on the "menu_id" field.

func MenuIDNEQ(v int64) predicate.Permission

MenuIDNEQ applies the NEQ predicate on the "menu_id" field.

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

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

func ValidColumn(column string) bool

ValidColumn reports if the column name is valid (part of the table columns).

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL