Documentation ¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Menu) predicate.Menu
- func CreatedAt(v time.Time) predicate.Menu
- func CreatedAtEQ(v time.Time) predicate.Menu
- func CreatedAtGT(v time.Time) predicate.Menu
- func CreatedAtGTE(v time.Time) predicate.Menu
- func CreatedAtIn(vs ...time.Time) predicate.Menu
- func CreatedAtLT(v time.Time) predicate.Menu
- func CreatedAtLTE(v time.Time) predicate.Menu
- func CreatedAtNEQ(v time.Time) predicate.Menu
- func CreatedAtNotIn(vs ...time.Time) predicate.Menu
- func DeletedAt(v time.Time) predicate.Menu
- func DeletedAtEQ(v time.Time) predicate.Menu
- func DeletedAtGT(v time.Time) predicate.Menu
- func DeletedAtGTE(v time.Time) predicate.Menu
- func DeletedAtIn(vs ...time.Time) predicate.Menu
- func DeletedAtIsNil() predicate.Menu
- func DeletedAtLT(v time.Time) predicate.Menu
- func DeletedAtLTE(v time.Time) predicate.Menu
- func DeletedAtNEQ(v time.Time) predicate.Menu
- func DeletedAtNotIn(vs ...time.Time) predicate.Menu
- func DeletedAtNotNil() predicate.Menu
- func Enable(v string) predicate.Menu
- func EnableContains(v string) predicate.Menu
- func EnableContainsFold(v string) predicate.Menu
- func EnableEQ(v string) predicate.Menu
- func EnableEqualFold(v string) predicate.Menu
- func EnableGT(v string) predicate.Menu
- func EnableGTE(v string) predicate.Menu
- func EnableHasPrefix(v string) predicate.Menu
- func EnableHasSuffix(v string) predicate.Menu
- func EnableIn(vs ...string) predicate.Menu
- func EnableLT(v string) predicate.Menu
- func EnableLTE(v string) predicate.Menu
- func EnableNEQ(v string) predicate.Menu
- func EnableNotIn(vs ...string) predicate.Menu
- func HasChildren() predicate.Menu
- func HasChildrenWith(preds ...predicate.Menu) predicate.Menu
- func HasOwner() predicate.Menu
- func HasOwnerWith(preds ...predicate.Role) predicate.Menu
- func HasParent() predicate.Menu
- func HasParentWith(preds ...predicate.Menu) predicate.Menu
- func ID(id int64) predicate.Menu
- func IDEQ(id int64) predicate.Menu
- func IDGT(id int64) predicate.Menu
- func IDGTE(id int64) predicate.Menu
- func IDIn(ids ...int64) predicate.Menu
- func IDLT(id int64) predicate.Menu
- func IDLTE(id int64) predicate.Menu
- func IDNEQ(id int64) predicate.Menu
- func IDNotIn(ids ...int64) predicate.Menu
- func Icon(v string) predicate.Menu
- func IconContains(v string) predicate.Menu
- func IconContainsFold(v string) predicate.Menu
- func IconEQ(v string) predicate.Menu
- func IconEqualFold(v string) predicate.Menu
- func IconGT(v string) predicate.Menu
- func IconGTE(v string) predicate.Menu
- func IconHasPrefix(v string) predicate.Menu
- func IconHasSuffix(v string) predicate.Menu
- func IconIn(vs ...string) predicate.Menu
- func IconIsNil() predicate.Menu
- func IconLT(v string) predicate.Menu
- func IconLTE(v string) predicate.Menu
- func IconNEQ(v string) predicate.Menu
- func IconNotIn(vs ...string) predicate.Menu
- func IconNotNil() predicate.Menu
- func Name(v string) predicate.Menu
- func NameContains(v string) predicate.Menu
- func NameContainsFold(v string) predicate.Menu
- func NameEQ(v string) predicate.Menu
- func NameEqualFold(v string) predicate.Menu
- func NameGT(v string) predicate.Menu
- func NameGTE(v string) predicate.Menu
- func NameHasPrefix(v string) predicate.Menu
- func NameHasSuffix(v string) predicate.Menu
- func NameIn(vs ...string) predicate.Menu
- func NameLT(v string) predicate.Menu
- func NameLTE(v string) predicate.Menu
- func NameNEQ(v string) predicate.Menu
- func NameNotIn(vs ...string) predicate.Menu
- func Not(p predicate.Menu) predicate.Menu
- func Or(predicates ...predicate.Menu) predicate.Menu
- func Path(v string) predicate.Menu
- func PathContains(v string) predicate.Menu
- func PathContainsFold(v string) predicate.Menu
- func PathEQ(v string) predicate.Menu
- func PathEqualFold(v string) predicate.Menu
- func PathGT(v string) predicate.Menu
- func PathGTE(v string) predicate.Menu
- func PathHasPrefix(v string) predicate.Menu
- func PathHasSuffix(v string) predicate.Menu
- func PathIn(vs ...string) predicate.Menu
- func PathIsNil() predicate.Menu
- func PathLT(v string) predicate.Menu
- func PathLTE(v string) predicate.Menu
- func PathNEQ(v string) predicate.Menu
- func PathNotIn(vs ...string) predicate.Menu
- func PathNotNil() predicate.Menu
- func Permission(v string) predicate.Menu
- func PermissionContains(v string) predicate.Menu
- func PermissionContainsFold(v string) predicate.Menu
- func PermissionEQ(v string) predicate.Menu
- func PermissionEqualFold(v string) predicate.Menu
- func PermissionGT(v string) predicate.Menu
- func PermissionGTE(v string) predicate.Menu
- func PermissionHasPrefix(v string) predicate.Menu
- func PermissionHasSuffix(v string) predicate.Menu
- func PermissionIn(vs ...string) predicate.Menu
- func PermissionLT(v string) predicate.Menu
- func PermissionLTE(v string) predicate.Menu
- func PermissionNEQ(v string) predicate.Menu
- func PermissionNotIn(vs ...string) predicate.Menu
- func Sort(v int) predicate.Menu
- func SortEQ(v int) predicate.Menu
- func SortGT(v int) predicate.Menu
- func SortGTE(v int) predicate.Menu
- func SortIn(vs ...int) predicate.Menu
- func SortLT(v int) predicate.Menu
- func SortLTE(v int) predicate.Menu
- func SortNEQ(v int) predicate.Menu
- func SortNotIn(vs ...int) predicate.Menu
- func Type(v string) predicate.Menu
- func TypeContains(v string) predicate.Menu
- func TypeContainsFold(v string) predicate.Menu
- func TypeEQ(v string) predicate.Menu
- func TypeEqualFold(v string) predicate.Menu
- func TypeGT(v string) predicate.Menu
- func TypeGTE(v string) predicate.Menu
- func TypeHasPrefix(v string) predicate.Menu
- func TypeHasSuffix(v string) predicate.Menu
- func TypeIn(vs ...string) predicate.Menu
- func TypeIsNil() predicate.Menu
- func TypeLT(v string) predicate.Menu
- func TypeLTE(v string) predicate.Menu
- func TypeNEQ(v string) predicate.Menu
- func TypeNotIn(vs ...string) predicate.Menu
- func TypeNotNil() predicate.Menu
- func UpdatedAt(v time.Time) predicate.Menu
- func UpdatedAtEQ(v time.Time) predicate.Menu
- func UpdatedAtGT(v time.Time) predicate.Menu
- func UpdatedAtGTE(v time.Time) predicate.Menu
- func UpdatedAtIn(vs ...time.Time) predicate.Menu
- func UpdatedAtLT(v time.Time) predicate.Menu
- func UpdatedAtLTE(v time.Time) predicate.Menu
- func UpdatedAtNEQ(v time.Time) predicate.Menu
- func UpdatedAtNotIn(vs ...time.Time) predicate.Menu
- func ValidColumn(column string) bool
Constants ¶
const ( // Label holds the string label denoting the menu type in the database. Label = "menu" // FieldID holds the string denoting the id field in the database. FieldID = "id" // FieldCreatedAt holds the string denoting the created_at field in the database. FieldCreatedAt = "created_at" // FieldUpdatedAt holds the string denoting the updated_at field in the database. FieldUpdatedAt = "updated_at" // FieldDeletedAt holds the string denoting the deleted_at field in the database. FieldDeletedAt = "deleted_at" // FieldPermission holds the string denoting the permission field in the database. FieldPermission = "permission" // FieldPath holds the string denoting the path field in the database. FieldPath = "path" // FieldName holds the string denoting the name field in the database. FieldName = "name" // FieldIcon holds the string denoting the icon field in the database. FieldIcon = "icon" // FieldSort holds the string denoting the sort field in the database. FieldSort = "sort" // FieldEnable holds the string denoting the enable field in the database. FieldEnable = "enable" // FieldType holds the string denoting the type field in the database. FieldType = "type" // EdgeParent holds the string denoting the parent edge name in mutations. EdgeParent = "parent" // EdgeChildren holds the string denoting the children edge name in mutations. EdgeChildren = "children" // EdgeOwner holds the string denoting the owner edge name in mutations. EdgeOwner = "owner" // Table holds the table name of the menu in the database. Table = "menu" // ParentTable is the table that holds the parent relation/edge. ParentTable = "menu" // ParentColumn is the table column denoting the parent relation/edge. ParentColumn = "menu_children" // ChildrenTable is the table that holds the children relation/edge. ChildrenTable = "menu" // ChildrenColumn is the table column denoting the children relation/edge. ChildrenColumn = "menu_children" // OwnerTable is the table that holds the owner relation/edge. OwnerTable = "menu" // OwnerInverseTable is the table name for the Role entity. // It exists in this package in order to avoid circular dependency with the "role" package. OwnerInverseTable = "role" // OwnerColumn is the table column denoting the owner relation/edge. OwnerColumn = "role_menu" )
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 // UpdateDefaultDeletedAt holds the default value on update for the "deleted_at" field. UpdateDefaultDeletedAt func() time.Time // PermissionValidator is a validator for the "permission" field. It is called by the builders before save. PermissionValidator func(string) error // PathValidator is a validator for the "path" field. It is called by the builders before save. PathValidator func(string) error // NameValidator is a validator for the "name" field. It is called by the builders before save. NameValidator func(string) error // IconValidator is a validator for the "icon" field. It is called by the builders before save. IconValidator func(string) error // DefaultSort holds the default value on creation for the "sort" field. DefaultSort int // DefaultEnable holds the default value on creation for the "enable" field. DefaultEnable string // EnableValidator is a validator for the "enable" field. It is called by the builders before save. EnableValidator func(string) error // TypeValidator is a validator for the "type" field. It is called by the builders before save. TypeValidator func(string) error // IDValidator is a validator for the "id" field. It is called by the builders before save. IDValidator func(int64) error )
var Columns = []string{ FieldID, FieldCreatedAt, FieldUpdatedAt, FieldDeletedAt, FieldPermission, FieldPath, FieldName, FieldIcon, FieldSort, FieldEnable, FieldType, }
Columns holds all SQL columns for menu fields.
var ForeignKeys = []string{
"menu_children",
"role_menu",
}
ForeignKeys holds the SQL foreign-keys that are owned by the "menu" table and are not defined as standalone fields in the schema.
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 DeletedAt ¶
DeletedAt applies equality check predicate on the "deleted_at" field. It's identical to DeletedAtEQ.
func DeletedAtEQ ¶
DeletedAtEQ applies the EQ predicate on the "deleted_at" field.
func DeletedAtGT ¶
DeletedAtGT applies the GT predicate on the "deleted_at" field.
func DeletedAtGTE ¶
DeletedAtGTE applies the GTE predicate on the "deleted_at" field.
func DeletedAtIn ¶
DeletedAtIn applies the In predicate on the "deleted_at" field.
func DeletedAtIsNil ¶
DeletedAtIsNil applies the IsNil predicate on the "deleted_at" field.
func DeletedAtLT ¶
DeletedAtLT applies the LT predicate on the "deleted_at" field.
func DeletedAtLTE ¶
DeletedAtLTE applies the LTE predicate on the "deleted_at" field.
func DeletedAtNEQ ¶
DeletedAtNEQ applies the NEQ predicate on the "deleted_at" field.
func DeletedAtNotIn ¶
DeletedAtNotIn applies the NotIn predicate on the "deleted_at" field.
func DeletedAtNotNil ¶
DeletedAtNotNil applies the NotNil predicate on the "deleted_at" field.
func Enable ¶
Enable applies equality check predicate on the "enable" field. It's identical to EnableEQ.
func EnableContains ¶
EnableContains applies the Contains predicate on the "enable" field.
func EnableContainsFold ¶
EnableContainsFold applies the ContainsFold predicate on the "enable" field.
func EnableEqualFold ¶
EnableEqualFold applies the EqualFold predicate on the "enable" field.
func EnableHasPrefix ¶
EnableHasPrefix applies the HasPrefix predicate on the "enable" field.
func EnableHasSuffix ¶
EnableHasSuffix applies the HasSuffix predicate on the "enable" field.
func EnableNotIn ¶
EnableNotIn applies the NotIn predicate on the "enable" field.
func HasChildren ¶
HasChildren applies the HasEdge predicate on the "children" edge.
func HasChildrenWith ¶
HasChildrenWith applies the HasEdge predicate on the "children" edge with a given conditions (other predicates).
func HasOwnerWith ¶
HasOwnerWith applies the HasEdge predicate on the "owner" edge with a given conditions (other predicates).
func HasParentWith ¶
HasParentWith applies the HasEdge predicate on the "parent" 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 IconNotNil ¶
IconNotNil applies the NotNil predicate on the "icon" field.
func NameContains ¶
NameContains applies the Contains predicate on the "name" field.
func NameContainsFold ¶
NameContainsFold applies the ContainsFold predicate on the "name" field.
func NameEqualFold ¶
NameEqualFold applies the EqualFold predicate on the "name" field.
func NameHasPrefix ¶
NameHasPrefix applies the HasPrefix predicate on the "name" field.
func NameHasSuffix ¶
NameHasSuffix applies the HasSuffix predicate on the "name" field.
func PathContains ¶
PathContains applies the Contains predicate on the "path" field.
func PathContainsFold ¶
PathContainsFold applies the ContainsFold predicate on the "path" field.
func PathEqualFold ¶
PathEqualFold applies the EqualFold predicate on the "path" field.
func PathHasPrefix ¶
PathHasPrefix applies the HasPrefix predicate on the "path" field.
func PathHasSuffix ¶
PathHasSuffix applies the HasSuffix predicate on the "path" field.
func PathNotNil ¶
PathNotNil applies the NotNil predicate on the "path" field.
func Permission ¶
Permission applies equality check predicate on the "permission" field. It's identical to PermissionEQ.
func PermissionContains ¶
PermissionContains applies the Contains predicate on the "permission" field.
func PermissionContainsFold ¶
PermissionContainsFold applies the ContainsFold predicate on the "permission" field.
func PermissionEQ ¶
PermissionEQ applies the EQ predicate on the "permission" field.
func PermissionEqualFold ¶
PermissionEqualFold applies the EqualFold predicate on the "permission" field.
func PermissionGT ¶
PermissionGT applies the GT predicate on the "permission" field.
func PermissionGTE ¶
PermissionGTE applies the GTE predicate on the "permission" field.
func PermissionHasPrefix ¶
PermissionHasPrefix applies the HasPrefix predicate on the "permission" field.
func PermissionHasSuffix ¶
PermissionHasSuffix applies the HasSuffix predicate on the "permission" field.
func PermissionIn ¶
PermissionIn applies the In predicate on the "permission" field.
func PermissionLT ¶
PermissionLT applies the LT predicate on the "permission" field.
func PermissionLTE ¶
PermissionLTE applies the LTE predicate on the "permission" field.
func PermissionNEQ ¶
PermissionNEQ applies the NEQ predicate on the "permission" field.
func PermissionNotIn ¶
PermissionNotIn applies the NotIn predicate on the "permission" field.
func TypeContains ¶
TypeContains applies the Contains predicate on the "type" field.
func TypeContainsFold ¶
TypeContainsFold applies the ContainsFold predicate on the "type" field.
func TypeEqualFold ¶
TypeEqualFold applies the EqualFold predicate on the "type" field.
func TypeHasPrefix ¶
TypeHasPrefix applies the HasPrefix predicate on the "type" field.
func TypeHasSuffix ¶
TypeHasSuffix applies the HasSuffix predicate on the "type" field.
func TypeNotNil ¶
TypeNotNil applies the NotNil predicate on the "type" 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 ValidColumn ¶
ValidColumn reports if the column name is valid (part of the table columns).
Types ¶
This section is empty.