menu

package
v1.1.3 Latest Latest
Warning

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

Go to latest
Published: Sep 3, 2023 License: MIT Imports: 4 Imported by: 1

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"
	// FieldSort holds the string denoting the sort field in the database.
	FieldSort = "sort"
	// FieldParentID holds the string denoting the parent_id field in the database.
	FieldParentID = "parent_id"
	// FieldMenuLevel holds the string denoting the menu_level field in the database.
	FieldMenuLevel = "menu_level"
	// FieldMenuType holds the string denoting the menu_type field in the database.
	FieldMenuType = "menu_type"
	// 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"
	// FieldRedirect holds the string denoting the redirect field in the database.
	FieldRedirect = "redirect"
	// FieldComponent holds the string denoting the component field in the database.
	FieldComponent = "component"
	// FieldDisabled holds the string denoting the disabled field in the database.
	FieldDisabled = "disabled"
	// FieldTitle holds the string denoting the title field in the database.
	FieldTitle = "title"
	// FieldIcon holds the string denoting the icon field in the database.
	FieldIcon = "icon"
	// FieldHideMenu holds the string denoting the hide_menu field in the database.
	FieldHideMenu = "hide_menu"
	// FieldHideBreadcrumb holds the string denoting the hide_breadcrumb field in the database.
	FieldHideBreadcrumb = "hide_breadcrumb"
	// FieldIgnoreKeepAlive holds the string denoting the ignore_keep_alive field in the database.
	FieldIgnoreKeepAlive = "ignore_keep_alive"
	// FieldHideTab holds the string denoting the hide_tab field in the database.
	FieldHideTab = "hide_tab"
	// FieldFrameSrc holds the string denoting the frame_src field in the database.
	FieldFrameSrc = "frame_src"
	// FieldCarryParam holds the string denoting the carry_param field in the database.
	FieldCarryParam = "carry_param"
	// FieldHideChildrenInMenu holds the string denoting the hide_children_in_menu field in the database.
	FieldHideChildrenInMenu = "hide_children_in_menu"
	// FieldAffix holds the string denoting the affix field in the database.
	FieldAffix = "affix"
	// FieldDynamicLevel holds the string denoting the dynamic_level field in the database.
	FieldDynamicLevel = "dynamic_level"
	// FieldRealPath holds the string denoting the real_path field in the database.
	FieldRealPath = "real_path"
	// EdgeRoles holds the string denoting the roles edge name in mutations.
	EdgeRoles = "roles"
	// 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"
	// Table holds the table name of the menu in the database.
	Table = "sys_menus"
	// RolesTable is the table that holds the roles relation/edge. The primary key declared below.
	RolesTable = "role_menus"
	// RolesInverseTable is the table name for the Role entity.
	// It exists in this package in order to avoid circular dependency with the "role" package.
	RolesInverseTable = "sys_roles"
	// ParentTable is the table that holds the parent relation/edge.
	ParentTable = "sys_menus"
	// ParentColumn is the table column denoting the parent relation/edge.
	ParentColumn = "parent_id"
	// ChildrenTable is the table that holds the children relation/edge.
	ChildrenTable = "sys_menus"
	// ChildrenColumn is the table column denoting the children relation/edge.
	ChildrenColumn = "parent_id"
)

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
	// DefaultSort holds the default value on creation for the "sort" field.
	DefaultSort uint32
	// DefaultParentID holds the default value on creation for the "parent_id" field.
	DefaultParentID uint64
	// DefaultPath holds the default value on creation for the "path" field.
	DefaultPath string
	// DefaultRedirect holds the default value on creation for the "redirect" field.
	DefaultRedirect string
	// DefaultComponent holds the default value on creation for the "component" field.
	DefaultComponent string
	// DefaultDisabled holds the default value on creation for the "disabled" field.
	DefaultDisabled bool
	// DefaultHideMenu holds the default value on creation for the "hide_menu" field.
	DefaultHideMenu bool
	// DefaultHideBreadcrumb holds the default value on creation for the "hide_breadcrumb" field.
	DefaultHideBreadcrumb bool
	// DefaultIgnoreKeepAlive holds the default value on creation for the "ignore_keep_alive" field.
	DefaultIgnoreKeepAlive bool
	// DefaultHideTab holds the default value on creation for the "hide_tab" field.
	DefaultHideTab bool
	// DefaultFrameSrc holds the default value on creation for the "frame_src" field.
	DefaultFrameSrc string
	// DefaultCarryParam holds the default value on creation for the "carry_param" field.
	DefaultCarryParam bool
	// DefaultHideChildrenInMenu holds the default value on creation for the "hide_children_in_menu" field.
	DefaultHideChildrenInMenu bool
	// DefaultAffix holds the default value on creation for the "affix" field.
	DefaultAffix bool
	// DefaultDynamicLevel holds the default value on creation for the "dynamic_level" field.
	DefaultDynamicLevel uint32
	// DefaultRealPath holds the default value on creation for the "real_path" field.
	DefaultRealPath string
)

