menu

package
v0.0.0-...-96f2668 Latest Latest
Warning

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

Go to latest
Published: Feb 27, 2024 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"
	// FieldRemark holds the string denoting the remark field in the database.
	FieldRemark = "remark"
	// FieldSort holds the string denoting the sort field in the database.
	FieldSort = "sort"
	// FieldState holds the string denoting the state field in the database.
	FieldState = "state"
	// FieldName holds the string denoting the name field in the database.
	FieldName = "name"
	// FieldTitle holds the string denoting the title field in the database.
	FieldTitle = "title"
	// FieldParentID holds the string denoting the parent_id field in the database.
	FieldParentID = "parent_id"
	// FieldType holds the string denoting the type field in the database.
	FieldType = "type"
	// FieldPath holds the string denoting the path field in the database.
	FieldPath = "path"
	// FieldComponent holds the string denoting the component field in the database.
	FieldComponent = "component"
	// FieldIcon holds the string denoting the icon field in the database.
	FieldIcon = "icon"
	// FieldIsExt holds the string denoting the is_ext field in the database.
	FieldIsExt = "is_ext"
	// FieldExtURL holds the string denoting the ext_url field in the database.
	FieldExtURL = "ext_url"
	// FieldPermissions holds the string denoting the permissions field in the database.
	FieldPermissions = "permissions"
	// FieldRedirect holds the string denoting the redirect field in the database.
	FieldRedirect = "redirect"
	// FieldCurrentActiveMenu holds the string denoting the current_active_menu field in the database.
	FieldCurrentActiveMenu = "current_active_menu"
	// FieldKeepAlive holds the string denoting the keep_alive field in the database.
	FieldKeepAlive = "keep_alive"
	// FieldVisible holds the string denoting the visible field in the database.
	FieldVisible = "visible"
	// FieldHideTab holds the string denoting the hide_tab field in the database.
	FieldHideTab = "hide_tab"
	// 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"
	// 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 = "menus"
	// ParentTable is the table that holds the parent relation/edge.
	ParentTable = "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 = "menus"
	// ChildrenColumn is the table column denoting the children relation/edge.
	ChildrenColumn = "parent_id"
)

Variables

View Source
var (
	// DefaultRemark holds the default value on creation for the "remark" field.
	DefaultRemark string
	// DefaultSort holds the default value on creation for the "sort" field.
	DefaultSort int32
	// SortValidator is a validator for the "sort" field. It is called by the builders before save.
	SortValidator func(int32) error
	// DefaultState holds the default value on creation for the "state" field.
	DefaultState int32
	// StateValidator is a validator for the "state" field. It is called by the builders before save.
	StateValidator func(int32) error
	// DefaultName holds the default value on creation for the "name" field.
	DefaultName string
	// NameValidator is a validator for the "name" field. It is called by the builders before save.
	NameValidator func(string) error
	// DefaultTitle holds the default value on creation for the "title" field.
	DefaultTitle string
	// TitleValidator is a validator for the "title" field. It is called by the builders before save.
	TitleValidator func(string) error
	// DefaultParentID holds the default value on creation for the "parent_id" field.
	DefaultParentID uint32
	// DefaultType holds the default value on creation for the "type" field.
	DefaultType int32
	// DefaultPath holds the default value on creation for the "path" field.
	DefaultPath string
	// DefaultComponent holds the default value on creation for the "component" field.
	DefaultComponent string
	// DefaultIcon holds the default value on creation for the "icon" field.
	DefaultIcon string
	// IconValidator is a validator for the "icon" field. It is called by the builders before save.
	IconValidator func(string) error
	// DefaultIsExt holds the default value on creation for the "is_ext" field.
	DefaultIsExt bool
	// DefaultExtURL holds the default value on creation for the "ext_url" field.
	DefaultExtURL string
	// ExtURLValidator is a validator for the "ext_url" field. It is called by the builders before save.
	ExtURLValidator func(string) error
	// DefaultPermissions holds the default value on creation for the "permissions" field.
	DefaultPermissions []string
	// DefaultRedirect holds the default value on creation for the "redirect" field.
	DefaultRedirect string
	// DefaultCurrentActiveMenu holds the default value on creation for the "current_active_menu" field.
	DefaultCurrentActiveMenu string
	// DefaultKeepAlive holds the default value on creation for the "keep_alive" field.
	DefaultKeepAlive bool
	// DefaultVisible holds the default value on creation for the "visible" field.
	DefaultVisible bool
	// DefaultHideTab holds the default value on creation for the "hide_tab" field.
	DefaultHideTab 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
	// IDValidator is a validator for the "id" field. It is called by the builders before save.
	IDValidator func(uint32) error
)

Columns holds all SQL columns for menu fields.

Functions

func And

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

And groups predicates with the AND operator between them.

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 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 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 CreatedAtIsNil

