menu

package
v0.0.0-...-c6aefec Latest Latest
Warning

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

Go to latest
Published: Jan 3, 2022 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the menu type in the database.
	Label = "menu"
	// FieldID holds the string denoting the id field in the database.
	FieldID = "id"
	// 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"
	// FieldDeletedAt holds the string denoting the deleted_at field in the database.
	FieldDeletedAt = "deleted_at"
	// FieldPermission holds the string denoting the permission field in the database.
	FieldPermission = "permission"
	// FieldPath holds the string denoting the path field in the database.
	FieldPath = "path"
	// FieldName holds the string denoting the name field in the database.
	FieldName = "name"
	// FieldIcon holds the string denoting the icon field in the database.
	FieldIcon = "icon"
	// FieldSort holds the string denoting the sort field in the database.
	FieldSort = "sort"
	// FieldEnable holds the string denoting the enable field in the database.
	FieldEnable = "enable"
	// FieldType holds the string denoting the type field in the database.
	FieldType = "type"
	// EdgeParent holds the string denoting the parent edge name in mutations.
	EdgeParent = "parent"
	// EdgeChildren holds the string denoting the children edge name in mutations.
	EdgeChildren = "children"
	// EdgeOwner holds the string denoting the owner edge name in mutations.
	EdgeOwner = "owner"
	// Table holds the table name of the menu in the database.
	Table = "menu"
	// ParentTable is the table that holds the parent relation/edge.
	ParentTable = "menu"
	// ParentColumn is the table column denoting the parent relation/edge.
	ParentColumn = "menu_children"
	// ChildrenTable is the table that holds the children relation/edge.
	ChildrenTable = "menu"
	// ChildrenColumn is the table column denoting the children relation/edge.
	ChildrenColumn = "menu_children"
	// OwnerTable is the table that holds the owner relation/edge.
	OwnerTable = "menu"
	// OwnerInverseTable is the table name for the Role entity.
	// It exists in this package in order to avoid circular dependency with the "role" package.
	OwnerInverseTable = "role"
	// OwnerColumn is the table column denoting the owner relation/edge.
	OwnerColumn = "role_menu"
)

Variables

View Source
var (
	// 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
	// UpdateDefaultUpdatedAt holds the default value on update for the "updated_at" field.
	UpdateDefaultUpdatedAt func() time.Time
	// UpdateDefaultDeletedAt holds the default value on update for the "deleted_at" field.
	UpdateDefaultDeletedAt func() time.Time
	// PermissionValidator is a validator for the "permission" field. It is called by the builders before save.
	PermissionValidator func(string) error
	// PathValidator is a validator for the "path" field. It is called by the builders before save.
	PathValidator func(string) error
	// NameValidator is a validator for the "name" field. It is called by the builders before save.
	NameValidator func(string) error
	// IconValidator is a validator for the "icon" field. It is called by the builders before save.
	IconValidator func(string) error
	// DefaultSort holds the default value on creation for the "sort" field.
	DefaultSort int
	// DefaultEnable holds the default value on creation for the "enable" field.
	DefaultEnable string
	// EnableValidator is a validator for the "enable" field. It is called by the builders before save.
	EnableValidator func(string) error
	// TypeValidator is a validator for the "type" field. It is called by the builders before save.
	TypeValidator func(string) error
	// IDValidator is a validator for the "id" field. It is called by the builders before save.
	IDValidator func(int64) error
)

Columns holds all SQL columns for menu fields.

View Source
var ForeignKeys = []string{
	"menu_children",
	"role_menu",
}

ForeignKeys holds the SQL foreign-keys that are owned by the "menu" table and are not defined as standalone fields in the schema.

Functions

func And

func And(predicates ...predicate.Menu) predicate.Menu

And groups predicates with the AND operator between them.

func CreatedAt

func CreatedAt(v time.Time) predicate.Menu

CreatedAt applies equality check predicate on the "created_at" field. It's identical to CreatedAtEQ.

func CreatedAtEQ

func CreatedAtEQ(v time.Time) predicate.Menu

CreatedAtEQ applies the EQ predicate on the "created_at" field.

func CreatedAtGT

func CreatedAtGT(v time.Time) predicate.Menu

CreatedAtGT applies the GT predicate on the "created_at" field.

func CreatedAtGTE

func CreatedAtGTE(v time.Time) predicate.Menu

CreatedAtGTE applies the GTE predicate on the "created_at" field.

func CreatedAtIn

func CreatedAtIn(vs ...time.Time) predicate.Menu

CreatedAtIn applies the In predicate on the "created_at" field.

func CreatedAtLT