Columns holds all SQL columns for menu fields.

View Source
var (
	// RolesPrimaryKey and RolesColumn2 are the table columns denoting the
	// primary key for the roles relation (M2M).
	RolesPrimaryKey = []string{"role_id", "menu_id"}
)

Functions

func Affix

func Affix(v bool) predicate.Menu

Affix applies equality check predicate on the "affix" field. It's identical to AffixEQ.

func AffixEQ

func AffixEQ(v bool) predicate.Menu

AffixEQ applies the EQ predicate on the "affix" field.

func AffixIsNil

func AffixIsNil() predicate.Menu

AffixIsNil applies the IsNil predicate on the "affix" field.

func AffixNEQ

func AffixNEQ(v bool) predicate.Menu

AffixNEQ applies the NEQ predicate on the "affix" field.

func AffixNotNil

func AffixNotNil() predicate.Menu

AffixNotNil applies the NotNil predicate on the "affix" field.

func And

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

And groups predicates with the AND operator between them.

func CarryParam

func CarryParam(v bool) predicate.Menu

CarryParam applies equality check predicate on the "carry_param" field. It's identical to CarryParamEQ.

func CarryParamEQ

func CarryParamEQ(v bool) predicate.Menu

CarryParamEQ applies the EQ predicate on the "carry_param" field.

func CarryParamIsNil

func CarryParamIsNil() predicate.Menu

CarryParamIsNil applies the IsNil predicate on the "carry_param" field.

func CarryParamNEQ

func CarryParamNEQ(v bool) predicate.Menu

CarryParamNEQ applies the NEQ predicate on the "carry_param" field.

func CarryParamNotNil

func CarryParamNotNil() predicate.Menu

CarryParamNotNil applies the NotNil predicate on the "carry_param" field.

func Component

func Component(v string) predicate.Menu

Component applies equality check predicate on the "component" field. It's identical to ComponentEQ.

func ComponentContains

func ComponentContains(v string) predicate.Menu

ComponentContains applies the Contains predicate on the "component" field.

func ComponentContainsFold

func ComponentContainsFold(v string) predicate.Menu

ComponentContainsFold applies the ContainsFold predicate on the "component" field.

func ComponentEQ

func ComponentEQ(v string) predicate.Menu

ComponentEQ applies the EQ predicate on the "component" field.

func ComponentEqualFold

func ComponentEqualFold(v string) predicate.Menu

ComponentEqualFold applies the EqualFold predicate on the "component" field.

func ComponentGT

func ComponentGT(v string) predicate.Menu

ComponentGT applies the GT predicate on the "component" field.

func ComponentGTE

func ComponentGTE(v string) predicate.Menu

ComponentGTE applies the GTE predicate on the "component" field.

func ComponentHasPrefix

func ComponentHasPrefix(v string) predicate.Menu

ComponentHasPrefix applies the HasPrefix predicate on the "component" field.

func ComponentHasSuffix

func ComponentHasSuffix(v string) predicate.Menu

ComponentHasSuffix applies the HasSuffix predicate on the "component" field.

func ComponentIn

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

ComponentIn applies the In predicate on the "component" field.

func ComponentIsNil

func ComponentIsNil() predicate.Menu

ComponentIsNil applies the IsNil predicate on the "component" field.

func ComponentLT

func ComponentLT(v string) predicate.Menu

ComponentLT applies the LT predicate on the "component" field.

func ComponentLTE

func ComponentLTE(v string) predicate.Menu

ComponentLTE applies the LTE predicate on the "component" field.

func ComponentNEQ

