@@ -7,23 +7,23 @@ import (
77type SysBaseMenu struct {
88 gorm.Model
99 MenuLevel uint `json:"-"`
10- ParentId string `json:"parentId" gorm:"comment:' 父菜单ID' "`
11- Path string `json:"path" gorm:"comment:' 路由path' "`
12- Name string `json:"name" gorm:"comment:' 路由name' "`
13- Hidden bool `json:"hidden" gorm:"comment:' 是否在列表隐藏' "`
14- Component string `json:"component" gorm:"comment:' 对应前端文件路径' "`
15- Sort int `json:"sort" gorm:"comment:' 排序标记' "`
16- Meta `json:"meta" gorm:"comment:' 附加属性' "`
10+ ParentId string `json:"parentId" gorm:"comment:父菜单ID"`
11+ Path string `json:"path" gorm:"comment:路由path"`
12+ Name string `json:"name" gorm:"comment:路由name"`
13+ Hidden bool `json:"hidden" gorm:"comment:是否在列表隐藏"`
14+ Component string `json:"component" gorm:"comment:对应前端文件路径"`
15+ Sort int `json:"sort" gorm:"comment:排序标记"`
16+ Meta `json:"meta" gorm:"comment:附加属性"`
1717 SysAuthoritys []SysAuthority `json:"authoritys" gorm:"many2many:sys_authority_menus;"`
1818 Children []SysBaseMenu `json:"children" gorm:"-"`
1919 Parameters []SysBaseMenuParameter `json:"parameters"`
2020}
2121
2222type Meta struct {
23- KeepAlive bool `json:"keepAlive" gorm:"comment:' 是否缓存' "`
24- DefaultMenu bool `json:"defaultMenu" gorm:"comment:' 是否是基础路由(开发中)' "`
25- Title string `json:"title" gorm:"comment:' 菜单名' "`
26- Icon string `json:"icon" gorm:"comment:' 菜单图标' "`
23+ KeepAlive bool `json:"keepAlive" gorm:"comment:是否缓存"`
24+ DefaultMenu bool `json:"defaultMenu" gorm:"comment:是否是基础路由(开发中)"`
25+ Title string `json:"title" gorm:"comment:菜单名"`
26+ Icon string `json:"icon" gorm:"comment:菜单图标"`
2727}
2828
2929type SysBaseMenuParameter struct {
0 commit comments