rolemenus

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 rolemenus type in the database.
	Label = "role_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"
	// FieldRoleID holds the string denoting the role_id field in the database.
	FieldRoleID = "role_id"
	// FieldMenuID holds the string denoting the menu_id field in the database.
	FieldMenuID = "menu_id"
	// FieldPermissionScope holds the string denoting the permission_scope field in the database.
	FieldPermissionScope = "permission_scope"
	// FieldDescription holds the string denoting the description field in the database.
	FieldDescription = "description"
	// FieldIsRecursive holds the string denoting the is_recursive field in the database.
	FieldIsRecursive = "is_recursive"
	// EdgeLionRoles holds the string denoting the lion_roles edge name in mutations.
	EdgeLionRoles = "lion_roles"
	// EdgeLionMenus holds the string denoting the lion_menus edge name in mutations.
	EdgeLionMenus = "lion_menus"
	// Table holds the table name of the rolemenus in the database.
	Table = "lion_role_menus"
	// LionRolesTable is the table that holds the lion_roles relation/edge.
	LionRolesTable = "lion_role_menus"
	// LionRolesInverseTable is the table name for the Roles entity.
	// It exists in this package in order to avoid circular dependency with the "roles" package.
	LionRolesInverseTable = "lion_roles"
	// LionRolesColumn is the table column denoting the lion_roles relation/edge.
	LionRolesColumn = "role_id"
	// LionMenusTable is the table that holds the lion_menus relation/edge.
	LionMenusTable = "lion_role_menus"
	// LionMenusInverseTable is the table name for the Menus entity.
	// It exists in this package in order to avoid circular dependency with the "menus" package.
	LionMenusInverseTable = "lion_menus"
	// LionMenusColumn is the table column denoting the lion_menus relation/edge.
	LionMenusColumn = "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
	// RoleIDValidator is a validator for the "role_id" field. It is called by the builders before save.
	RoleIDValidator func(int) error
	// MenuIDValidator is a validator for the "menu_id" field. It is called by the builders before save.
	MenuIDValidator func(int) error
	// DefaultPermissionScope holds the default value on creation for the "permission_scope" field.
	DefaultPermissionScope int
	// DefaultDescription holds the default value on creation for the "description" field.
	DefaultDescription string
	// DefaultIsRecursive holds the default value on creation for the "is_recursive" field.
	DefaultIsRecursive bool
)

Columns holds all SQL columns for rolemenus fields.

Functions

func And

func And(predicates ...predicate.RoleMenus) predicate.RoleMenus

And groups predicates with the AND operator between them.

func CreatedAt

func CreatedAt(v time.Time) predicate.RoleMenus

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

func CreatedAtEQ

func CreatedAtEQ(v time.Time) predicate.RoleMenus

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

func CreatedAtGT

func CreatedAtGT(v time.Time) predicate.RoleMenus

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

func CreatedAtGTE

func CreatedAtGTE(v time.Time) predicate.RoleMenus

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

func CreatedAtIn

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

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

func CreatedAtLT

func CreatedAtLT(v time.Time) predicate.RoleMenus

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

func CreatedAtLTE

func CreatedAtLTE(v time.Time) predicate.RoleMenus

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

func CreatedAtNEQ

func CreatedAtNEQ(v time.Time) predicate.RoleMenus

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

func CreatedAtNotIn

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

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

func CreatedBy

func CreatedBy(v int64) predicate.RoleMenus

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

func CreatedByEQ

func CreatedByEQ(v int64) predicate.RoleMenus

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

func CreatedByGT

func CreatedByGT(v int64) predicate.RoleMenus

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

func CreatedByGTE

func CreatedByGTE(v int64) predicate.RoleMenus

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

func CreatedByIn

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

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

func CreatedByIsNil

func CreatedByIsNil() predicate.RoleMenus

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

func CreatedByLT

func CreatedByLT(v int64) predicate.RoleMenus

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

func CreatedByLTE

func CreatedByLTE(v int64) predicate.RoleMenus

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

func CreatedByNEQ

func CreatedByNEQ(v int64) predicate.RoleMenus

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