func CreatedAtLT(v time.Time) predicate.Menu

CreatedAtLT applies the LT predicate on the "created_at" field.

func CreatedAtLTE

func CreatedAtLTE(v time.Time) predicate.Menu

CreatedAtLTE applies the LTE predicate on the "created_at" field.

func CreatedAtNEQ

func CreatedAtNEQ(v time.Time) predicate.Menu

CreatedAtNEQ applies the NEQ predicate on the "created_at" field.

func CreatedAtNotIn

func CreatedAtNotIn(vs ...time.Time) predicate.Menu

CreatedAtNotIn applies the NotIn predicate on the "created_at" field.

func DeletedAt

func DeletedAt(v time.Time) predicate.Menu

DeletedAt applies equality check predicate on the "deleted_at" field. It's identical to DeletedAtEQ.

func DeletedAtEQ

func DeletedAtEQ(v time.Time) predicate.Menu

DeletedAtEQ applies the EQ predicate on the "deleted_at" field.

func DeletedAtGT

func DeletedAtGT(v time.Time) predicate.Menu

DeletedAtGT applies the GT predicate on the "deleted_at" field.

func DeletedAtGTE

func DeletedAtGTE(v time.Time) predicate.Menu

DeletedAtGTE applies the GTE predicate on the "deleted_at" field.

func DeletedAtIn

func DeletedAtIn(vs ...time.Time) predicate.Menu

DeletedAtIn applies the In predicate on the "deleted_at" field.

func DeletedAtIsNil

func DeletedAtIsNil() predicate.Menu

DeletedAtIsNil applies the IsNil predicate on the "deleted_at" field.

func DeletedAtLT

func DeletedAtLT(v time.Time) predicate.Menu

DeletedAtLT applies the LT predicate on the "deleted_at" field.

func DeletedAtLTE

func DeletedAtLTE(v time.Time) predicate.Menu

DeletedAtLTE applies the LTE predicate on the "deleted_at" field.

func DeletedAtNEQ

func DeletedAtNEQ(v time.Time) predicate.Menu

DeletedAtNEQ applies the NEQ predicate on the "deleted_at" field.

func DeletedAtNotIn

func DeletedAtNotIn(vs ...time.Time) predicate.Menu

DeletedAtNotIn applies the NotIn predicate on the "deleted_at" field.

func DeletedAtNotNil

func DeletedAtNotNil() predicate.Menu

DeletedAtNotNil applies the NotNil predicate on the "deleted_at" field.

func Enable

func Enable(v string) predicate.Menu

Enable applies equality check predicate on the "enable" field. It's identical to EnableEQ.

func EnableContains

func EnableContains(v string) predicate.Menu

EnableContains applies the Contains predicate on the "enable" field.

func EnableContainsFold

func EnableContainsFold(v string) predicate.Menu

EnableContainsFold applies the ContainsFold predicate on the "enable" field.

func EnableEQ

func EnableEQ(v string) predicate.Menu

EnableEQ applies the EQ predicate on the "enable" field.

func EnableEqualFold

func EnableEqualFold(v string) predicate.Menu

EnableEqualFold applies the EqualFold predicate on the "enable" field.

func EnableGT

func EnableGT(v string) predicate.Menu

EnableGT applies the GT predicate on the "enable" field.

func EnableGTE

func EnableGTE(v string) predicate.Menu

EnableGTE applies the GTE predicate on the "enable" field.

func EnableHasPrefix

func EnableHasPrefix(v string) predicate.Menu

EnableHasPrefix applies the HasPrefix predicate on the "enable" field.

func EnableHasSuffix

func EnableHasSuffix(v string) predicate.Menu

EnableHasSuffix applies the HasSuffix predicate on the "enable" field.

func EnableIn

func EnableIn(vs ...string) predicate.Menu

EnableIn applies the In predicate on the "enable" field.

func EnableLT

func EnableLT(v string) predicate.Menu

EnableLT applies the LT predicate on the "enable" field.

func EnableLTE

func EnableLTE(v string) predicate.Menu

EnableLTE applies the LTE predicate on the "enable" field.

func EnableNEQ

func EnableNEQ(v string) predicate.Menu

EnableNEQ applies the NEQ predicate on the "enable" field.

func EnableNotIn

func EnableNotIn(vs ...string) predicate.Menu

EnableNotIn applies the NotIn predicate on the "enable" field.

func HasChildren

func HasChildren() predicate.Menu

HasChildren applies the HasEdge predicate on the "children" edge.

func HasChildrenWith

func HasChildrenWith(preds ...predicate.Menu) predicate.Menu