func CreatedAtIsNil() predicate.Menu

CreatedAtIsNil applies the IsNil 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 CreatedAtNotNil

func CreatedAtNotNil() predicate.Menu

CreatedAtNotNil applies the NotNil predicate on the "created_at" field.

func CurrentActiveMenu

func CurrentActiveMenu(v string) predicate.Menu

CurrentActiveMenu applies equality check predicate on the "current_active_menu" field. It's identical to CurrentActiveMenuEQ.

func CurrentActiveMenuContains

func CurrentActiveMenuContains(v string) predicate.Menu

CurrentActiveMenuContains applies the Contains predicate on the "current_active_menu" field.

func CurrentActiveMenuContainsFold

func CurrentActiveMenuContainsFold(v string) predicate.Menu

CurrentActiveMenuContainsFold applies the ContainsFold predicate on the "current_active_menu" field.

func CurrentActiveMenuEQ

func CurrentActiveMenuEQ(v string) predicate.Menu

CurrentActiveMenuEQ applies the EQ predicate on the "current_active_menu" field.

func CurrentActiveMenuEqualFold

func CurrentActiveMenuEqualFold(v string) predicate.Menu

CurrentActiveMenuEqualFold applies the EqualFold predicate on the "current_active_menu" field.

func CurrentActiveMenuGT

func CurrentActiveMenuGT(v string) predicate.Menu

CurrentActiveMenuGT applies the GT predicate on the "current_active_menu" field.

func CurrentActiveMenuGTE

func CurrentActiveMenuGTE(v string) predicate.Menu

CurrentActiveMenuGTE applies the GTE predicate on the "current_active_menu" field.

func CurrentActiveMenuHasPrefix

func CurrentActiveMenuHasPrefix(v string) predicate.Menu

CurrentActiveMenuHasPrefix applies the HasPrefix predicate on the "current_active_menu" field.

func CurrentActiveMenuHasSuffix

func CurrentActiveMenuHasSuffix(v string) predicate.Menu

CurrentActiveMenuHasSuffix applies the HasSuffix predicate on the "current_active_menu" field.

func CurrentActiveMenuIn

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

CurrentActiveMenuIn applies the In predicate on the "current_active_menu" field.

func CurrentActiveMenuLT

func CurrentActiveMenuLT(v string) predicate.Menu

CurrentActiveMenuLT applies the LT predicate on the "current_active_menu" field.

func CurrentActiveMenuLTE

func CurrentActiveMenuLTE(v string) predicate.Menu

CurrentActiveMenuLTE applies the LTE predicate on the "current_active_menu" field.

func CurrentActiveMenuNEQ

func CurrentActiveMenuNEQ(v string) predicate.Menu

CurrentActiveMenuNEQ applies the NEQ predicate on the "current_active_menu" field.

func CurrentActiveMenuNotIn

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

CurrentActiveMenuNotIn applies the NotIn predicate on the "current_active_menu" 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 ExtURL

func ExtURL(v string) predicate.Menu

ExtURL applies equality check predicate on the "ext_url" field. It's identical to ExtURLEQ.

func ExtURLContains

func ExtURLContains(v string) predicate.Menu

ExtURLContains applies the Contains predicate on the "ext_url" field.

func ExtURLContainsFold

func ExtURLContainsFold(v string) predicate.Menu

ExtURLContainsFold applies the ContainsFold predicate on the "ext_url" field.

func ExtURLEQ

func ExtURLEQ(v string) predicate.Menu

ExtURLEQ applies the EQ predicate on the "ext_url" field.

func ExtURLEqualFold

func ExtURLEqualFold(v string) predicate.Menu

ExtURLEqualFold applies the EqualFold predicate on the "ext_url" field.

func ExtURLGT

func ExtURLGT(v string) predicate.Menu

ExtURLGT applies the GT predicate on the "ext_url" field.

func ExtURLGTE

func ExtURLGTE(v string) predicate.Menu

ExtURLGTE applies the GTE predicate on the "ext_url" field.

func ExtURLHasPrefix

func ExtURLHasPrefix(v string) predicate.Menu

ExtURLHasPrefix applies the HasPrefix predicate on the "ext_url" field.

func ExtURLHasSuffix

func ExtURLHasSuffix(v string) predicate.Menu

ExtURLHasSuffix applies the HasSuffix predicate on the "ext_url" field.

func ExtURLIn

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

ExtURLIn applies the In predicate on the "ext_url" field.

func ExtURLLT

func ExtURLLT(v string) predicate.Menu

ExtURLLT applies the LT predicate on the "ext_url" field.

func ExtURLLTE

func ExtURLLTE(v string) predicate.Menu

ExtURLLTE applies the LTE predicate on the "ext_url" field.

func ExtURLNEQ

func ExtURLNEQ(v string) predicate.Menu