func ComponentNEQ(v string) predicate.Menu

ComponentNEQ applies the NEQ predicate on the "component" field.

func ComponentNotIn

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

ComponentNotIn applies the NotIn predicate on the "component" field.

func ComponentNotNil

func ComponentNotNil() predicate.Menu

ComponentNotNil applies the NotNil predicate on the "component" field.

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 Disabled

func Disabled(v bool) predicate.Menu

Disabled applies equality check predicate on the "disabled" field. It's identical to DisabledEQ.

func DisabledEQ

func DisabledEQ(v bool) predicate.Menu

DisabledEQ applies the EQ predicate on the "disabled" field.

func DisabledIsNil

func DisabledIsNil() predicate.Menu

DisabledIsNil applies the IsNil predicate on the "disabled" field.

func DisabledNEQ

func DisabledNEQ(v bool) predicate.Menu

DisabledNEQ applies the NEQ predicate on the "disabled" field.

func DisabledNotNil

func DisabledNotNil() predicate.Menu

DisabledNotNil applies the NotNil predicate on the "disabled" field.

func DynamicLevel

func DynamicLevel(v uint32) predicate.Menu

DynamicLevel applies equality check predicate on the "dynamic_level" field. It's identical to DynamicLevelEQ.

func DynamicLevelEQ

func DynamicLevelEQ(v uint32) predicate.Menu

DynamicLevelEQ applies the EQ predicate on the "dynamic_level" field.

func DynamicLevelGT

func DynamicLevelGT(v uint32) predicate.Menu

DynamicLevelGT applies the GT predicate on the "dynamic_level" field.

func DynamicLevelGTE

func DynamicLevelGTE(v uint32) predicate.Menu

DynamicLevelGTE applies the GTE predicate on the "dynamic_level" field.

func DynamicLevelIn

func DynamicLevelIn(vs ...uint32) predicate.Menu

DynamicLevelIn applies the In predicate on the "dynamic_level" field.

func DynamicLevelIsNil

func DynamicLevelIsNil() predicate.Menu

DynamicLevelIsNil applies the IsNil predicate on the "dynamic_level" field.

func DynamicLevelLT

func DynamicLevelLT(v uint32) predicate.Menu

DynamicLevelLT applies the LT predicate on the "dynamic_level" field.

func DynamicLevelLTE

func DynamicLevelLTE(v uint32) predicate.Menu

DynamicLevelLTE applies the LTE predicate on the "dynamic_level" field.

func DynamicLevelNEQ

func DynamicLevelNEQ(v uint32) predicate.Menu

DynamicLevelNEQ applies the NEQ predicate on the "dynamic_level" field.

func DynamicLevelNotIn

func DynamicLevelNotIn(vs ...uint32) predicate.Menu

DynamicLevelNotIn applies the NotIn predicate on the "dynamic_level" field.

func DynamicLevelNotNil

func DynamicLevelNotNil() predicate.Menu

DynamicLevelNotNil applies the NotNil predicate on the "dynamic_level" field.

func FrameSrc

func FrameSrc(v string) predicate.Menu

FrameSrc applies equality check predicate on the "frame_src" field. It's identical to FrameSrcEQ.

func FrameSrcContains

func FrameSrcContains(v string) predicate.Menu

FrameSrcContains applies the Contains predicate on the "frame_src" field.

func FrameSrcContainsFold

func FrameSrcContainsFold(v string) predicate.Menu

FrameSrcContainsFold applies the ContainsFold predicate on the "frame_src" field.

func FrameSrcEQ

func FrameSrcEQ(v string) predicate.Menu

FrameSrcEQ applies the EQ predicate on the "frame_src" field.

func FrameSrcEqualFold

func FrameSrcEqualFold(v string) predicate.Menu

FrameSrcEqualFold applies the EqualFold predicate on the "frame_src" field.

func FrameSrcGT

func FrameSrcGT(v string) predicate.Menu

FrameSrcGT applies the GT predicate on the "frame_src" field.

func FrameSrcGTE

func FrameSrcGTE(v string) predicate.Menu

FrameSrcGTE applies the GTE predicate on the "frame_src" field.

func FrameSrcHasPrefix

func FrameSrcHasPrefix(v string) predicate.Menu

FrameSrcHasPrefix applies the HasPrefix predicate on the "frame_src" field.