HasChildrenWith applies the HasEdge predicate on the "children" edge with a given conditions (other predicates).

func HasOwner

func HasOwner() predicate.Menu

HasOwner applies the HasEdge predicate on the "owner" edge.

func HasOwnerWith

func HasOwnerWith(preds ...predicate.Role) predicate.Menu

HasOwnerWith applies the HasEdge predicate on the "owner" edge with a given conditions (other predicates).

func HasParent

func HasParent() predicate.Menu

HasParent applies the HasEdge predicate on the "parent" edge.

func HasParentWith

func HasParentWith(preds ...predicate.Menu) predicate.Menu

HasParentWith applies the HasEdge predicate on the "parent" edge with a given conditions (other predicates).

func ID

func ID(id int64) predicate.Menu

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id int64) predicate.Menu

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id int64) predicate.Menu

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id int64) predicate.Menu

IDGTE applies the GTE predicate on the ID field.

func IDIn

func IDIn(ids ...int64) predicate.Menu

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id int64) predicate.Menu

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id int64) predicate.Menu

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id int64) predicate.Menu

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

func IDNotIn(ids ...int64) predicate.Menu

IDNotIn applies the NotIn predicate on the ID field.

func Icon

func Icon(v string) predicate.Menu

Icon applies equality check predicate on the "icon" field. It's identical to IconEQ.

func IconContains

func IconContains(v string) predicate.Menu

IconContains applies the Contains predicate on the "icon" field.

func IconContainsFold

func IconContainsFold(v string) predicate.Menu

IconContainsFold applies the ContainsFold predicate on the "icon" field.

func IconEQ

func IconEQ(v string) predicate.Menu

IconEQ applies the EQ predicate on the "icon" field.

func IconEqualFold

func IconEqualFold(v string) predicate.Menu

IconEqualFold applies the EqualFold predicate on the "icon" field.

func IconGT

func IconGT(v string) predicate.Menu

IconGT applies the GT predicate on the "icon" field.

func IconGTE

func IconGTE(v string) predicate.Menu

IconGTE applies the GTE predicate on the "icon" field.

func IconHasPrefix

func IconHasPrefix(v string) predicate.Menu

IconHasPrefix applies the HasPrefix predicate on the "icon" field.

func IconHasSuffix

func IconHasSuffix(v string) predicate.Menu

IconHasSuffix applies the HasSuffix predicate on the "icon" field.

func IconIn

func IconIn(vs ...string) predicate.Menu

IconIn applies the In predicate on the "icon" field.

func IconIsNil

func IconIsNil() predicate.Menu

IconIsNil applies the IsNil predicate on the "icon" field.

func IconLT

func IconLT(v string) predicate.Menu

IconLT applies the LT predicate on the "icon" field.

func IconLTE

func IconLTE(v string) predicate.Menu

IconLTE applies the LTE predicate on the "icon" field.

func IconNEQ

func IconNEQ(v string) predicate.Menu

IconNEQ applies the NEQ predicate on the "icon" field.

func IconNotIn

func IconNotIn(vs ...string) predicate.Menu

IconNotIn applies the NotIn predicate on the "icon" field.

func IconNotNil

func IconNotNil() predicate.Menu

IconNotNil applies the NotNil predicate on the "icon" field.

func Name

func Name(v string) predicate.Menu

Name applies equality check predicate on the "name" field. It's identical to NameEQ.

func NameContains

func NameContains(v string) predicate.Menu

NameContains applies the Contains predicate on the "name" field.

func NameContainsFold

func NameContainsFold(v string) predicate.Menu

NameContainsFold applies the ContainsFold predicate on the "name" field.

func NameEQ

func NameEQ(v string) predicate.Menu

NameEQ applies the EQ predicate on the "name" field.

func NameEqualFold

func NameEqualFold(v string) predicate.Menu

NameEqualFold applies the EqualFold predicate on the "name" field.

func NameGT

func NameGT(v string) predicate.Menu

NameGT applies the GT predicate on the "name" field.

func NameGTE

func NameGTE(v string) predicate.Menu

NameGTE applies the GTE predicate on the "name" field.

func NameHasPrefix

func NameHasPrefix(v string) predicate.Menu

NameHasPrefix applies the HasPrefix predicate on the "name" field.

func NameHasSuffix

func NameHasSuffix(v string) predicate.Menu

NameHasSuffix applies the HasSuffix predicate on the "name" field.

func NameIn

func NameIn(vs ...string) predicate.Menu

NameIn applies the In predicate on the "name" field.

func NameLT

func NameLT(v string) predicate.Menu

NameLT applies the LT predicate on the "name" field.