ExtURLNEQ applies the NEQ predicate on the "ext_url" field.

func ExtURLNotIn

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

ExtURLNotIn applies the NotIn predicate on the "ext_url" 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 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 HideBreadcrumbNEQ

func HideBreadcrumbNEQ(v bool) predicate.Menu

HideBreadcrumbNEQ applies the NEQ predicate on the "hide_breadcrumb" 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 HideMenuNEQ

func HideMenuNEQ(v bool) predicate.Menu

HideMenuNEQ applies the NEQ 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 HideTabNEQ

func HideTabNEQ(v bool) predicate.Menu

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

func ID

func ID(id uint32) predicate.Menu

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id uint32) predicate.Menu

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id uint32) predicate.Menu

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id uint32) predicate.Menu

IDGTE applies the GTE predicate on the ID field.

func IDIn

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

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id uint32) predicate.Menu

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id uint32) predicate.Menu

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id uint32) predicate.Menu

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

func IDNotIn(ids ...uint32) 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 IsExt

func IsExt(v bool) predicate.Menu

IsExt applies equality check predicate on the "is_ext" field. It's identical to IsExtEQ.

func IsExtEQ

func IsExtEQ(v bool) predicate.Menu

IsExtEQ applies the EQ predicate on the "is_ext" field.

func IsExtNEQ

func IsExtNEQ(v bool) predicate.Menu

IsExtNEQ applies the NEQ predicate on the "is_ext" field.

func KeepAlive

func KeepAlive(v bool) predicate.Menu

KeepAlive applies equality check predicate on the "keep_alive" field. It's identical to KeepAliveEQ.

func KeepAliveEQ

func KeepAliveEQ(v bool) predicate.Menu

KeepAliveEQ applies the EQ predicate on the "keep_alive" field.

func KeepAliveNEQ

func KeepAliveNEQ(v bool) predicate.Menu

KeepAliveNEQ applies the NEQ predicate on the "keep_alive" 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 uint32) predicate.Menu

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

func ParentIDEQ

func ParentIDEQ(v uint32) predicate.Menu

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

func ParentIDIn

func ParentIDIn(vs ...uint32) 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 uint32) predicate.Menu

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

func ParentIDNotIn

func ParentIDNotIn(vs ...uint32) 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 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 PermissionsIsNil

func PermissionsIsNil() predicate.Menu

PermissionsIsNil applies the IsNil predicate on the "permissions" field.

func PermissionsNotNil

func PermissionsNotNil() predicate.Menu

PermissionsNotNil applies the NotNil predicate on the "permissions" 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 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 Remark

func Remark(v string) predicate.Menu

Remark applies equality check predicate on the "remark" field. It's identical to RemarkEQ.

func RemarkContains

func RemarkContains(v string) predicate.Menu

RemarkContains applies the Contains predicate on the "remark" field.

func RemarkContainsFold

func RemarkContainsFold(v string) predicate.Menu

RemarkContainsFold applies the ContainsFold predicate on the "remark" field.

func RemarkEQ

func RemarkEQ(v string) predicate.Menu

RemarkEQ applies the EQ predicate on the "remark" field.

func RemarkEqualFold

func RemarkEqualFold(v string) predicate.Menu

RemarkEqualFold applies the EqualFold predicate on the "remark" field.

func RemarkGT

func RemarkGT(v string) predicate.Menu

RemarkGT applies the GT predicate on the "remark" field.

func RemarkGTE

func RemarkGTE(v string) predicate.Menu

RemarkGTE applies the GTE predicate on the "remark" field.

func RemarkHasPrefix

func RemarkHasPrefix(v string) predicate.Menu

RemarkHasPrefix applies the HasPrefix predicate on the "remark" field.

func RemarkHasSuffix

func RemarkHasSuffix(v string) predicate.Menu

RemarkHasSuffix applies the HasSuffix predicate on the "remark" field.

func RemarkIn

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

RemarkIn applies the In predicate on the "remark" field.

func RemarkIsNil

func RemarkIsNil() predicate.Menu

RemarkIsNil applies the IsNil predicate on the "remark" field.

func RemarkLT

func RemarkLT(v string) predicate.Menu

RemarkLT applies the LT predicate on the "remark" field.

func RemarkLTE

func RemarkLTE(v string) predicate.Menu

RemarkLTE applies the LTE predicate on the "remark" field.

func RemarkNEQ

func RemarkNEQ(v string) predicate.Menu

RemarkNEQ applies the NEQ predicate on the "remark" field.

func RemarkNotIn

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

RemarkNotIn applies the NotIn predicate on the "remark" field.

func RemarkNotNil

func RemarkNotNil() predicate.Menu

RemarkNotNil applies the NotNil predicate on the "remark" field.

func Sort

func Sort(v int32) predicate.Menu

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

func SortEQ

