Documentation
¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.RoleMenus) predicate.RoleMenus
- func CreatedAt(v time.Time) predicate.RoleMenus
- func CreatedAtEQ(v time.Time) predicate.RoleMenus
- func CreatedAtGT(v time.Time) predicate.RoleMenus
- func CreatedAtGTE(v time.Time) predicate.RoleMenus
- func CreatedAtIn(vs ...time.Time) predicate.RoleMenus
- func CreatedAtLT(v time.Time) predicate.RoleMenus
- func CreatedAtLTE(v time.Time) predicate.RoleMenus
- func CreatedAtNEQ(v time.Time) predicate.RoleMenus
- func CreatedAtNotIn(vs ...time.Time) predicate.RoleMenus
- func CreatedBy(v int64) predicate.RoleMenus
- func CreatedByEQ(v int64) predicate.RoleMenus
- func CreatedByGT(v int64) predicate.RoleMenus
- func CreatedByGTE(v int64) predicate.RoleMenus
- func CreatedByIn(vs ...int64) predicate.RoleMenus
- func CreatedByIsNil() predicate.RoleMenus
- func CreatedByLT(v int64) predicate.RoleMenus
- func CreatedByLTE(v int64) predicate.RoleMenus
- func CreatedByNEQ(v int64) predicate.RoleMenus
- func CreatedByNotIn(vs ...int64) predicate.RoleMenus
- func CreatedByNotNil() predicate.RoleMenus
- func Description(v string) predicate.RoleMenus
- func DescriptionContains(v string) predicate.RoleMenus
- func DescriptionContainsFold(v string) predicate.RoleMenus
- func DescriptionEQ(v string) predicate.RoleMenus
- func DescriptionEqualFold(v string) predicate.RoleMenus
- func DescriptionGT(v string) predicate.RoleMenus
- func DescriptionGTE(v string) predicate.RoleMenus
- func DescriptionHasPrefix(v string) predicate.RoleMenus
- func DescriptionHasSuffix(v string) predicate.RoleMenus
- func DescriptionIn(vs ...string) predicate.RoleMenus
- func DescriptionLT(v string) predicate.RoleMenus
- func DescriptionLTE(v string) predicate.RoleMenus
- func DescriptionNEQ(v string) predicate.RoleMenus
- func DescriptionNotIn(vs ...string) predicate.RoleMenus
- func HasLionMenus() predicate.RoleMenus
- func HasLionMenusWith(preds ...predicate.Menus) predicate.RoleMenus
- func HasLionRoles() predicate.RoleMenus
- func HasLionRolesWith(preds ...predicate.Roles) predicate.RoleMenus
- func ID(id int) predicate.RoleMenus
- func IDEQ(id int) predicate.RoleMenus
- func IDGT(id int) predicate.RoleMenus
- func IDGTE(id int) predicate.RoleMenus
- func IDIn(ids ...int) predicate.RoleMenus
- func IDLT(id int) predicate.RoleMenus
- func IDLTE(id int) predicate.RoleMenus
- func IDNEQ(id int) predicate.RoleMenus
- func IDNotIn(ids ...int) predicate.RoleMenus
- func IsRecursive(v bool) predicate.RoleMenus
- func IsRecursiveEQ(v bool) predicate.RoleMenus
- func IsRecursiveNEQ(v bool) predicate.RoleMenus
- func MenuID(v int) predicate.RoleMenus
- func MenuIDEQ(v int) predicate.RoleMenus
- func MenuIDIn(vs ...int) predicate.RoleMenus
- func MenuIDNEQ(v int) predicate.RoleMenus
- func MenuIDNotIn(vs ...int) predicate.RoleMenus
- func Not(p predicate.RoleMenus) predicate.RoleMenus
- func Or(predicates ...predicate.RoleMenus) predicate.RoleMenus
- func PermissionScope(v int) predicate.RoleMenus
- func PermissionScopeEQ(v int) predicate.RoleMenus
- func PermissionScopeGT(v int) predicate.RoleMenus
- func PermissionScopeGTE(v int) predicate.RoleMenus
- func PermissionScopeIn(vs ...int) predicate.RoleMenus
- func PermissionScopeLT(v int) predicate.RoleMenus
- func PermissionScopeLTE(v int) predicate.RoleMenus
- func PermissionScopeNEQ(v int) predicate.RoleMenus
- func PermissionScopeNotIn(vs ...int) predicate.RoleMenus
- func RoleID(v int) predicate.RoleMenus
- func RoleIDEQ(v int) predicate.RoleMenus
- func RoleIDIn(vs ...int) predicate.RoleMenus
- func RoleIDNEQ(v int) predicate.RoleMenus
- func RoleIDNotIn(vs ...int) predicate.RoleMenus
- func UpdatedAt(v time.Time) predicate.RoleMenus
- func UpdatedAtEQ(v time.Time) predicate.RoleMenus
- func UpdatedAtGT(v time.Time) predicate.RoleMenus
- func UpdatedAtGTE(v time.Time) predicate.RoleMenus
- func UpdatedAtIn(vs ...time.Time) predicate.RoleMenus
- func UpdatedAtLT(v time.Time) predicate.RoleMenus
- func UpdatedAtLTE(v time.Time) predicate.RoleMenus
- func UpdatedAtNEQ(v time.Time) predicate.RoleMenus
- func UpdatedAtNotIn(vs ...time.Time) predicate.RoleMenus
- func UpdatedBy(v int64) predicate.RoleMenus
- func UpdatedByEQ(v int64) predicate.RoleMenus
- func UpdatedByGT(v int64) predicate.RoleMenus
- func UpdatedByGTE(v int64) predicate.RoleMenus
- func UpdatedByIn(vs ...int64) predicate.RoleMenus
- func UpdatedByIsNil() predicate.RoleMenus
- func UpdatedByLT(v int64) predicate.RoleMenus
- func UpdatedByLTE(v int64) predicate.RoleMenus
- func UpdatedByNEQ(v int64) predicate.RoleMenus
- func UpdatedByNotIn(vs ...int64) predicate.RoleMenus
- func UpdatedByNotNil() predicate.RoleMenus
- func ValidColumn(column string) bool
- type OrderOption
- func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
- func ByCreatedBy(opts ...sql.OrderTermOption) OrderOption
- func ByDescription(opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByIsRecursive(opts ...sql.OrderTermOption) OrderOption
- func ByLionMenusField(field string, opts ...sql.OrderTermOption) OrderOption
- func ByLionRolesField(field string, opts ...sql.OrderTermOption) OrderOption
- func ByMenuID(opts ...sql.OrderTermOption) OrderOption
- func ByPermissionScope(opts ...sql.OrderTermOption) OrderOption
- func ByRoleID(opts ...sql.OrderTermOption) OrderOption
- func ByUpdatedAt(opts ...sql.OrderTermOption) OrderOption
- func ByUpdatedBy(opts ...sql.OrderTermOption) OrderOption
Constants ¶
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 ¶
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 )
var Columns = []string{ FieldID, FieldCreatedAt, FieldUpdatedAt, FieldCreatedBy, FieldUpdatedBy, FieldRoleID, FieldMenuID, FieldPermissionScope, FieldDescription, FieldIsRecursive, }
Columns holds all SQL columns for rolemenus fields.
Functions ¶
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 HasLionMenus ¶
HasLionMenus applies the HasEdge predicate on the "lion_menus" edge.
func HasLionMenusWith ¶
HasLionMenusWith applies the HasEdge predicate on the "lion_menus" edge with a given conditions (other predicates).
func HasLionRoles ¶
HasLionRoles applies the HasEdge predicate on the "lion_roles" edge.
func HasLionRolesWith ¶
HasLionRolesWith applies the HasEdge predicate on the "lion_roles" edge with a given conditions (other predicates).
func IsRecursive ¶
IsRecursive applies equality check predicate on the "is_recursive" field. It's identical to IsRecursiveEQ.
func IsRecursiveEQ ¶
IsRecursiveEQ applies the EQ predicate on the "is_recursive" field.
func IsRecursiveNEQ ¶
IsRecursiveNEQ applies the NEQ predicate on the "is_recursive" field.
func MenuID ¶
MenuID applies equality check predicate on the "menu_id" field. It's identical to MenuIDEQ.
func MenuIDNotIn ¶
MenuIDNotIn applies the NotIn predicate on the "menu_id" field.
func PermissionScope ¶
PermissionScope applies equality check predicate on the "permission_scope" field. It's identical to PermissionScopeEQ.
func PermissionScopeEQ ¶
PermissionScopeEQ applies the EQ predicate on the "permission_scope" field.
func PermissionScopeGT ¶
PermissionScopeGT applies the GT predicate on the "permission_scope" field.
func PermissionScopeGTE ¶
PermissionScopeGTE applies the GTE predicate on the "permission_scope" field.
func PermissionScopeIn ¶
PermissionScopeIn applies the In predicate on the "permission_scope" field.
func PermissionScopeLT ¶
PermissionScopeLT applies the LT predicate on the "permission_scope" field.
func PermissionScopeLTE ¶
PermissionScopeLTE applies the LTE predicate on the "permission_scope" field.
func PermissionScopeNEQ ¶
PermissionScopeNEQ applies the NEQ predicate on the "permission_scope" field.
func PermissionScopeNotIn ¶
PermissionScopeNotIn applies the NotIn predicate on the "permission_scope" field.
func RoleID ¶
RoleID applies equality check predicate on the "role_id" field. It's identical to RoleIDEQ.
func RoleIDNotIn ¶
RoleIDNotIn applies the NotIn predicate on the "role_id" 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).
Types ¶
type OrderOption ¶
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.