menus

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Jul 8, 2026 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the menus type in the database.
	Label = "menus"
	// 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"
	// FieldCreatedBy holds the string denoting the created_by field in the database.
	FieldCreatedBy = "created_by"
	// FieldUpdatedBy holds the string denoting the updated_by field in the database.
	FieldUpdatedBy = "updated_by"
	// FieldParentID holds the string denoting the parent_id field in the database.
	FieldParentID = "parent_id"
	// FieldCode holds the string denoting the code field in the database.
	FieldCode = "code"
	// FieldDisplayName holds the string denoting the display_name field in the database.
	FieldDisplayName = "display_name"
	// FieldRoutePath holds the string denoting the route_path field in the database.
	FieldRoutePath = "route_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"
	// FieldSortOrder holds the string denoting the sort_order field in the database.
	FieldSortOrder = "sort_order"
	// FieldVisibility holds the string denoting the visibility field in the database.
	FieldVisibility = "visibility"
	// FieldMenuStatus holds the string denoting the menu_status field in the database.
	FieldMenuStatus = "menu_status"
	// FieldMetadata holds the string denoting the metadata field in the database.
	FieldMetadata = "metadata"
	// FieldDescription holds the string denoting the description field in the database.
	FieldDescription = "description"
	// FieldProtected holds the string denoting the protected field in the database.
	FieldProtected = "protected"
	// EdgeLionRoleMenus holds the string denoting the lion_role_menus edge name in mutations.
	EdgeLionRoleMenus = "lion_role_menus"
	// Table holds the table name of the menus in the database.
	Table = "lion_menus"
	// LionRoleMenusTable is the table that holds the lion_role_menus relation/edge.
	LionRoleMenusTable = "lion_role_menus"
	// LionRoleMenusInverseTable is the table name for the RoleMenus entity.
	// It exists in this package in order to avoid circular dependency with the "rolemenus" package.
	LionRoleMenusInverseTable = "lion_role_menus"
	// LionRoleMenusColumn is the table column denoting the lion_role_menus relation/edge.
	LionRoleMenusColumn = "menu_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
	// DefaultCreatedBy holds the default value on creation for the "created_by" field.
	DefaultCreatedBy int64
	// DefaultUpdatedBy holds the default value on creation for the "updated_by" field.
	DefaultUpdatedBy int64
	// DefaultParentID holds the default value on creation for the "parent_id" field.
	DefaultParentID int64
	// CodeValidator is a validator for the "code" field. It is called by the builders before save.
	CodeValidator func(string) error
	// DefaultDisplayName holds the default value on creation for the "display_name" field.
	DefaultDisplayName string
	// DisplayNameValidator is a validator for the "display_name" field. It is called by the builders before save.
	DisplayNameValidator func(string) error
	// DefaultRoutePath holds the default value on creation for the "route_path" field.
	DefaultRoutePath string
	// RoutePathValidator is a validator for the "route_path" field. It is called by the builders before save.
	RoutePathValidator func(string) error
	// DefaultComponent holds the default value on creation for the "component" field.
	DefaultComponent string
	// ComponentValidator is a validator for the "component" field. It is called by the builders before save.
	ComponentValidator func(string) error
	// 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
	// DefaultSortOrder holds the default value on creation for the "sort_order" field.
	DefaultSortOrder int
	// DefaultVisibility holds the default value on creation for the "visibility" field.
	DefaultVisibility string
	// VisibilityValidator is a validator for the "visibility" field. It is called by the builders before save.
	VisibilityValidator func(string) error
	// DefaultMenuStatus holds the default value on creation for the "menu_status" field.
	DefaultMenuStatus string
	// MenuStatusValidator is a validator for the "menu_status" field. It is called by the builders before save.
	MenuStatusValidator func(string) error
	// DefaultDescription holds the default value on creation for the "description" field.
	DefaultDescription string
	// DefaultProtected holds the default value on creation for the "protected" field.
	DefaultProtected bool
)

Columns holds all SQL columns for menus fields.

Functions

func And

func And(predicates ...predicate.Menus) predicate.Menus

And groups predicates with the AND operator between them.

