Documentation ¶
Index ¶
Constants ¶
View Source
const ( SeedPathKey = "seed.menu.path" ConnName dal.ConnName = "sys" )
Variables ¶
View Source
var ProviderSet = wire.NewSet(NewMenuSeed)
ProviderSet is biz providers.
Functions ¶
This section is empty.
Types ¶
type Menu ¶
type Menu struct { gorm.UIDBase `json:",squash"` gorm.AuditedModel Name string `json:"name"` Desc string `json:"desc"` Component string `json:"component"` Requirement []MenuPermissionRequirement `gorm:"foreignKey:MenuID;constraint:OnDelete:CASCADE;" json:"requirement"` Parent string `json:"parent"` Props data.JSONMap `json:"props"` FullPath string `json:"full_path"` Priority int32 `json:"priority"` IgnoreAuth bool `json:"ignore_auth"` Icon string `json:"icon"` Iframe string `json:"iframe"` MicroApp string `json:"micro_app"` MicroAppDev string `json:"micro_app_dev"` MicroAppName string `json:"micro_app_name"` MicroAppBaseRoute string `json:"micro_app_base_route"` Meta data.JSONMap `json:"meta"` Title string `json:"title"` Path string `json:"path"` Redirect string `json:"redirect"` IsPreserved bool `json:"is_preserved"` }
func (*Menu) MergeWithPreservedFields ¶
Click to show internal directories.
Click to hide internal directories.