func SortEQ(v int32) predicate.Menu

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

func SortGT

func SortGT(v int32) predicate.Menu

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

func SortGTE

func SortGTE(v int32) predicate.Menu

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

func SortIn

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

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

func SortLT

func SortLT(v int32) predicate.Menu

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

func SortLTE

func SortLTE(v int32) predicate.Menu

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

func SortNEQ

func SortNEQ(v int32) predicate.Menu

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

func SortNotIn

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

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

func State

func State(v int32) predicate.Menu

State applies equality check predicate on the "state" field. It's identical to StateEQ.

func StateEQ

func StateEQ(v int32) predicate.Menu

StateEQ applies the EQ predicate on the "state" field.

func StateGT

func StateGT(v int32) predicate.Menu

StateGT applies the GT predicate on the "state" field.

func StateGTE

func StateGTE(v int32) predicate.Menu

StateGTE applies the GTE predicate on the "state" field.

func StateIn

func StateIn(vs ...int32) predicate.Menu

StateIn applies the In predicate on the "state" field.

func StateLT

func StateLT(v int32) predicate.Menu

StateLT applies the LT predicate on the "state" field.

func StateLTE

func StateLTE(v int32) predicate.Menu

StateLTE applies the LTE predicate on the "state" field.

func StateNEQ

func StateNEQ(v int32) predicate.Menu

StateNEQ applies the NEQ predicate on the "state" field.

func StateNotIn

func StateNotIn(vs ...int32) predicate.Menu

StateNotIn applies the NotIn predicate on the "state" 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 Type

func Type(v int32) predicate.Menu

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

func TypeEQ

func TypeEQ(v int32) predicate.Menu

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

func TypeGT

func TypeGT(v int32) predicate.Menu

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

func TypeGTE

func TypeGTE(v int32) predicate.Menu

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

func TypeIn

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

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

func TypeLT

func TypeLT(v int32) predicate.Menu

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

func TypeLTE

func TypeLTE(v int32) predicate.Menu

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

func TypeNEQ

func TypeNEQ(v int32) predicate.Menu

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

func TypeNotIn

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

TypeNotIn applies the NotIn 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 UpdatedAtIsNil

func UpdatedAtIsNil() predicate.Menu

UpdatedAtIsNil applies the IsNil 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 UpdatedAtNotNil

func UpdatedAtNotNil() predicate.Menu

UpdatedAtNotNil applies the NotNil 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).

func Visible

func Visible(v bool) predicate.Menu

Visible applies equality check predicate on the "visible" field. It's identical to VisibleEQ.

func VisibleEQ

func VisibleEQ(v bool) predicate.Menu

VisibleEQ applies the EQ predicate on the "visible" field.

func VisibleNEQ

func VisibleNEQ(v bool) predicate.Menu

VisibleNEQ applies the NEQ predicate on the "visible" field.

Types

type OrderOption

type OrderOption func(*sql.Selector)

OrderOption defines the ordering options for the Menu queries.

func ByChildren

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

ByChildren orders the results by children terms.

func ByChildrenCount

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

ByChildrenCount orders the results by children count.

func ByComponent

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

ByComponent orders the results by the component field.

func ByCreatedAt

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

ByCreatedAt orders the results by the created_at field.

func ByCurrentActiveMenu

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

ByCurrentActiveMenu orders the results by the current_active_menu field.

func ByDeletedAt

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

ByDeletedAt orders the results by the deleted_at field.

func ByExtURL

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

ByExtURL orders the results by the ext_url field.

func ByHideBreadcrumb

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

ByHideBreadcrumb orders the results by the hide_breadcrumb field.

func ByHideMenu

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

ByHideMenu orders the results by the hide_menu field.

func ByHideTab

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

ByHideTab orders the results by the hide_tab field.

func ByID

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

ByID orders the results by the id field.

func ByIcon

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

ByIcon orders the results by the icon field.

func ByIsExt

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

ByIsExt orders the results by the is_ext field.

func ByKeepAlive

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

ByKeepAlive orders the results by the keep_alive field.

func ByName

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

ByName orders the results by the name field.

func ByParentField

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

ByParentField orders the results by parent field.

func ByParentID

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

ByParentID orders the results by the parent_id field.

func ByPath

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

ByPath orders the results by the path field.

func ByRedirect

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

ByRedirect orders the results by the redirect field.

func ByRemark

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

ByRemark orders the results by the remark field.

func BySort

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

BySort orders the results by the sort field.

func ByState

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

ByState orders the results by the state field.

func ByTitle

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

ByTitle orders the results by the title field.

func ByType

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

ByType orders the results by the type field.

func ByUpdatedAt

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

ByUpdatedAt orders the results by the updated_at field.

func ByVisible

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

ByVisible orders the results by the visible field.

Jump to

Keyboard shortcuts

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