func Code

func Code(v string) predicate.Menus

Code applies equality check predicate on the "code" field. It's identical to CodeEQ.

func CodeContains

func CodeContains(v string) predicate.Menus

CodeContains applies the Contains predicate on the "code" field.

func CodeContainsFold

func CodeContainsFold(v string) predicate.Menus

CodeContainsFold applies the ContainsFold predicate on the "code" field.

func CodeEQ

func CodeEQ(v string) predicate.Menus

CodeEQ applies the EQ predicate on the "code" field.

func CodeEqualFold

func CodeEqualFold(v string) predicate.Menus

CodeEqualFold applies the EqualFold predicate on the "code" field.

func CodeGT

func CodeGT(v string) predicate.Menus

CodeGT applies the GT predicate on the "code" field.

func CodeGTE

func CodeGTE(v string) predicate.Menus

CodeGTE applies the GTE predicate on the "code" field.

func CodeHasPrefix

func CodeHasPrefix(v string) predicate.Menus

CodeHasPrefix applies the HasPrefix predicate on the "code" field.

func CodeHasSuffix

func CodeHasSuffix(v string) predicate.Menus

CodeHasSuffix applies the HasSuffix predicate on the "code" field.

func CodeIn

func CodeIn(vs ...string) predicate.Menus

CodeIn applies the In predicate on the "code" field.

func CodeLT

func CodeLT(v string) predicate.Menus

CodeLT applies the LT predicate on the "code" field.

func CodeLTE

func CodeLTE(v string) predicate.Menus

CodeLTE applies the LTE predicate on the "code" field.

func CodeNEQ

func CodeNEQ(v string) predicate.Menus

CodeNEQ applies the NEQ predicate on the "code" field.

func CodeNotIn

func CodeNotIn(vs ...string) predicate.Menus

CodeNotIn applies the NotIn predicate on the "code" field.

func Component

func Component(v string) predicate.Menus

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

func ComponentContains

func ComponentContains(v string) predicate.Menus

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

func ComponentContainsFold

func ComponentContainsFold(v string) predicate.Menus

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

func ComponentEQ

func ComponentEQ(v string) predicate.Menus

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

func ComponentEqualFold

func ComponentEqualFold(v string) predicate.Menus

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

func ComponentGT

func ComponentGT(v string) predicate.Menus

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

func ComponentGTE

func ComponentGTE(v string) predicate.Menus

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

func ComponentHasPrefix

func ComponentHasPrefix(v string) predicate.Menus

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

func ComponentHasSuffix

func ComponentHasSuffix(v string) predicate.Menus

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

func ComponentIn

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

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

func ComponentLT

func ComponentLT(v string) predicate.Menus

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

func ComponentLTE

func ComponentLTE(v string) predicate.Menus

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

func ComponentNEQ

func ComponentNEQ(v string) predicate.Menus

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

func ComponentNotIn

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

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

func CreatedAt

func CreatedAt(v time.Time) predicate.Menus

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

func CreatedAtEQ

func CreatedAtEQ(v time.Time) predicate.Menus

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

func CreatedAtGT

func CreatedAtGT(v time.Time) predicate.Menus

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

func CreatedAtGTE

func CreatedAtGTE(v time.Time) predicate.Menus

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

func CreatedAtIn

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

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

func CreatedAtLT

func CreatedAtLT(v time.Time) predicate.Menus

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

func CreatedAtLTE

func CreatedAtLTE(v time.Time) predicate.Menus

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

func CreatedAtNEQ

func CreatedAtNEQ(v time.Time) predicate.Menus

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

func CreatedAtNotIn

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

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

func CreatedBy

func CreatedBy(v int64) predicate.Menus

CreatedBy applies equality check predicate on the "created_by" field. It's identical to CreatedByEQ.

func CreatedByEQ

func CreatedByEQ(v int64) predicate.Menus

CreatedByEQ applies the EQ predicate on the "created_by" field.

func CreatedByGT

func CreatedByGT(v int64) predicate.Menus

CreatedByGT applies the GT predicate on the "created_by" field.

func CreatedByGTE