func FrameSrcHasSuffix

func FrameSrcHasSuffix(v string) predicate.Menu

FrameSrcHasSuffix applies the HasSuffix predicate on the "frame_src" field.

func FrameSrcIn

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

FrameSrcIn applies the In predicate on the "frame_src" field.

func FrameSrcIsNil

func FrameSrcIsNil() predicate.Menu

FrameSrcIsNil applies the IsNil predicate on the "frame_src" field.

func FrameSrcLT

func FrameSrcLT(v string) predicate.Menu

FrameSrcLT applies the LT predicate on the "frame_src" field.

func FrameSrcLTE

func FrameSrcLTE(v string) predicate.Menu

FrameSrcLTE applies the LTE predicate on the "frame_src" field.

func FrameSrcNEQ

func FrameSrcNEQ(v string) predicate.Menu

FrameSrcNEQ applies the NEQ predicate on the "frame_src" field.

func FrameSrcNotIn

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

FrameSrcNotIn applies the NotIn predicate on the "frame_src" field.

func FrameSrcNotNil

func FrameSrcNotNil() predicate.Menu

FrameSrcNotNil applies the NotNil predicate on the "frame_src" 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 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 HasRoles

func HasRoles() predicate.Menu

HasRoles applies the HasEdge predicate on the "roles" edge.

func HasRolesWith

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

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

func HideBreadcrumb

func HideBreadcrumb(v bool) predicate.Menu

HideBreadcrumb applies equality check predicate on the "hide_breadcrumb" field. It's identical to HideBreadcrumbEQ.

func HideBreadcrumbEQ

func HideBreadcrumbEQ(v bool) predicate.Menu

HideBreadcrumbEQ applies the EQ predicate on the "hide_breadcrumb" field.

func HideBreadcrumbIsNil

func HideBreadcrumbIsNil() predicate.Menu

HideBreadcrumbIsNil applies the IsNil predicate on the "hide_breadcrumb" field.

func HideBreadcrumbNEQ

func HideBreadcrumbNEQ(v bool) predicate.Menu

HideBreadcrumbNEQ applies the NEQ predicate on the "hide_breadcrumb" field.

func HideBreadcrumbNotNil

func HideBreadcrumbNotNil() predicate.Menu

HideBreadcrumbNotNil applies the NotNil predicate on the "hide_breadcrumb" field.

func HideChildrenInMenu

func HideChildrenInMenu(v bool) predicate.Menu

HideChildrenInMenu applies equality check predicate on the "hide_children_in_menu" field. It's identical to HideChildrenInMenuEQ.

func HideChildrenInMenuEQ

func HideChildrenInMenuEQ(v bool) predicate.Menu

HideChildrenInMenuEQ applies the EQ predicate on the "hide_children_in_menu" field.

func HideChildrenInMenuIsNil

func HideChildrenInMenuIsNil() predicate.Menu

HideChildrenInMenuIsNil applies the IsNil predicate on the "hide_children_in_menu" field.

func HideChildrenInMenuNEQ

func HideChildrenInMenuNEQ(v bool) predicate.Menu

HideChildrenInMenuNEQ applies the NEQ predicate on the "hide_children_in_menu" field.

func HideChildrenInMenuNotNil

func HideChildrenInMenuNotNil() predicate.Menu

HideChildrenInMenuNotNil applies the NotNil predicate on the "hide_children_in_menu" field.

func HideMenu

func HideMenu(v bool) predicate.Menu

HideMenu applies equality check predicate on the "hide_menu" field. It's identical to HideMenuEQ.

func HideMenuEQ

func HideMenuEQ(v bool) predicate.Menu

HideMenuEQ applies the EQ predicate on the "hide_menu" field.

func HideMenuIsNil

func HideMenuIsNil() predicate.Menu

HideMenuIsNil applies the IsNil predicate on the "hide_menu" field.

func HideMenuNEQ

func HideMenuNEQ(v bool) predicate.Menu

HideMenuNEQ applies the NEQ predicate on the "hide_menu" field.

func HideMenuNotNil

func HideMenuNotNil() predicate.Menu

HideMenuNotNil applies the NotNil predicate on the "hide_menu" field.

func HideTab

func HideTab(v bool) predicate.Menu

HideTab applies equality check predicate on the "hide_tab" field. It's identical to HideTabEQ.

