Documentation
¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Menus) predicate.Menus
- func Code(v string) predicate.Menus
- func CodeContains(v string) predicate.Menus
- func CodeContainsFold(v string) predicate.Menus
- func CodeEQ(v string) predicate.Menus
- func CodeEqualFold(v string) predicate.Menus
- func CodeGT(v string) predicate.Menus
- func CodeGTE(v string) predicate.Menus
- func CodeHasPrefix(v string) predicate.Menus
- func CodeHasSuffix(v string) predicate.Menus
- func CodeIn(vs ...string) predicate.Menus
- func CodeLT(v string) predicate.Menus
- func CodeLTE(v string) predicate.Menus
- func CodeNEQ(v string) predicate.Menus
- func CodeNotIn(vs ...string) predicate.Menus
- func Component(v string) predicate.Menus
- func ComponentContains(v string) predicate.Menus
- func ComponentContainsFold(v string) predicate.Menus
- func ComponentEQ(v string) predicate.Menus
- func ComponentEqualFold(v string) predicate.Menus
- func ComponentGT(v string) predicate.Menus
- func ComponentGTE(v string) predicate.Menus
- func ComponentHasPrefix(v string) predicate.Menus
- func ComponentHasSuffix(v string) predicate.Menus
- func ComponentIn(vs ...string) predicate.Menus
- func ComponentLT(v string) predicate.Menus
- func ComponentLTE(v string) predicate.Menus
- func ComponentNEQ(v string) predicate.Menus
- func ComponentNotIn(vs ...string) predicate.Menus
- func CreatedAt(v time.Time) predicate.Menus
- func CreatedAtEQ(v time.Time) predicate.Menus
- func CreatedAtGT(v time.Time) predicate.Menus
- func CreatedAtGTE(v time.Time) predicate.Menus
- func CreatedAtIn(vs ...time.Time) predicate.Menus
- func CreatedAtLT(v time.Time) predicate.Menus
- func CreatedAtLTE(v time.Time) predicate.Menus
- func CreatedAtNEQ(v time.Time) predicate.Menus
- func CreatedAtNotIn(vs ...time.Time) predicate.Menus
- func CreatedBy(v int64) predicate.Menus
- func CreatedByEQ(v int64) predicate.Menus
- func CreatedByGT(v int64) predicate.Menus
- func CreatedByGTE(v int64) predicate.Menus
- func CreatedByIn(vs ...int64) predicate.Menus
- func CreatedByIsNil() predicate.Menus
- func CreatedByLT(v int64) predicate.Menus
- func CreatedByLTE(v int64) predicate.Menus
- func CreatedByNEQ(v int64) predicate.Menus
- func CreatedByNotIn(vs ...int64) predicate.Menus
- func CreatedByNotNil() predicate.Menus
- func Description(v string) predicate.Menus
- func DescriptionContains(v string) predicate.Menus
- func DescriptionContainsFold(v string) predicate.Menus
- func DescriptionEQ(v string) predicate.Menus
- func DescriptionEqualFold(v string) predicate.Menus
- func DescriptionGT(v string) predicate.Menus
- func DescriptionGTE(v string) predicate.Menus
- func DescriptionHasPrefix(v string) predicate.Menus
- func DescriptionHasSuffix(v string) predicate.Menus
- func DescriptionIn(vs ...string) predicate.Menus
- func DescriptionLT(v string) predicate.Menus
- func DescriptionLTE(v string) predicate.Menus
- func DescriptionNEQ(v string) predicate.Menus
- func DescriptionNotIn(vs ...string) predicate.Menus
- func DisplayName(v string) predicate.Menus
- func DisplayNameContains(v string) predicate.Menus
- func DisplayNameContainsFold(v string) predicate.Menus
- func DisplayNameEQ(v string) predicate.Menus
- func DisplayNameEqualFold(v string) predicate.Menus
- func DisplayNameGT(v string) predicate.Menus
- func DisplayNameGTE(v string) predicate.Menus
- func DisplayNameHasPrefix(v string) predicate.Menus
- func DisplayNameHasSuffix(v string) predicate.Menus
- func DisplayNameIn(vs ...string) predicate.Menus
- func DisplayNameLT(v string) predicate.Menus
- func DisplayNameLTE(v string) predicate.Menus
- func DisplayNameNEQ(v string) predicate.Menus
- func DisplayNameNotIn(vs ...string) predicate.Menus
- func HasLionRoleMenus() predicate.Menus
- func HasLionRoleMenusWith(preds ...predicate.RoleMenus) predicate.Menus
- func ID(id int) predicate.Menus
- func IDEQ(id int) predicate.Menus
- func IDGT(id int) predicate.Menus
- func IDGTE(id int) predicate.Menus
- func IDIn(ids ...int) predicate.Menus
- func IDLT(id int) predicate.Menus
- func IDLTE(id int) predicate.Menus
- func IDNEQ(id int) predicate.Menus
- func IDNotIn(ids ...int) predicate.Menus
- func Icon(v string) predicate.Menus
- func IconContains(v string) predicate.Menus
- func IconContainsFold(v string) predicate.Menus
- func IconEQ(v string) predicate.Menus
- func IconEqualFold(v string) predicate.Menus
- func IconGT(v string) predicate.Menus
- func IconGTE(v string) predicate.Menus
- func IconHasPrefix(v string) predicate.Menus
- func IconHasSuffix(v string) predicate.Menus
- func IconIn(vs ...string) predicate.Menus
- func IconLT(v string) predicate.Menus
- func IconLTE(v string) predicate.Menus
- func IconNEQ(v string) predicate.Menus
- func IconNotIn(vs ...string) predicate.Menus
- func MenuStatus(v string) predicate.Menus
- func MenuStatusContains(v string) predicate.Menus
- func MenuStatusContainsFold(v string) predicate.Menus
- func MenuStatusEQ(v string) predicate.Menus
- func MenuStatusEqualFold(v string) predicate.Menus
- func MenuStatusGT(v string) predicate.Menus
- func MenuStatusGTE(v string) predicate.Menus
- func MenuStatusHasPrefix(v string) predicate.Menus
- func MenuStatusHasSuffix(v string) predicate.Menus
- func MenuStatusIn(vs ...string) predicate.Menus
- func MenuStatusLT(v string) predicate.Menus
- func MenuStatusLTE(v string) predicate.Menus
- func MenuStatusNEQ(v string) predicate.Menus
- func MenuStatusNotIn(vs ...string) predicate.Menus
- func MetadataIsNil() predicate.Menus
- func MetadataNotNil() predicate.Menus
- func Not(p predicate.Menus) predicate.Menus
- func Or(predicates ...predicate.Menus) predicate.Menus
- func ParentID(v int64) predicate.Menus
- func ParentIDEQ(v int64) predicate.Menus
- func ParentIDGT(v int64) predicate.Menus
- func ParentIDGTE(v int64) predicate.Menus
- func ParentIDIn(vs ...int64) predicate.Menus
- func ParentIDLT(v int64) predicate.Menus
- func ParentIDLTE(v int64) predicate.Menus
- func ParentIDNEQ(v int64) predicate.Menus
- func ParentIDNotIn(vs ...int64) predicate.Menus
- func Protected(v bool) predicate.Menus
- func ProtectedEQ(v bool) predicate.Menus
- func ProtectedNEQ(v bool) predicate.Menus
- func RoutePath(v string) predicate.Menus
- func RoutePathContains(v string) predicate.Menus
- func RoutePathContainsFold(v string) predicate.Menus
- func RoutePathEQ(v string) predicate.Menus
- func RoutePathEqualFold(v string) predicate.Menus
- func RoutePathGT(v string) predicate.Menus
- func RoutePathGTE(v string) predicate.Menus
- func RoutePathHasPrefix(v string) predicate.Menus
- func RoutePathHasSuffix(v string) predicate.Menus
- func RoutePathIn(vs ...string) predicate.Menus
- func RoutePathLT(v string) predicate.Menus
- func RoutePathLTE(v string) predicate.Menus
- func RoutePathNEQ(v string) predicate.Menus
- func RoutePathNotIn(vs ...string) predicate.Menus
- func SortOrder(v int) predicate.Menus
- func SortOrderEQ(v int) predicate.Menus
- func SortOrderGT(v int) predicate.Menus
- func SortOrderGTE(v int) predicate.Menus
- func SortOrderIn(vs ...int) predicate.Menus
- func SortOrderLT(v int) predicate.Menus
- func SortOrderLTE(v int) predicate.Menus
- func SortOrderNEQ(v int) predicate.Menus
- func SortOrderNotIn(vs ...int) predicate.Menus
- func UpdatedAt(v time.Time) predicate.Menus
- func UpdatedAtEQ(v time.Time) predicate.Menus
- func UpdatedAtGT(v time.Time) predicate.Menus
- func UpdatedAtGTE(v time.Time) predicate.Menus
- func UpdatedAtIn(vs ...time.Time) predicate.Menus
- func UpdatedAtLT(v time.Time) predicate.Menus
- func UpdatedAtLTE(v time.Time) predicate.Menus
- func UpdatedAtNEQ(v time.Time) predicate.Menus
- func UpdatedAtNotIn(vs ...time.Time) predicate.Menus
- func UpdatedBy(v int64) predicate.Menus
- func UpdatedByEQ(v int64) predicate.Menus
- func UpdatedByGT(v int64) predicate.Menus
- func UpdatedByGTE(v int64) predicate.Menus
- func UpdatedByIn(vs ...int64) predicate.Menus
- func UpdatedByIsNil() predicate.Menus
- func UpdatedByLT(v int64) predicate.Menus
- func UpdatedByLTE(v int64) predicate.Menus
- func UpdatedByNEQ(v int64) predicate.Menus
- func UpdatedByNotIn(vs ...int64) predicate.Menus
- func UpdatedByNotNil() predicate.Menus
- func ValidColumn(column string) bool
- func Visibility(v string) predicate.Menus
- func VisibilityContains(v string) predicate.Menus
- func VisibilityContainsFold(v string) predicate.Menus
- func VisibilityEQ(v string) predicate.Menus
- func VisibilityEqualFold(v string) predicate.Menus
- func VisibilityGT(v string) predicate.Menus
- func VisibilityGTE(v string) predicate.Menus
- func VisibilityHasPrefix(v string) predicate.Menus
- func VisibilityHasSuffix(v string) predicate.Menus
- func VisibilityIn(vs ...string) predicate.Menus
- func VisibilityLT(v string) predicate.Menus
- func VisibilityLTE(v string) predicate.Menus
- func VisibilityNEQ(v string) predicate.Menus
- func VisibilityNotIn(vs ...string) predicate.Menus
- type OrderOption
- func ByCode(opts ...sql.OrderTermOption) OrderOption
- func ByComponent(opts ...sql.OrderTermOption) OrderOption
- func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
- func ByCreatedBy(opts ...sql.OrderTermOption) OrderOption
- func ByDescription(opts ...sql.OrderTermOption) OrderOption
- func ByDisplayName(opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByIcon(opts ...sql.OrderTermOption) OrderOption
- func ByLionRoleMenus(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByLionRoleMenusCount(opts ...sql.OrderTermOption) OrderOption
- func ByMenuStatus(opts ...sql.OrderTermOption) OrderOption
- func ByParentID(opts ...sql.OrderTermOption) OrderOption
- func ByProtected(opts ...sql.OrderTermOption) OrderOption
- func ByRoutePath(opts ...sql.OrderTermOption) OrderOption
- func BySortOrder(opts ...sql.OrderTermOption) OrderOption
- func ByUpdatedAt(opts ...sql.OrderTermOption) OrderOption
- func ByUpdatedBy(opts ...sql.OrderTermOption) OrderOption
- func ByVisibility(opts ...sql.OrderTermOption) OrderOption
Constants ¶
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 ¶
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 )
var Columns = []string{ FieldID, FieldCreatedAt, FieldUpdatedAt, FieldCreatedBy, FieldUpdatedBy, FieldParentID, FieldCode, FieldDisplayName, FieldRoutePath, FieldComponent, FieldIcon, FieldSortOrder, FieldVisibility, FieldMenuStatus, FieldMetadata, FieldDescription, FieldProtected, }
Columns holds all SQL columns for menus fields.
Functions ¶
func CodeContains ¶
CodeContains applies the Contains predicate on the "code" field.
func CodeContainsFold ¶
CodeContainsFold applies the ContainsFold predicate on the "code" field.
func CodeEqualFold ¶
CodeEqualFold applies the EqualFold predicate on the "code" field.
func CodeHasPrefix ¶
CodeHasPrefix applies the HasPrefix predicate on the "code" field.
func CodeHasSuffix ¶
CodeHasSuffix applies the HasSuffix predicate on the "code" field.
func Component ¶
Component applies equality check predicate on the "component" field. It's identical to ComponentEQ.
func ComponentContains ¶
ComponentContains applies the Contains predicate on the "component" field.
func ComponentContainsFold ¶
ComponentContainsFold applies the ContainsFold predicate on the "component" field.
func ComponentEQ ¶
ComponentEQ applies the EQ predicate on the "component" field.
func ComponentEqualFold ¶
ComponentEqualFold applies the EqualFold predicate on the "component" field.
func ComponentGT ¶
ComponentGT applies the GT predicate on the "component" field.
func ComponentGTE ¶
ComponentGTE applies the GTE predicate on the "component" field.
func ComponentHasPrefix ¶
ComponentHasPrefix applies the HasPrefix predicate on the "component" field.
func ComponentHasSuffix ¶
ComponentHasSuffix applies the HasSuffix predicate on the "component" field.
func ComponentIn ¶
ComponentIn applies the In predicate on the "component" field.
func ComponentLT ¶
ComponentLT applies the LT predicate on the "component" field.
func ComponentLTE ¶
ComponentLTE applies the LTE predicate on the "component" field.
func ComponentNEQ ¶
ComponentNEQ applies the NEQ predicate on the "component" field.
func ComponentNotIn ¶
ComponentNotIn applies the NotIn predicate on the "component" field.
func CreatedAt ¶
CreatedAt applies equality check predicate on the "created_at" field. It's identical to CreatedAtEQ.
func CreatedAtEQ ¶
CreatedAtEQ applies the EQ predicate on the "created_at" field.
func CreatedAtGT ¶
CreatedAtGT applies the GT predicate on the "created_at" field.
func CreatedAtGTE ¶
CreatedAtGTE applies the GTE predicate on the "created_at" field.
func CreatedAtIn ¶
CreatedAtIn applies the In predicate on the "created_at" field.
func CreatedAtLT ¶
CreatedAtLT applies the LT predicate on the "created_at" field.
func CreatedAtLTE ¶
CreatedAtLTE applies the LTE predicate on the "created_at" field.
func CreatedAtNEQ ¶
CreatedAtNEQ applies the NEQ predicate on the "created_at" field.
func CreatedAtNotIn ¶
CreatedAtNotIn applies the NotIn predicate on the "created_at" field.
func CreatedBy ¶
CreatedBy applies equality check predicate on the "created_by" field. It's identical to CreatedByEQ.
func CreatedByEQ ¶
CreatedByEQ applies the EQ predicate on the "created_by" field.
func CreatedByGT ¶
CreatedByGT applies the GT predicate on the "created_by" field.
func CreatedByGTE ¶
CreatedByGTE applies the GTE predicate on the "created_by" field.
func CreatedByIn ¶
CreatedByIn applies the In predicate on the "created_by" field.
func CreatedByIsNil ¶
CreatedByIsNil applies the IsNil predicate on the "created_by" field.
func CreatedByLT ¶
CreatedByLT applies the LT predicate on the "created_by" field.
func CreatedByLTE ¶
CreatedByLTE applies the LTE predicate on the "created_by" field.
func CreatedByNEQ ¶
CreatedByNEQ applies the NEQ predicate on the "created_by" field.
func CreatedByNotIn ¶
CreatedByNotIn applies the NotIn predicate on the "created_by" field.
func CreatedByNotNil ¶
CreatedByNotNil applies the NotNil predicate on the "created_by" field.
func Description ¶
Description applies equality check predicate on the "description" field. It's identical to DescriptionEQ.
func DescriptionContains ¶
DescriptionContains applies the Contains predicate on the "description" field.
func DescriptionContainsFold ¶
DescriptionContainsFold applies the ContainsFold predicate on the "description" field.
func DescriptionEQ ¶
DescriptionEQ applies the EQ predicate on the "description" field.
func DescriptionEqualFold ¶
DescriptionEqualFold applies the EqualFold predicate on the "description" field.
func DescriptionGT ¶
DescriptionGT applies the GT predicate on the "description" field.
func DescriptionGTE ¶
DescriptionGTE applies the GTE predicate on the "description" field.
func DescriptionHasPrefix ¶
DescriptionHasPrefix applies the HasPrefix predicate on the "description" field.
func DescriptionHasSuffix ¶
DescriptionHasSuffix applies the HasSuffix predicate on the "description" field.
func DescriptionIn ¶
DescriptionIn applies the In predicate on the "description" field.
func DescriptionLT ¶
DescriptionLT applies the LT predicate on the "description" field.
func DescriptionLTE ¶
DescriptionLTE applies the LTE predicate on the "description" field.
func DescriptionNEQ ¶
DescriptionNEQ applies the NEQ predicate on the "description" field.
func DescriptionNotIn ¶
DescriptionNotIn applies the NotIn predicate on the "description" field.
func DisplayName ¶
DisplayName applies equality check predicate on the "display_name" field. It's identical to DisplayNameEQ.
func DisplayNameContains ¶
DisplayNameContains applies the Contains predicate on the "display_name" field.
func DisplayNameContainsFold ¶
DisplayNameContainsFold applies the ContainsFold predicate on the "display_name" field.
func DisplayNameEQ ¶
DisplayNameEQ applies the EQ predicate on the "display_name" field.
func DisplayNameEqualFold ¶
DisplayNameEqualFold applies the EqualFold predicate on the "display_name" field.
func DisplayNameGT ¶
DisplayNameGT applies the GT predicate on the "display_name" field.
func DisplayNameGTE ¶
DisplayNameGTE applies the GTE predicate on the "display_name" field.
func DisplayNameHasPrefix ¶
DisplayNameHasPrefix applies the HasPrefix predicate on the "display_name" field.
func DisplayNameHasSuffix ¶
DisplayNameHasSuffix applies the HasSuffix predicate on the "display_name" field.
func DisplayNameIn ¶
DisplayNameIn applies the In predicate on the "display_name" field.
func DisplayNameLT ¶
DisplayNameLT applies the LT predicate on the "display_name" field.
func DisplayNameLTE ¶
DisplayNameLTE applies the LTE predicate on the "display_name" field.
func DisplayNameNEQ ¶
DisplayNameNEQ applies the NEQ predicate on the "display_name" field.
func DisplayNameNotIn ¶
DisplayNameNotIn applies the NotIn predicate on the "display_name" field.
func HasLionRoleMenus ¶
HasLionRoleMenus applies the HasEdge predicate on the "lion_role_menus" edge.
func HasLionRoleMenusWith ¶
HasLionRoleMenusWith applies the HasEdge predicate on the "lion_role_menus" edge with a given conditions (other predicates).
func IconContains ¶
IconContains applies the Contains predicate on the "icon" field.
func IconContainsFold ¶
IconContainsFold applies the ContainsFold predicate on the "icon" field.
func IconEqualFold ¶
IconEqualFold applies the EqualFold predicate on the "icon" field.
func IconHasPrefix ¶
IconHasPrefix applies the HasPrefix predicate on the "icon" field.
func IconHasSuffix ¶
IconHasSuffix applies the HasSuffix predicate on the "icon" field.
func MenuStatus ¶
MenuStatus applies equality check predicate on the "menu_status" field. It's identical to MenuStatusEQ.
func MenuStatusContains ¶
MenuStatusContains applies the Contains predicate on the "menu_status" field.
func MenuStatusContainsFold ¶
MenuStatusContainsFold applies the ContainsFold predicate on the "menu_status" field.
func MenuStatusEQ ¶
MenuStatusEQ applies the EQ predicate on the "menu_status" field.
func MenuStatusEqualFold ¶
MenuStatusEqualFold applies the EqualFold predicate on the "menu_status" field.
func MenuStatusGT ¶
MenuStatusGT applies the GT predicate on the "menu_status" field.
func MenuStatusGTE ¶
MenuStatusGTE applies the GTE predicate on the "menu_status" field.
func MenuStatusHasPrefix ¶
MenuStatusHasPrefix applies the HasPrefix predicate on the "menu_status" field.
func MenuStatusHasSuffix ¶
MenuStatusHasSuffix applies the HasSuffix predicate on the "menu_status" field.
func MenuStatusIn ¶
MenuStatusIn applies the In predicate on the "menu_status" field.
func MenuStatusLT ¶
MenuStatusLT applies the LT predicate on the "menu_status" field.
func MenuStatusLTE ¶
MenuStatusLTE applies the LTE predicate on the "menu_status" field.
func MenuStatusNEQ ¶
MenuStatusNEQ applies the NEQ predicate on the "menu_status" field.
func MenuStatusNotIn ¶
MenuStatusNotIn applies the NotIn predicate on the "menu_status" field.
func MetadataIsNil ¶
MetadataIsNil applies the IsNil predicate on the "metadata" field.
func MetadataNotNil ¶
MetadataNotNil applies the NotNil predicate on the "metadata" field.
func ParentID ¶
ParentID applies equality check predicate on the "parent_id" field. It's identical to ParentIDEQ.
func ParentIDEQ ¶
ParentIDEQ applies the EQ predicate on the "parent_id" field.
func ParentIDGT ¶
ParentIDGT applies the GT predicate on the "parent_id" field.
func ParentIDGTE ¶
ParentIDGTE applies the GTE predicate on the "parent_id" field.
func ParentIDIn ¶
ParentIDIn applies the In predicate on the "parent_id" field.
func ParentIDLT ¶
ParentIDLT applies the LT predicate on the "parent_id" field.
func ParentIDLTE ¶
ParentIDLTE applies the LTE predicate on the "parent_id" field.
func ParentIDNEQ ¶
ParentIDNEQ applies the NEQ predicate on the "parent_id" field.
func ParentIDNotIn ¶
ParentIDNotIn applies the NotIn predicate on the "parent_id" field.
func Protected ¶
Protected applies equality check predicate on the "protected" field. It's identical to ProtectedEQ.
func ProtectedEQ ¶
ProtectedEQ applies the EQ predicate on the "protected" field.
func ProtectedNEQ ¶
ProtectedNEQ applies the NEQ predicate on the "protected" field.
func RoutePath ¶
RoutePath applies equality check predicate on the "route_path" field. It's identical to RoutePathEQ.
func RoutePathContains ¶
RoutePathContains applies the Contains predicate on the "route_path" field.
func RoutePathContainsFold ¶
RoutePathContainsFold applies the ContainsFold predicate on the "route_path" field.
func RoutePathEQ ¶
RoutePathEQ applies the EQ predicate on the "route_path" field.
func RoutePathEqualFold ¶
RoutePathEqualFold applies the EqualFold predicate on the "route_path" field.
func RoutePathGT ¶
RoutePathGT applies the GT predicate on the "route_path" field.
func RoutePathGTE ¶
RoutePathGTE applies the GTE predicate on the "route_path" field.
func RoutePathHasPrefix ¶
RoutePathHasPrefix applies the HasPrefix predicate on the "route_path" field.
func RoutePathHasSuffix ¶
RoutePathHasSuffix applies the HasSuffix predicate on the "route_path" field.
func RoutePathIn ¶
RoutePathIn applies the In predicate on the "route_path" field.
func RoutePathLT ¶
RoutePathLT applies the LT predicate on the "route_path" field.
func RoutePathLTE ¶
RoutePathLTE applies the LTE predicate on the "route_path" field.
func RoutePathNEQ ¶
RoutePathNEQ applies the NEQ predicate on the "route_path" field.
func RoutePathNotIn ¶
RoutePathNotIn applies the NotIn predicate on the "route_path" field.
func SortOrder ¶
SortOrder applies equality check predicate on the "sort_order" field. It's identical to SortOrderEQ.
func SortOrderEQ ¶
SortOrderEQ applies the EQ predicate on the "sort_order" field.
func SortOrderGT ¶
SortOrderGT applies the GT predicate on the "sort_order" field.
func SortOrderGTE ¶
SortOrderGTE applies the GTE predicate on the "sort_order" field.
func SortOrderIn ¶
SortOrderIn applies the In predicate on the "sort_order" field.
func SortOrderLT ¶
SortOrderLT applies the LT predicate on the "sort_order" field.
func SortOrderLTE ¶
SortOrderLTE applies the LTE predicate on the "sort_order" field.
func SortOrderNEQ ¶
SortOrderNEQ applies the NEQ predicate on the "sort_order" field.
func SortOrderNotIn ¶
SortOrderNotIn applies the NotIn predicate on the "sort_order" field.
func UpdatedAt ¶
UpdatedAt applies equality check predicate on the "updated_at" field. It's identical to UpdatedAtEQ.
func UpdatedAtEQ ¶
UpdatedAtEQ applies the EQ predicate on the "updated_at" field.
func UpdatedAtGT ¶
UpdatedAtGT applies the GT predicate on the "updated_at" field.
func UpdatedAtGTE ¶
UpdatedAtGTE applies the GTE predicate on the "updated_at" field.
func UpdatedAtIn ¶
UpdatedAtIn applies the In predicate on the "updated_at" field.
func UpdatedAtLT ¶
UpdatedAtLT applies the LT predicate on the "updated_at" field.
func UpdatedAtLTE ¶
UpdatedAtLTE applies the LTE predicate on the "updated_at" field.
func UpdatedAtNEQ ¶
UpdatedAtNEQ applies the NEQ predicate on the "updated_at" field.
func UpdatedAtNotIn ¶
UpdatedAtNotIn applies the NotIn predicate on the "updated_at" field.
func UpdatedBy ¶
UpdatedBy applies equality check predicate on the "updated_by" field. It's identical to UpdatedByEQ.
func UpdatedByEQ ¶
UpdatedByEQ applies the EQ predicate on the "updated_by" field.
func UpdatedByGT ¶
UpdatedByGT applies the GT predicate on the "updated_by" field.
func UpdatedByGTE ¶
UpdatedByGTE applies the GTE predicate on the "updated_by" field.
func UpdatedByIn ¶
UpdatedByIn applies the In predicate on the "updated_by" field.
func UpdatedByIsNil ¶
UpdatedByIsNil applies the IsNil predicate on the "updated_by" field.
func UpdatedByLT ¶
UpdatedByLT applies the LT predicate on the "updated_by" field.
func UpdatedByLTE ¶
UpdatedByLTE applies the LTE predicate on the "updated_by" field.
func UpdatedByNEQ ¶
UpdatedByNEQ applies the NEQ predicate on the "updated_by" field.
func UpdatedByNotIn ¶
UpdatedByNotIn applies the NotIn predicate on the "updated_by" field.
func UpdatedByNotNil ¶
UpdatedByNotNil applies the NotNil predicate on the "updated_by" field.
func ValidColumn ¶
ValidColumn reports if the column name is valid (part of the table columns).
func Visibility ¶
Visibility applies equality check predicate on the "visibility" field. It's identical to VisibilityEQ.
func VisibilityContains ¶
VisibilityContains applies the Contains predicate on the "visibility" field.
func VisibilityContainsFold ¶
VisibilityContainsFold applies the ContainsFold predicate on the "visibility" field.
func VisibilityEQ ¶
VisibilityEQ applies the EQ predicate on the "visibility" field.
func VisibilityEqualFold ¶
VisibilityEqualFold applies the EqualFold predicate on the "visibility" field.
func VisibilityGT ¶
VisibilityGT applies the GT predicate on the "visibility" field.
func VisibilityGTE ¶
VisibilityGTE applies the GTE predicate on the "visibility" field.
func VisibilityHasPrefix ¶
VisibilityHasPrefix applies the HasPrefix predicate on the "visibility" field.
func VisibilityHasSuffix ¶
VisibilityHasSuffix applies the HasSuffix predicate on the "visibility" field.
func VisibilityIn ¶
VisibilityIn applies the In predicate on the "visibility" field.
func VisibilityLT ¶
VisibilityLT applies the LT predicate on the "visibility" field.
func VisibilityLTE ¶
VisibilityLTE applies the LTE predicate on the "visibility" field.
func VisibilityNEQ ¶
VisibilityNEQ applies the NEQ predicate on the "visibility" field.
func VisibilityNotIn ¶
VisibilityNotIn applies the NotIn predicate on the "visibility" field.
Types ¶
type OrderOption ¶
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.