func NameLTE

func NameLTE(v string) predicate.Menu

NameLTE applies the LTE predicate on the "name" field.

func NameNEQ

func NameNEQ(v string) predicate.Menu

NameNEQ applies the NEQ predicate on the "name" field.

func NameNotIn

func NameNotIn(vs ...string) predicate.Menu

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.Menu) predicate.Menu

Or groups predicates with the OR operator between them.

func Path

func Path(v string) predicate.Menu

Path applies equality check predicate on the "path" field. It's identical to PathEQ.

func PathContains

func PathContains(v string) predicate.Menu

PathContains applies the Contains predicate on the "path" field.

func PathContainsFold

func PathContainsFold(v string) predicate.Menu

PathContainsFold applies the ContainsFold predicate on the "path" field.

func PathEQ

func PathEQ(v string) predicate.Menu

PathEQ applies the EQ predicate on the "path" field.

func PathEqualFold

func PathEqualFold(v string) predicate.Menu

PathEqualFold applies the EqualFold predicate on the "path" field.

func PathGT

func PathGT(v string) predicate.Menu

PathGT applies the GT predicate on the "path" field.

func PathGTE

func PathGTE(v string) predicate.Menu

PathGTE applies the GTE predicate on the "path" field.

func PathHasPrefix

func PathHasPrefix(v string) predicate.Menu

PathHasPrefix applies the HasPrefix predicate on the "path" field.

func PathHasSuffix

func PathHasSuffix(v string) predicate.Menu

PathHasSuffix applies the HasSuffix predicate on the "path" field.

func PathIn

func PathIn(vs ...string) predicate.Menu

PathIn applies the In predicate on the "path" field.

func PathIsNil

func PathIsNil() predicate.Menu

PathIsNil applies the IsNil predicate on the "path" field.

func PathLT

func PathLT(v string) predicate.Menu

PathLT applies the LT predicate on the "path" field.

func PathLTE

func PathLTE(v string) predicate.Menu

PathLTE applies the LTE predicate on the "path" field.

func PathNEQ

func PathNEQ(v string) predicate.Menu

PathNEQ applies the NEQ predicate on the "path" field.

func PathNotIn

func PathNotIn(vs ...string) predicate.Menu

PathNotIn applies the NotIn predicate on the "path" field.

func PathNotNil

func PathNotNil() predicate.Menu

PathNotNil applies the NotNil predicate on the "path" field.

func Permission

func Permission(v string) predicate.Menu

Permission applies equality check predicate on the "permission" field. It's identical to PermissionEQ.

func PermissionContains

func PermissionContains(v string) predicate.Menu

PermissionContains applies the Contains predicate on the "permission" field.

func PermissionContainsFold

func PermissionContainsFold(v string) predicate.Menu

PermissionContainsFold applies the ContainsFold predicate on the "permission" field.

func PermissionEQ

func PermissionEQ(v string) predicate.Menu

PermissionEQ applies the EQ predicate on the "permission" field.

func PermissionEqualFold

func PermissionEqualFold(v string) predicate.Menu

PermissionEqualFold applies the EqualFold predicate on the "permission" field.

func PermissionGT

func PermissionGT(v string) predicate.Menu

PermissionGT applies the GT predicate on the "permission" field.

func PermissionGTE

func PermissionGTE(v string) predicate.Menu

PermissionGTE applies the GTE predicate on the "permission" field.

func PermissionHasPrefix

func PermissionHasPrefix(v string) predicate.Menu

PermissionHasPrefix applies the HasPrefix predicate on the "permission" field.

func PermissionHasSuffix

func PermissionHasSuffix(v string) predicate.Menu

PermissionHasSuffix applies the HasSuffix predicate on the "permission" field.

func PermissionIn

func PermissionIn(vs ...string) predicate.Menu

PermissionIn applies the In predicate on the "permission" field.

func PermissionLT

func PermissionLT(v string) predicate.Menu

PermissionLT applies the LT predicate on the "permission" field.

func PermissionLTE

func PermissionLTE(v string) predicate.Menu

PermissionLTE applies the LTE predicate on the "permission" field.

func PermissionNEQ

func PermissionNEQ(v string) predicate.Menu

PermissionNEQ applies the NEQ predicate on the "permission" field.

func PermissionNotIn

func PermissionNotIn(vs ...string) predicate.Menu

PermissionNotIn applies the NotIn predicate on the "permission" field.

func Sort

func Sort(v int) predicate.Menu

Sort applies equality check predicate on the "sort" field. It's identical to SortEQ.

func SortEQ

func SortEQ(v int) predicate.Menu