func HideTabEQ

func HideTabEQ(v bool) predicate.Menu

HideTabEQ applies the EQ predicate on the "hide_tab" field.

func HideTabIsNil

func HideTabIsNil() predicate.Menu

HideTabIsNil applies the IsNil predicate on the "hide_tab" field.

func HideTabNEQ

func HideTabNEQ(v bool) predicate.Menu

HideTabNEQ applies the NEQ predicate on the "hide_tab" field.

func HideTabNotNil

func HideTabNotNil() predicate.Menu

HideTabNotNil applies the NotNil predicate on the "hide_tab" field.

func ID

func ID(id uint64) predicate.Menu

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id uint64) predicate.Menu

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id uint64) predicate.Menu

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id uint64) predicate.Menu

IDGTE applies the GTE predicate on the ID field.

func IDIn

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

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id uint64) predicate.Menu

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id uint64) predicate.Menu

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id uint64) predicate.Menu

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

func IDNotIn(ids ...uint64) 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 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 IgnoreKeepAlive

func IgnoreKeepAlive(v bool) predicate.Menu

IgnoreKeepAlive applies equality check predicate on the "ignore_keep_alive" field. It's identical to IgnoreKeepAliveEQ.

func IgnoreKeepAliveEQ

func IgnoreKeepAliveEQ(v bool) predicate.Menu

IgnoreKeepAliveEQ applies the EQ predicate on the "ignore_keep_alive" field.

func IgnoreKeepAliveIsNil

func IgnoreKeepAliveIsNil() predicate.Menu

IgnoreKeepAliveIsNil applies the IsNil predicate on the "ignore_keep_alive" field.

func IgnoreKeepAliveNEQ

func IgnoreKeepAliveNEQ(v bool) predicate.Menu

IgnoreKeepAliveNEQ applies the NEQ predicate on the "ignore_keep_alive" field.

func IgnoreKeepAliveNotNil

func IgnoreKeepAliveNotNil() predicate.Menu

IgnoreKeepAliveNotNil applies the NotNil predicate on the "ignore_keep_alive" field.

func MenuLevel(v uint32) predicate.Menu

MenuLevel applies equality check predicate on the "menu_level" field. It's identical to MenuLevelEQ.

func MenuLevelEQ(v uint32) predicate.Menu

MenuLevelEQ applies the EQ predicate on the "menu_level" field.

func MenuLevelGT(v uint32) predicate.Menu

MenuLevelGT applies the GT predicate on the "menu_level" field.

func MenuLevelGTE(v uint32) predicate.Menu

MenuLevelGTE applies the GTE predicate on the "menu_level" field.

func MenuLevelIn(vs ...uint32) predicate.Menu

MenuLevelIn applies the In predicate on the "menu_level" field.

func MenuLevelLT(v uint32) predicate.Menu

MenuLevelLT applies the LT predicate on the "menu_level" field.

func MenuLevelLTE(v uint32) predicate.Menu

MenuLevelLTE applies the LTE predicate on the "menu_level" field.

func MenuLevelNEQ(v uint32) predicate.Menu

MenuLevelNEQ applies the NEQ predicate on the "menu_level" field.

func MenuLevelNotIn(vs ...uint32) predicate.Menu

MenuLevelNotIn applies the NotIn predicate on the "menu_level" field.

func MenuType(v uint32) predicate.Menu

MenuType applies equality check predicate on the "menu_type" field. It's identical to MenuTypeEQ.

func MenuTypeEQ(v uint32) predicate.Menu

MenuTypeEQ applies the EQ predicate on the "menu_type" field.

func MenuTypeGT(v uint32) predicate.Menu

MenuTypeGT applies the GT predicate on the "menu_type" field.

func MenuTypeGTE(v uint32) predicate.Menu

MenuTypeGTE applies the GTE predicate on the "menu_type" field.

func MenuTypeIn(vs ...uint32) predicate.Menu

MenuTypeIn applies the In predicate on the "menu_type" field.

func MenuTypeLT(v uint32) predicate.Menu

MenuTypeLT applies the LT predicate on the "menu_type" field.

func MenuTypeLTE(v uint32) predicate.Menu

MenuTypeLTE applies the LTE predicate on the "menu_type" field.

func MenuTypeNEQ(v uint32) predicate.Menu