func CreatedByNotIn

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

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

func CreatedByNotNil

func CreatedByNotNil() predicate.RoleMenus

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

func Description

func Description(v string) predicate.RoleMenus

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

func DescriptionContains

func DescriptionContains(v string) predicate.RoleMenus

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

func DescriptionContainsFold

func DescriptionContainsFold(v string) predicate.RoleMenus

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

func DescriptionEQ

func DescriptionEQ(v string) predicate.RoleMenus

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

func DescriptionEqualFold

func DescriptionEqualFold(v string) predicate.RoleMenus

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

func DescriptionGT

func DescriptionGT(v string) predicate.RoleMenus

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

func DescriptionGTE

func DescriptionGTE(v string) predicate.RoleMenus

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

func DescriptionHasPrefix

func DescriptionHasPrefix(v string) predicate.RoleMenus

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

func DescriptionHasSuffix

func DescriptionHasSuffix(v string) predicate.RoleMenus

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

func DescriptionIn

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

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

func DescriptionLT

func DescriptionLT(v string) predicate.RoleMenus

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

func DescriptionLTE

func DescriptionLTE(v string) predicate.RoleMenus

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

func DescriptionNEQ

func DescriptionNEQ(v string) predicate.RoleMenus

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

func DescriptionNotIn

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

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

func HasLionMenus

func HasLionMenus() predicate.RoleMenus

HasLionMenus applies the HasEdge predicate on the "lion_menus" edge.

func HasLionMenusWith

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

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

func HasLionRoles

func HasLionRoles() predicate.RoleMenus

HasLionRoles applies the HasEdge predicate on the "lion_roles" edge.

func HasLionRolesWith

func HasLionRolesWith(preds ...predicate.Roles) predicate.RoleMenus

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

func ID

func ID(id int) predicate.RoleMenus

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id int) predicate.RoleMenus

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id int) predicate.RoleMenus

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id int) predicate.RoleMenus

IDGTE applies the GTE predicate on the ID field.

func IDIn

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

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id int) predicate.RoleMenus

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id int) predicate.RoleMenus

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id int) predicate.RoleMenus

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

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

IDNotIn applies the NotIn predicate on the ID field.

func IsRecursive

func IsRecursive(v bool) predicate.RoleMenus

IsRecursive applies equality check predicate on the "is_recursive" field. It's identical to IsRecursiveEQ.

func IsRecursiveEQ

func IsRecursiveEQ(v bool) predicate.RoleMenus

IsRecursiveEQ applies the EQ predicate on the "is_recursive" field.

func IsRecursiveNEQ

func IsRecursiveNEQ(v bool) predicate.RoleMenus

IsRecursiveNEQ applies the NEQ predicate on the "is_recursive" field.

func MenuID(v int) predicate.RoleMenus

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

func MenuIDEQ(v int) predicate.RoleMenus

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

func MenuIDIn(vs ...int) predicate.RoleMenus

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

func MenuIDNEQ(v int) predicate.RoleMenus

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

func MenuIDNotIn(vs ...int) predicate.RoleMenus

MenuIDNotIn applies the NotIn predicate on the "menu_id" field.

func Not

Not applies the not operator on the given predicate.

func Or

func Or(predicates ...predicate.RoleMenus) predicate.RoleMenus

Or groups predicates with the OR operator between them.

func PermissionScope

func PermissionScope(v int) predicate.RoleMenus

PermissionScope applies equality check predicate on the "permission_scope" field. It's identical to PermissionScopeEQ.

func PermissionScopeEQ

func PermissionScopeEQ(v int) predicate.RoleMenus

PermissionScopeEQ applies the EQ predicate on the "permission_scope" field.

func PermissionScopeGT

func PermissionScopeGT(v int) predicate.RoleMenus

PermissionScopeGT applies the GT predicate on the "permission_scope" field.

func PermissionScopeGTE

func PermissionScopeGTE(v int) predicate.RoleMenus

PermissionScopeGTE applies the GTE predicate on the "permission_scope" field.

func PermissionScopeIn