func CreatedByGTE(v int64) predicate.Menus

CreatedByGTE applies the GTE predicate on the "created_by" field.

func CreatedByIn

func CreatedByIn(vs ...int64) predicate.Menus

CreatedByIn applies the In predicate on the "created_by" field.

func CreatedByIsNil

func CreatedByIsNil() predicate.Menus

CreatedByIsNil applies the IsNil predicate on the "created_by" field.

func CreatedByLT

func CreatedByLT(v int64) predicate.Menus

CreatedByLT applies the LT predicate on the "created_by" field.

func CreatedByLTE

func CreatedByLTE(v int64) predicate.Menus

CreatedByLTE applies the LTE predicate on the "created_by" field.

func CreatedByNEQ

func CreatedByNEQ(v int64) predicate.Menus

CreatedByNEQ applies the NEQ predicate on the "created_by" field.

func CreatedByNotIn

func CreatedByNotIn(vs ...int64) predicate.Menus

CreatedByNotIn applies the NotIn predicate on the "created_by" field.

func CreatedByNotNil

func CreatedByNotNil() predicate.Menus

CreatedByNotNil applies the NotNil predicate on the "created_by" field.

func Description

func Description(v string) predicate.Menus

Description applies equality check predicate on the "description" field. It's identical to DescriptionEQ.

func DescriptionContains

func DescriptionContains(v string) predicate.Menus

DescriptionContains applies the Contains predicate on the "description" field.

func DescriptionContainsFold

func DescriptionContainsFold(v string) predicate.Menus

DescriptionContainsFold applies the ContainsFold predicate on the "description" field.

func DescriptionEQ

func DescriptionEQ(v string) predicate.Menus

DescriptionEQ applies the EQ predicate on the "description" field.

func DescriptionEqualFold

func DescriptionEqualFold(v string) predicate.Menus

DescriptionEqualFold applies the EqualFold predicate on the "description" field.

func DescriptionGT

func DescriptionGT(v string) predicate.Menus

DescriptionGT applies the GT predicate on the "description" field.

func DescriptionGTE

func DescriptionGTE(v string) predicate.Menus

DescriptionGTE applies the GTE predicate on the "description" field.

func DescriptionHasPrefix

func DescriptionHasPrefix(v string) predicate.Menus

DescriptionHasPrefix applies the HasPrefix predicate on the "description" field.

func DescriptionHasSuffix

func DescriptionHasSuffix(v string) predicate.Menus

DescriptionHasSuffix applies the HasSuffix predicate on the "description" field.

func DescriptionIn

func DescriptionIn(vs ...string) predicate.Menus

DescriptionIn applies the In predicate on the "description" field.

func DescriptionLT

func DescriptionLT(v string) predicate.Menus

DescriptionLT applies the LT predicate on the "description" field.

func DescriptionLTE

func DescriptionLTE(v string) predicate.Menus

DescriptionLTE applies the LTE predicate on the "description" field.

func DescriptionNEQ

func DescriptionNEQ(v string) predicate.Menus

DescriptionNEQ applies the NEQ predicate on the "description" field.

func DescriptionNotIn

func DescriptionNotIn(vs ...string) predicate.Menus

DescriptionNotIn applies the NotIn predicate on the "description" field.

func DisplayName

func DisplayName(v string) predicate.Menus

DisplayName applies equality check predicate on the "display_name" field. It's identical to DisplayNameEQ.

func DisplayNameContains

func DisplayNameContains(v string) predicate.Menus

DisplayNameContains applies the Contains predicate on the "display_name" field.

func DisplayNameContainsFold

func DisplayNameContainsFold(v string) predicate.Menus

DisplayNameContainsFold applies the ContainsFold predicate on the "display_name" field.

func DisplayNameEQ

func DisplayNameEQ(v string) predicate.Menus

DisplayNameEQ applies the EQ predicate on the "display_name" field.

func DisplayNameEqualFold

func DisplayNameEqualFold(v string) predicate.Menus

DisplayNameEqualFold applies the EqualFold predicate on the "display_name" field.

func DisplayNameGT

func DisplayNameGT(v string) predicate.Menus