MenuTypeNEQ applies the NEQ predicate on the "menu_type" field.

func MenuTypeNotIn(vs ...uint32) predicate.Menu

MenuTypeNotIn applies the NotIn predicate on the "menu_type" 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 ParentID

func ParentID(v uint64) predicate.Menu

ParentID applies equality check predicate on the "parent_id" field. It's identical to ParentIDEQ.

func ParentIDEQ

func ParentIDEQ(v uint64) predicate.Menu

ParentIDEQ applies the EQ predicate on the "parent_id" field.

func ParentIDIn

func ParentIDIn(vs ...uint64) predicate.Menu

ParentIDIn applies the In predicate on the "parent_id" field.

func ParentIDIsNil

func ParentIDIsNil() predicate.Menu

ParentIDIsNil applies the IsNil predicate on the "parent_id" field.

func ParentIDNEQ

func ParentIDNEQ(v uint64) predicate.Menu

ParentIDNEQ applies the NEQ predicate on the "parent_id" field.

func ParentIDNotIn

func ParentIDNotIn(vs ...uint64) predicate.Menu

ParentIDNotIn applies the NotIn predicate on the "parent_id" field.

func ParentIDNotNil

func ParentIDNotNil() predicate.Menu

ParentIDNotNil applies the NotNil predicate on the "parent_id" field.

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 RealPath

func RealPath(v string) predicate.Menu

RealPath applies equality check predicate on the "real_path" field. It's identical to RealPathEQ.

func RealPathContains

func RealPathContains(v string) predicate.Menu

RealPathContains applies the Contains predicate on the "real_path" field.

func RealPathContainsFold

func RealPathContainsFold(v string) predicate.Menu

RealPathContainsFold applies the ContainsFold predicate on the "real_path" field.

func RealPathEQ

func RealPathEQ(v string) predicate.Menu

RealPathEQ applies the EQ predicate on the "real_path" field.

func RealPathEqualFold

func RealPathEqualFold(v string) predicate.Menu

RealPathEqualFold applies the EqualFold predicate on the "real_path" field.

func RealPathGT

func RealPathGT(v string) predicate.Menu

RealPathGT applies the GT predicate on the "real_path" field.

func RealPathGTE

func RealPathGTE(v string) predicate.Menu

RealPathGTE applies the GTE predicate on the "real_path" field.

func RealPathHasPrefix

func RealPathHasPrefix(v string) predicate.Menu

RealPathHasPrefix applies the HasPrefix predicate on the "real_path" field.

func RealPathHasSuffix

func RealPathHasSuffix(v string) predicate.Menu

RealPathHasSuffix applies the HasSuffix predicate on the "real_path" field.

func RealPathIn

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

RealPathIn applies the In predicate on the "real_path" field.

func RealPathIsNil

func RealPathIsNil() predicate.Menu

RealPathIsNil applies the IsNil predicate on the "real_path" field.

func RealPathLT

func RealPathLT(v string) predicate.Menu

RealPathLT applies the LT predicate on the "real_path" field.

func RealPathLTE

func RealPathLTE(v string) predicate.Menu

RealPathLTE applies the LTE predicate on the "real_path" field.

func RealPathNEQ

func RealPathNEQ(v string) predicate.Menu

RealPathNEQ applies the NEQ predicate on the "real_path" field.

func RealPathNotIn

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

RealPathNotIn applies the NotIn predicate on the "real_path" field.

func RealPathNotNil

func RealPathNotNil() predicate.Menu

RealPathNotNil applies the NotNil predicate on the "real_path" field.

func Redirect

func Redirect(v string) predicate.Menu

Redirect applies equality check predicate on the "redirect" field. It's identical to RedirectEQ.

func RedirectContains

func RedirectContains(v string) predicate.Menu

RedirectContains applies the Contains predicate on the "redirect" field.

func RedirectContainsFold

func RedirectContainsFold(v string) predicate.Menu

RedirectContainsFold applies the ContainsFold predicate on the "redirect" field.

func RedirectEQ

func RedirectEQ(v string) predicate.Menu

RedirectEQ applies the EQ predicate on the "redirect" field.

func RedirectEqualFold

func RedirectEqualFold(v string) predicate.Menu

RedirectEqualFold applies the EqualFold predicate on the "redirect" field.

