@@ -6,35 +6,36 @@ import (
6
6
7
7
type SysBaseMenu struct {
8
8
global.GVA_MODEL
9
- MenuLevel uint `json:"-"`
10
- ParentId uint `json:"parentId" gorm:"comment:父菜单ID"` // 父菜单ID
11
- Path string `json:"path" gorm:"comment:路由path"` // 路由path
12
- Name string `json:"name" gorm:"comment:路由name"` // 路由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:"embedded;comment:附加属性"` // 附加属性
17
- SysAuthoritys []SysAuthority `json:"authoritys" gorm:"many2many:sys_authority_menus;"`
18
- Children []SysBaseMenu `json:"children" gorm:"-"`
19
- Parameters []SysBaseMenuParameter `json:"parameters"`
20
- MenuBtn []SysBaseMenuBtn `json:"menuBtn"`
9
+ MenuLevel uint `json:"-"`
10
+ ParentId uint `json:"parentId" gorm:"comment:父菜单ID"` // 父菜单ID
11
+ Path string `json:"path" gorm:"comment:路由path"` // 路由path
12
+ Name string `json:"name" gorm:"comment:路由name"` // 路由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:"embedded;comment:附加属性"` // 附加属性
17
+ SysAuthoritys []SysAuthority `json:"authoritys" gorm:"many2many:sys_authority_menus;"`
18
+ Children []SysBaseMenu `json:"children" gorm:"-"`
19
+ Parameters []SysBaseMenuParameter `json:"parameters"`
20
+ MenuBtn []SysBaseMenuBtn `json:"menuBtn"`
21
21
}
22
22
23
23
type Meta struct {
24
- ActiveName string `json:"activeName" gorm:"comment:高亮菜单"`
25
- KeepAlive bool `json:"keepAlive" gorm:"comment:是否缓存"` // 是否缓存
26
- DefaultMenu bool `json:"defaultMenu" gorm:"comment:是否是基础路由(开发中)"` // 是否是基础路由(开发中)
27
- Title string `json:"title" gorm:"comment:菜单名"` // 菜单名
28
- Icon string `json:"icon" gorm:"comment:菜单图标"` // 菜单图标
29
- CloseTab bool `json:"closeTab" gorm:"comment:自动关闭tab"` // 自动关闭tab
24
+ ActiveName string `json:"activeName" gorm:"comment:高亮菜单"`
25
+ KeepAlive bool `json:"keepAlive" gorm:"comment:是否缓存"` // 是否缓存
26
+ DefaultMenu bool `json:"defaultMenu" gorm:"comment:是否是基础路由(开发中)"` // 是否是基础路由(开发中)
27
+ Title string `json:"title" gorm:"comment:菜单名"` // 菜单名
28
+ Icon string `json:"icon" gorm:"comment:菜单图标"` // 菜单图标
29
+ CloseTab bool `json:"closeTab" gorm:"comment:自动关闭tab"` // 自动关闭tab
30
+ TransitionType string `json:"transitionType" gorm:"comment:路由切换动画"` // 路由切换动画
30
31
}
31
32
32
33
type SysBaseMenuParameter struct {
33
34
global.GVA_MODEL
34
35
SysBaseMenuID uint
35
36
Type string `json:"type" gorm:"comment:地址栏携带参数为params还是query"` // 地址栏携带参数为params还是query
36
- Key string `json:"key" gorm:"comment:地址栏携带参数的key"` // 地址栏携带参数的key
37
- Value string `json:"value" gorm:"comment:地址栏携带参数的值"` // 地址栏携带参数的值
37
+ Key string `json:"key" gorm:"comment:地址栏携带参数的key"` // 地址栏携带参数的key
38
+ Value string `json:"value" gorm:"comment:地址栏携带参数的值"` // 地址栏携带参数的值
38
39
}
39
40
40
41
func (SysBaseMenu ) TableName () string {
0 commit comments