DisplayNameGT applies the GT predicate on the "display_name" field.

func DisplayNameGTE

func DisplayNameGTE(v string) predicate.Menus

DisplayNameGTE applies the GTE predicate on the "display_name" field.

func DisplayNameHasPrefix

func DisplayNameHasPrefix(v string) predicate.Menus

DisplayNameHasPrefix applies the HasPrefix predicate on the "display_name" field.

func DisplayNameHasSuffix

func DisplayNameHasSuffix(v string) predicate.Menus

DisplayNameHasSuffix applies the HasSuffix predicate on the "display_name" field.

func DisplayNameIn

func DisplayNameIn(vs ...string) predicate.Menus

DisplayNameIn applies the In predicate on the "display_name" field.

func DisplayNameLT

func DisplayNameLT(v string) predicate.Menus

DisplayNameLT applies the LT predicate on the "display_name" field.

func DisplayNameLTE

func DisplayNameLTE(v string) predicate.Menus

DisplayNameLTE applies the LTE predicate on the "display_name" field.

func DisplayNameNEQ

func DisplayNameNEQ(v string) predicate.Menus

DisplayNameNEQ applies the NEQ predicate on the "display_name" field.

func DisplayNameNotIn

func DisplayNameNotIn(vs ...string) predicate.Menus

DisplayNameNotIn applies the NotIn predicate on the "display_name" field.

func HasLionRoleMenus

func HasLionRoleMenus() predicate.Menus

HasLionRoleMenus applies the HasEdge predicate on the "lion_role_menus" edge.

func HasLionRoleMenusWith

func HasLionRoleMenusWith(preds ...predicate.RoleMenus) predicate.Menus

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

func ID

func ID(id int) predicate.Menus

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id int) predicate.Menus

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id int) predicate.Menus

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id int) predicate.Menus

IDGTE applies the GTE predicate on the ID field.

func IDIn

func IDIn(ids ...int) predicate.Menus

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id int) predicate.Menus

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id int) predicate.Menus

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id int) predicate.Menus

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

func IDNotIn(ids ...int) predicate.Menus

IDNotIn applies the NotIn predicate on the ID field.

func Icon

func Icon(v string) predicate.Menus

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

func IconContains

func IconContains(v string) predicate.Menus

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

func IconContainsFold

func IconContainsFold(v string) predicate.Menus

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

func IconEQ

func IconEQ(v string) predicate.Menus

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

func IconEqualFold

func IconEqualFold(v string) predicate.Menus

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

func IconGT

func IconGT(v string) predicate.Menus

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

func IconGTE

func IconGTE(v string) predicate.Menus

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

func IconHasPrefix

func IconHasPrefix(v string) predicate.Menus

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

func IconHasSuffix

func IconHasSuffix(v string) predicate.Menus

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

func IconIn

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

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

func IconLT

func IconLT(v string) predicate.Menus

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

func IconLTE

func IconLTE(v string) predicate.Menus

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

func IconNEQ

func IconNEQ(v string) predicate.Menus

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

func IconNotIn

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

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

func MenuStatus(v string) predicate.Menus

MenuStatus applies equality check predicate on the "menu_status" field. It's identical to MenuStatusEQ.

func MenuStatusContains(v string) predicate.Menus

MenuStatusContains applies the Contains predicate on the "menu_status" field.

func MenuStatusContainsFold(v string) predicate.Menus

MenuStatusContainsFold applies the ContainsFold predicate on the "menu_status" field.

func MenuStatusEQ(v string) predicate.Menus

MenuStatusEQ applies the EQ predicate on the "menu_status" field.

func MenuStatusEqualFold(v string) predicate.Menus

MenuStatusEqualFold applies the EqualFold predicate on the "menu_status" field.

func MenuStatusGT(v string) predicate.Menus

MenuStatusGT applies the GT predicate on the "menu_status" field.

func MenuStatusGTE(v string) predicate.Menus

MenuStatusGTE applies the GTE predicate on the "menu_status" field.

func MenuStatusHasPrefix(v string) predicate.Menus

MenuStatusHasPrefix applies the HasPrefix predicate on the "menu_status" field.