func PermissionScopeIn(vs ...int) predicate.RoleMenus

PermissionScopeIn applies the In predicate on the "permission_scope" field.

func PermissionScopeLT

func PermissionScopeLT(v int) predicate.RoleMenus

PermissionScopeLT applies the LT predicate on the "permission_scope" field.

func PermissionScopeLTE

func PermissionScopeLTE(v int) predicate.RoleMenus

PermissionScopeLTE applies the LTE predicate on the "permission_scope" field.

func PermissionScopeNEQ

func PermissionScopeNEQ(v int) predicate.RoleMenus

PermissionScopeNEQ applies the NEQ predicate on the "permission_scope" field.

func PermissionScopeNotIn

func PermissionScopeNotIn(vs ...int) predicate.RoleMenus

PermissionScopeNotIn applies the NotIn predicate on the "permission_scope" field.

func RoleID

func RoleID(v int) predicate.RoleMenus

RoleID applies equality check predicate on the "role_id" field. It's identical to RoleIDEQ.

func RoleIDEQ

func RoleIDEQ(v int) predicate.RoleMenus

RoleIDEQ applies the EQ predicate on the "role_id" field.

func RoleIDIn

func RoleIDIn(vs ...int) predicate.RoleMenus

RoleIDIn applies the In predicate on the "role_id" field.

func RoleIDNEQ

func RoleIDNEQ(v int) predicate.RoleMenus

RoleIDNEQ applies the NEQ predicate on the "role_id" field.

func RoleIDNotIn

func RoleIDNotIn(vs ...int) predicate.RoleMenus

RoleIDNotIn applies the NotIn predicate on the "role_id" field.

func UpdatedAt

func UpdatedAt(v time.Time) predicate.RoleMenus

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

func UpdatedAtEQ

func UpdatedAtEQ(v time.Time) predicate.RoleMenus

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

func UpdatedAtGT

func UpdatedAtGT(v time.Time) predicate.RoleMenus

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

func UpdatedAtGTE

func UpdatedAtGTE(v time.Time) predicate.RoleMenus

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

func UpdatedAtIn

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

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

func UpdatedAtLT

func UpdatedAtLT(v time.Time) predicate.RoleMenus

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

func UpdatedAtLTE

func UpdatedAtLTE(v time.Time) predicate.RoleMenus

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

func UpdatedAtNEQ

func UpdatedAtNEQ(v time.Time) predicate.RoleMenus

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

func UpdatedAtNotIn

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

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

func UpdatedBy

func UpdatedBy(v int64) predicate.RoleMenus

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

func UpdatedByEQ

func UpdatedByEQ(v int64) predicate.RoleMenus

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

func UpdatedByGT

func UpdatedByGT(v int64) predicate.RoleMenus

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

func UpdatedByGTE

func UpdatedByGTE(v int64) predicate.RoleMenus

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

func UpdatedByIn

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

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

func UpdatedByIsNil

func UpdatedByIsNil() predicate.RoleMenus

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

func UpdatedByLT

func UpdatedByLT(v int64) predicate.RoleMenus

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

func UpdatedByLTE

func UpdatedByLTE(v int64) predicate.RoleMenus

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

func UpdatedByNEQ

func UpdatedByNEQ(v int64) predicate.RoleMenus

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

func UpdatedByNotIn

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

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

func UpdatedByNotNil

func UpdatedByNotNil() predicate.RoleMenus

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

Types

type OrderOption

type OrderOption func(*sql.Selector)

OrderOption defines the ordering options for the RoleMenus queries.

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 ByID

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

ByID orders the results by the id field.

func ByIsRecursive

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

ByIsRecursive orders the results by the is_recursive field.

func ByLionMenusField

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

ByLionMenusField orders the results by lion_menus field.

func ByLionRolesField

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

ByLionRolesField orders the results by lion_roles field.

func ByMenuID

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

ByMenuID orders the results by the menu_id field.

func ByPermissionScope

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

ByPermissionScope orders the results by the permission_scope field.

func ByRoleID

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

ByRoleID orders the results by the role_id 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.

Jump to

Keyboard shortcuts

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