func RedirectGT

func RedirectGT(v string) predicate.Menu

RedirectGT applies the GT predicate on the "redirect" field.

func RedirectGTE

func RedirectGTE(v string) predicate.Menu

RedirectGTE applies the GTE predicate on the "redirect" field.

func RedirectHasPrefix

func RedirectHasPrefix(v string) predicate.Menu

RedirectHasPrefix applies the HasPrefix predicate on the "redirect" field.

func RedirectHasSuffix

func RedirectHasSuffix(v string) predicate.Menu

RedirectHasSuffix applies the HasSuffix predicate on the "redirect" field.

func RedirectIn

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

RedirectIn applies the In predicate on the "redirect" field.

func RedirectIsNil

func RedirectIsNil() predicate.Menu

RedirectIsNil applies the IsNil predicate on the "redirect" field.

func RedirectLT

func RedirectLT(v string) predicate.Menu

RedirectLT applies the LT predicate on the "redirect" field.

func RedirectLTE

func RedirectLTE(v string) predicate.Menu

RedirectLTE applies the LTE predicate on the "redirect" field.

func RedirectNEQ

func RedirectNEQ(v string) predicate.Menu

RedirectNEQ applies the NEQ predicate on the "redirect" field.

func RedirectNotIn

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

RedirectNotIn applies the NotIn predicate on the "redirect" field.

func RedirectNotNil

func RedirectNotNil() predicate.Menu

RedirectNotNil applies the NotNil predicate on the "redirect" field.

func Sort

func Sort(v uint32) predicate.Menu

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

func SortEQ

func SortEQ(v uint32) predicate.Menu

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

func SortGT

func SortGT(v uint32) predicate.Menu

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

func SortGTE

func SortGTE(v uint32) predicate.Menu

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

func SortIn

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

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

func SortLT

func SortLT(v uint32) predicate.Menu

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

func SortLTE

func SortLTE(v uint32) predicate.Menu

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

func SortNEQ

func SortNEQ(v uint32) predicate.Menu

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

func SortNotIn

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

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

func Title

func Title(v string) predicate.Menu

Title applies equality check predicate on the "title" field. It's identical to TitleEQ.

func TitleContains

func TitleContains(v string) predicate.Menu

TitleContains applies the Contains predicate on the "title" field.

func TitleContainsFold

func TitleContainsFold(v string) predicate.Menu

TitleContainsFold applies the ContainsFold predicate on the "title" field.

func TitleEQ

func TitleEQ(v string) predicate.Menu

TitleEQ applies the EQ predicate on the "title" field.

func TitleEqualFold

func TitleEqualFold(v string) predicate.Menu

TitleEqualFold applies the EqualFold predicate on the "title" field.

func TitleGT

func TitleGT(v string) predicate.Menu

TitleGT applies the GT predicate on the "title" field.

func TitleGTE

func TitleGTE(v string) predicate.Menu

TitleGTE applies the GTE predicate on the "title" field.

func TitleHasPrefix

func TitleHasPrefix(v string) predicate.Menu

TitleHasPrefix applies the HasPrefix predicate on the "title" field.

func TitleHasSuffix

func TitleHasSuffix(v string) predicate.Menu

TitleHasSuffix applies the HasSuffix predicate on the "title" field.

func TitleIn

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

TitleIn applies the In predicate on the "title" field.

func TitleLT

func TitleLT(v string) predicate.Menu

TitleLT applies the LT predicate on the "title" field.

func TitleLTE

func TitleLTE(v string) predicate.Menu

TitleLTE applies the LTE predicate on the "title" field.

func TitleNEQ

func TitleNEQ(v string) predicate.Menu

TitleNEQ applies the NEQ predicate on the "title" field.

func TitleNotIn

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

TitleNotIn applies the NotIn predicate on the "title" 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

type OrderOption added in v1.0.0

type OrderOption func(*sql.Selector)

OrderOption defines the ordering options for the Menu queries.

func ByAffix added in v1.0.0

func ByAffix(opts ...sql.OrderTermOption) OrderOption

ByAffix orders the results by the affix field.

func ByCarryParam added in v1.0.0

func ByCarryParam(opts ...sql.OrderTermOption) OrderOption

ByCarryParam orders the results by the carry_param field.

func ByChildren added in v1.0.0