func MenuStatusHasSuffix(v string) predicate.Menus

MenuStatusHasSuffix applies the HasSuffix predicate on the "menu_status" field.

func MenuStatusIn(vs ...string) predicate.Menus

MenuStatusIn applies the In predicate on the "menu_status" field.

func MenuStatusLT(v string) predicate.Menus

MenuStatusLT applies the LT predicate on the "menu_status" field.

func MenuStatusLTE(v string) predicate.Menus

MenuStatusLTE applies the LTE predicate on the "menu_status" field.

func MenuStatusNEQ(v string) predicate.Menus

MenuStatusNEQ applies the NEQ predicate on the "menu_status" field.

func MenuStatusNotIn(vs ...string) predicate.Menus

MenuStatusNotIn applies the NotIn predicate on the "menu_status" field.

func MetadataIsNil

func MetadataIsNil() predicate.Menus

MetadataIsNil applies the IsNil predicate on the "metadata" field.

func MetadataNotNil

func MetadataNotNil() predicate.Menus

MetadataNotNil applies the NotNil predicate on the "metadata" field.

func Not

Not applies the not operator on the given predicate.

func Or

func Or(predicates ...predicate.Menus) predicate.Menus

Or groups predicates with the OR operator between them.

func ParentID

func ParentID(v int64) predicate.Menus

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

func ParentIDEQ

func ParentIDEQ(v int64) predicate.Menus

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

func ParentIDGT

func ParentIDGT(v int64) predicate.Menus

ParentIDGT applies the GT predicate on the "parent_id" field.

func ParentIDGTE

func ParentIDGTE(v int64) predicate.Menus

ParentIDGTE applies the GTE predicate on the "parent_id" field.

func ParentIDIn

func ParentIDIn(vs ...int64) predicate.Menus

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

func ParentIDLT

func ParentIDLT(v int64) predicate.Menus

ParentIDLT applies the LT predicate on the "parent_id" field.

func ParentIDLTE

func ParentIDLTE(v int64) predicate.Menus

ParentIDLTE applies the LTE predicate on the "parent_id" field.

func ParentIDNEQ

func ParentIDNEQ(v int64) predicate.Menus

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

func ParentIDNotIn

func ParentIDNotIn(vs ...int64) predicate.Menus

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

func Protected

func Protected(v bool) predicate.Menus

Protected applies equality check predicate on the "protected" field. It's identical to ProtectedEQ.

func ProtectedEQ

func ProtectedEQ(v bool) predicate.Menus

ProtectedEQ applies the EQ predicate on the "protected" field.

func ProtectedNEQ

func ProtectedNEQ(v bool) predicate.Menus

ProtectedNEQ applies the NEQ predicate on the "protected" field.

func RoutePath

func RoutePath(v string) predicate.Menus

RoutePath applies equality check predicate on the "route_path" field. It's identical to RoutePathEQ.

func RoutePathContains

func RoutePathContains(v string) predicate.Menus

RoutePathContains applies the Contains predicate on the "route_path" field.

func RoutePathContainsFold

func RoutePathContainsFold(v string) predicate.Menus

RoutePathContainsFold applies the ContainsFold predicate on the "route_path" field.

func RoutePathEQ

func RoutePathEQ(v string) predicate.Menus

RoutePathEQ applies the EQ predicate on the "route_path" field.

func RoutePathEqualFold

func RoutePathEqualFold(v string) predicate.Menus

RoutePathEqualFold applies the EqualFold predicate on the "route_path" field.

func RoutePathGT

func RoutePathGT(v string) predicate.Menus

RoutePathGT applies the GT predicate on the "route_path" field.

func RoutePathGTE

func RoutePathGTE(v string) predicate.Menus

RoutePathGTE applies the GTE predicate on the "route_path" field.

func RoutePathHasPrefix

func RoutePathHasPrefix(v string) predicate.Menus

RoutePathHasPrefix applies the HasPrefix predicate on the "route_path" field.

func RoutePathHasSuffix

func RoutePathHasSuffix(v string) predicate.Menus