SortEQ applies the EQ predicate on the "sort" field.

func SortGT

func SortGT(v int) predicate.Menu

SortGT applies the GT predicate on the "sort" field.

func SortGTE

func SortGTE(v int) predicate.Menu

SortGTE applies the GTE predicate on the "sort" field.

func SortIn

func SortIn(vs ...int) predicate.Menu

SortIn applies the In predicate on the "sort" field.

func SortLT

func SortLT(v int) predicate.Menu

SortLT applies the LT predicate on the "sort" field.

func SortLTE

func SortLTE(v int) predicate.Menu

SortLTE applies the LTE predicate on the "sort" field.

func SortNEQ

func SortNEQ(v int) predicate.Menu

SortNEQ applies the NEQ predicate on the "sort" field.

func SortNotIn

func SortNotIn(vs ...int) predicate.Menu

SortNotIn applies the NotIn predicate on the "sort" field.

func Type

func Type(v string) predicate.Menu

Type applies equality check predicate on the "type" field. It's identical to TypeEQ.

func TypeContains

func TypeContains(v string) predicate.Menu

TypeContains applies the Contains predicate on the "type" field.

func TypeContainsFold

func TypeContainsFold(v string) predicate.Menu

TypeContainsFold applies the ContainsFold predicate on the "type" field.

func TypeEQ

func TypeEQ(v string) predicate.Menu

TypeEQ applies the EQ predicate on the "type" field.

func TypeEqualFold

func TypeEqualFold(v string) predicate.Menu

TypeEqualFold applies the EqualFold predicate on the "type" field.

func TypeGT

func TypeGT(v string) predicate.Menu

TypeGT applies the GT predicate on the "type" field.

func TypeGTE

func TypeGTE(v string) predicate.Menu

TypeGTE applies the GTE predicate on the "type" field.

func TypeHasPrefix

func TypeHasPrefix(v string) predicate.Menu

TypeHasPrefix applies the HasPrefix predicate on the "type" field.

func TypeHasSuffix

func TypeHasSuffix(v string) predicate.Menu

TypeHasSuffix applies the HasSuffix predicate on the "type" field.

func TypeIn

func TypeIn(vs ...string) predicate.Menu

TypeIn applies the In predicate on the "type" field.

func TypeIsNil

func TypeIsNil() predicate.Menu

TypeIsNil applies the IsNil predicate on the "type" field.

func TypeLT

func TypeLT(v string) predicate.Menu

TypeLT applies the LT predicate on the "type" field.

func TypeLTE

func TypeLTE(v string) predicate.Menu

TypeLTE applies the LTE predicate on the "type" field.

func TypeNEQ

func TypeNEQ(v string) predicate.Menu

TypeNEQ applies the NEQ predicate on the "type" field.

func TypeNotIn

func TypeNotIn(vs ...string) predicate.Menu

TypeNotIn applies the NotIn predicate on the "type" field.

func TypeNotNil

func TypeNotNil() predicate.Menu

TypeNotNil applies the NotNil predicate on the "type" field.

func UpdatedAt

func UpdatedAt(v time.Time) predicate.Menu

UpdatedAt applies equality check predicate on the "updated_at" field. It's identical to UpdatedAtEQ.

func UpdatedAtEQ

func UpdatedAtEQ(v time.Time) predicate.Menu

UpdatedAtEQ applies the EQ predicate on the "updated_at" field.

func UpdatedAtGT

func UpdatedAtGT(v time.Time) predicate.Menu

UpdatedAtGT applies the GT predicate on the "updated_at" field.

func UpdatedAtGTE

func UpdatedAtGTE(v time.Time) predicate.Menu

UpdatedAtGTE applies the GTE predicate on the "updated_at" field.

func UpdatedAtIn

func UpdatedAtIn(vs ...time.Time) predicate.Menu

UpdatedAtIn applies the In predicate on the "updated_at" field.

func UpdatedAtLT

func UpdatedAtLT(v time.Time) predicate.Menu

UpdatedAtLT applies the LT predicate on the "updated_at" field.

func UpdatedAtLTE

func UpdatedAtLTE(v time.Time) predicate.Menu

UpdatedAtLTE applies the LTE predicate on the "updated_at" field.

func UpdatedAtNEQ

func UpdatedAtNEQ(v time.Time) predicate.Menu

UpdatedAtNEQ applies the NEQ predicate on the "updated_at" field.

func UpdatedAtNotIn

func UpdatedAtNotIn(vs ...time.Time) predicate.Menu

UpdatedAtNotIn applies the NotIn predicate on the "updated_at" 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