func ByChildren(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption

ByChildren orders the results by children terms.

func ByChildrenCount added in v1.0.0

func ByChildrenCount(opts ...sql.OrderTermOption) OrderOption

ByChildrenCount orders the results by children count.

func ByComponent added in v1.0.0

func ByComponent(opts ...sql.OrderTermOption) OrderOption

ByComponent orders the results by the component field.

func ByCreatedAt added in v1.0.0

func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption

ByCreatedAt orders the results by the created_at field.

func ByDisabled added in v1.0.0

func ByDisabled(opts ...sql.OrderTermOption) OrderOption

ByDisabled orders the results by the disabled field.

func ByDynamicLevel added in v1.0.0

func ByDynamicLevel(opts ...sql.OrderTermOption) OrderOption

ByDynamicLevel orders the results by the dynamic_level field.

func ByFrameSrc added in v1.0.0

func ByFrameSrc(opts ...sql.OrderTermOption) OrderOption

ByFrameSrc orders the results by the frame_src field.

func ByHideBreadcrumb added in v1.0.0

func ByHideBreadcrumb(opts ...sql.OrderTermOption) OrderOption

ByHideBreadcrumb orders the results by the hide_breadcrumb field.

func ByHideChildrenInMenu added in v1.0.0

func ByHideChildrenInMenu(opts ...sql.OrderTermOption) OrderOption

ByHideChildrenInMenu orders the results by the hide_children_in_menu field.

func ByHideMenu added in v1.0.0

func ByHideMenu(opts ...sql.OrderTermOption) OrderOption

ByHideMenu orders the results by the hide_menu field.

func ByHideTab added in v1.0.0

func ByHideTab(opts ...sql.OrderTermOption) OrderOption

ByHideTab orders the results by the hide_tab field.

func ByID added in v1.0.0

func ByID(opts ...sql.OrderTermOption) OrderOption

ByID orders the results by the id field.

func ByIcon added in v1.0.0

func ByIcon(opts ...sql.OrderTermOption) OrderOption

ByIcon orders the results by the icon field.

func ByIgnoreKeepAlive added in v1.0.0

func ByIgnoreKeepAlive(opts ...sql.OrderTermOption) OrderOption

ByIgnoreKeepAlive orders the results by the ignore_keep_alive field.

func ByMenuLevel added in v1.0.0

func ByMenuLevel(opts ...sql.OrderTermOption) OrderOption

ByMenuLevel orders the results by the menu_level field.

func ByMenuType added in v1.0.0

func ByMenuType(opts ...sql.OrderTermOption) OrderOption

ByMenuType orders the results by the menu_type field.

func ByName added in v1.0.0

func ByName(opts ...sql.OrderTermOption) OrderOption

ByName orders the results by the name field.

func ByParentField added in v1.0.0

func ByParentField(field string, opts ...sql.OrderTermOption) OrderOption

ByParentField orders the results by parent field.

func ByParentID added in v1.0.0

func ByParentID(opts ...sql.OrderTermOption) OrderOption

ByParentID orders the results by the parent_id field.

func ByPath added in v1.0.0

func ByPath(opts ...sql.OrderTermOption) OrderOption

ByPath orders the results by the path field.

func ByRealPath added in v1.0.0

func ByRealPath(opts ...sql.OrderTermOption) OrderOption

ByRealPath orders the results by the real_path field.

func ByRedirect added in v1.0.0

func ByRedirect(opts ...sql.OrderTermOption) OrderOption

ByRedirect orders the results by the redirect field.

func ByRoles added in v1.0.0

func ByRoles(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption

ByRoles orders the results by roles terms.

func ByRolesCount added in v1.0.0

func ByRolesCount(opts ...sql.OrderTermOption) OrderOption

ByRolesCount orders the results by roles count.

func BySort added in v1.0.0

func BySort(opts ...sql.OrderTermOption) OrderOption

BySort orders the results by the sort field.

func ByTitle added in v1.0.0

func ByTitle(opts ...sql.OrderTermOption) OrderOption

ByTitle orders the results by the title field.

func ByUpdatedAt added in v1.0.0

func ByUpdatedAt(opts ...sql.OrderTermOption) OrderOption

ByUpdatedAt orders the results by the updated_at field.

Jump to

Keyboard shortcuts

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