RoutePathHasSuffix applies the HasSuffix predicate on the "route_path" field.

func RoutePathIn

func RoutePathIn(vs ...string) predicate.Menus

RoutePathIn applies the In predicate on the "route_path" field.

func RoutePathLT

func RoutePathLT(v string) predicate.Menus

RoutePathLT applies the LT predicate on the "route_path" field.

func RoutePathLTE

func RoutePathLTE(v string) predicate.Menus

RoutePathLTE applies the LTE predicate on the "route_path" field.

func RoutePathNEQ

func RoutePathNEQ(v string) predicate.Menus

RoutePathNEQ applies the NEQ predicate on the "route_path" field.

func RoutePathNotIn

func RoutePathNotIn(vs ...string) predicate.Menus

RoutePathNotIn applies the NotIn predicate on the "route_path" field.

func SortOrder

func SortOrder(v int) predicate.Menus

SortOrder applies equality check predicate on the "sort_order" field. It's identical to SortOrderEQ.

func SortOrderEQ

func SortOrderEQ(v int) predicate.Menus

SortOrderEQ applies the EQ predicate on the "sort_order" field.

func SortOrderGT

func SortOrderGT(v int) predicate.Menus

SortOrderGT applies the GT predicate on the "sort_order" field.

func SortOrderGTE

func SortOrderGTE(v int) predicate.Menus

SortOrderGTE applies the GTE predicate on the "sort_order" field.

func SortOrderIn

func SortOrderIn(vs ...int) predicate.Menus

SortOrderIn applies the In predicate on the "sort_order" field.

func SortOrderLT

func SortOrderLT(v int) predicate.Menus

SortOrderLT applies the LT predicate on the "sort_order" field.

func SortOrderLTE

func SortOrderLTE(v int) predicate.Menus

SortOrderLTE applies the LTE predicate on the "sort_order" field.

func SortOrderNEQ

func SortOrderNEQ(v int) predicate.Menus

SortOrderNEQ applies the NEQ predicate on the "sort_order" field.

func SortOrderNotIn

func SortOrderNotIn(vs ...int) predicate.Menus

SortOrderNotIn applies the NotIn predicate on the "sort_order" field.

func UpdatedAt

func UpdatedAt(v time.Time) predicate.Menus

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

func UpdatedAtEQ

func UpdatedAtEQ(v time.Time) predicate.Menus

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

func UpdatedAtGT

func UpdatedAtGT(v time.Time) predicate.Menus

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

func UpdatedAtGTE

func UpdatedAtGTE(v time.Time) predicate.Menus

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

func UpdatedAtIn

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

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

func UpdatedAtLT

func UpdatedAtLT(v time.Time) predicate.Menus

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

func UpdatedAtLTE

func UpdatedAtLTE(v time.Time) predicate.Menus

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

func UpdatedAtNEQ

func UpdatedAtNEQ(v time.Time) predicate.Menus

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

func UpdatedAtNotIn

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

UpdatedAtNotIn applies the NotIn predicate on the "updated_at" field.

func UpdatedBy

func UpdatedBy(v int64) predicate.Menus

UpdatedBy applies equality check predicate on the "updated_by" field. It's identical to UpdatedByEQ.

func UpdatedByEQ

func UpdatedByEQ(v int64) predicate.Menus

UpdatedByEQ applies the EQ predicate on the "updated_by" field.

func UpdatedByGT

func UpdatedByGT(v int64) predicate.Menus

UpdatedByGT applies the GT predicate on the "updated_by" field.

func UpdatedByGTE

func UpdatedByGTE(v int64) predicate.Menus

UpdatedByGTE applies the GTE predicate on the "updated_by" field.

func UpdatedByIn

func UpdatedByIn(vs ...int64) predicate.Menus

UpdatedByIn applies the In predicate on the "updated_by" field.

func UpdatedByIsNil

func UpdatedByIsNil() predicate.Menus

UpdatedByIsNil applies the IsNil predicate on the "updated_by" field.

func UpdatedByLT

func UpdatedByLT(v int64) predicate.Menus

UpdatedByLT applies the LT predicate on the "updated_by" field.

func UpdatedByLTE

func UpdatedByLTE(v int64) predicate.Menus

UpdatedByLTE applies the LTE predicate on the "updated_by" field.

func UpdatedByNEQ

func UpdatedByNEQ(v int64) predicate.Menus

UpdatedByNEQ applies the NEQ predicate on the "updated_by" field.

func UpdatedByNotIn

func UpdatedByNotIn(vs ...int64) predicate.Menus

UpdatedByNotIn applies the NotIn predicate on the "updated_by" field.

func UpdatedByNotNil

func UpdatedByNotNil() predicate.Menus

UpdatedByNotNil applies the NotNil predicate on the "updated_by" field.

func ValidColumn

func ValidColumn(column string) bool

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

func Visibility

func Visibility(v string) predicate.Menus

Visibility applies equality check predicate on the "visibility" field. It's identical to VisibilityEQ.

func VisibilityContains

func VisibilityContains(v string) predicate.Menus

VisibilityContains applies the Contains predicate on the "visibility" field.

func VisibilityContainsFold

func VisibilityContainsFold(v string) predicate.Menus

VisibilityContainsFold applies the ContainsFold predicate on the "visibility" field.

func VisibilityEQ

func VisibilityEQ(v string) predicate.Menus

VisibilityEQ applies the EQ predicate on the "visibility" field.

func VisibilityEqualFold

func VisibilityEqualFold(v string) predicate.Menus

VisibilityEqualFold applies the EqualFold predicate on the "visibility" field.

func VisibilityGT

func VisibilityGT(v string) predicate.Menus

VisibilityGT applies the GT predicate on the "visibility" field.

func VisibilityGTE

func VisibilityGTE(v string) predicate.Menus

VisibilityGTE applies the GTE predicate on the "visibility" field.

func VisibilityHasPrefix

func VisibilityHasPrefix(v string) predicate.Menus

VisibilityHasPrefix applies the HasPrefix predicate on the "visibility" field.

func VisibilityHasSuffix

func VisibilityHasSuffix(v string) predicate.Menus

VisibilityHasSuffix applies the HasSuffix predicate on the "visibility" field.

func VisibilityIn

func VisibilityIn(vs ...string) predicate.Menus

VisibilityIn applies the In predicate on the "visibility" field.

func VisibilityLT

func VisibilityLT(v string) predicate.Menus

VisibilityLT applies the LT predicate on the "visibility" field.

func VisibilityLTE

func VisibilityLTE(v string) predicate.Menus

VisibilityLTE applies the LTE predicate on the "visibility" field.

func VisibilityNEQ

func VisibilityNEQ(v string) predicate.Menus

VisibilityNEQ applies the NEQ predicate on the "visibility" field.

func VisibilityNotIn

func VisibilityNotIn(vs ...string) predicate.Menus

VisibilityNotIn applies the NotIn predicate on the "visibility" field.

Types

type OrderOption

type OrderOption func(*sql.Selector)

OrderOption defines the ordering options for the Menus queries.

func ByCode

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

ByCode orders the results by the code field.

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 ByCreatedBy

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

ByCreatedBy orders the results by the created_by field.

func ByDescription

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

ByDescription orders the results by the description field.

func ByDisplayName

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

ByDisplayName orders the results by the display_name 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 ByLionRoleMenus

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

ByLionRoleMenus orders the results by lion_role_menus terms.

func ByLionRoleMenusCount

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

ByLionRoleMenusCount orders the results by lion_role_menus count.

func ByMenuStatus

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

ByMenuStatus orders the results by the menu_status field.

func ByParentID

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

ByParentID orders the results by the parent_id field.

func ByProtected

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

ByProtected orders the results by the protected field.

func ByRoutePath

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

ByRoutePath orders the results by the route_path field.

func BySortOrder

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

BySortOrder orders the results by the sort_order field.

func ByUpdatedAt

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

ByUpdatedAt orders the results by the updated_at field.

func ByUpdatedBy

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

ByUpdatedBy orders the results by the updated_by field.

func ByVisibility

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

ByVisibility orders the results by the visibility field.

Jump to

Keyboard shortcuts

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