|
|
@@ -17,23 +17,23 @@ type SysMenu internal.SysMenu
|
|
|
|
|
|
// SysMenuReq 新增页面请求参数
|
|
|
type SysMenuReq struct {
|
|
|
- Id int `json:"id"` // ID
|
|
|
- ParentId int `json:"parentId"` // 父菜单ID
|
|
|
- MenuName string `json:"menuName" v:"required#菜单名称不能为空"` // 菜单名称
|
|
|
- Path string `json:"path"` // 路由地址
|
|
|
- Component string `json:"component"` // 组件路径
|
|
|
- Query string `json:"query"` // 路由参数
|
|
|
- IsFrame int `json:"isFrame"` // 是否为外链(10是20否)
|
|
|
- IsCache int `json:"isCache"` // 是否缓存(10缓存20不缓存)
|
|
|
- MenuType string `json:"menuType" v:"required#菜单类型不能为空"` // 菜单类型(M目录C菜单 F按钮)
|
|
|
- Visible string `json:"visible"` // 显示状态(10显示20隐藏)
|
|
|
- Status string `json:"status"` // 菜单状态(10正常20停用)
|
|
|
- Perms string `json:"perms"` // 权限标识
|
|
|
- Icon string `json:"icon"` // 菜单图标
|
|
|
- PlatformId int `json:"platformId"` // 所属平台
|
|
|
- Sort int `json:"sort"` // 显示顺序
|
|
|
- ActiveMenu string `json:"activeMenu"` // 高亮路由
|
|
|
- Remark string `json:"remark"` // 备注
|
|
|
+ Id int `json:"id"` // ID
|
|
|
+ ParentId int `json:"parentId"` // 父菜单ID
|
|
|
+ MenuName string `json:"menuName" v:"required#菜单名称不能为空"` // 菜单名称
|
|
|
+ Path string `json:"path"` // 路由地址
|
|
|
+ Component string `json:"component"` // 组件路径
|
|
|
+ Query string `json:"query"` // 路由参数
|
|
|
+ IsFrame int `json:"isFrame"` // 是否为外链(10是20否)
|
|
|
+ IsCache int `json:"isCache"` // 是否缓存(10缓存20不缓存)
|
|
|
+ MenuType string `json:"menuType" v:"required#菜单类型不能为空"` // 菜单类型(M目录C菜单 F按钮)
|
|
|
+ Visible string `json:"visible" v:"required|in:10,20#显示状态不能为空|显示状态只能为10或20"` // 显示状态(10显示20隐藏)
|
|
|
+ Status string `json:"status" v:"required|in:10,20#菜单状态不能为空|菜单状态只能为10或20"` // 菜单状态(10正常20停用)
|
|
|
+ Perms string `json:"perms"` // 权限标识
|
|
|
+ Icon string `json:"icon"` // 菜单图标
|
|
|
+ PlatformId int `json:"platformId"` // 所属平台
|
|
|
+ Sort int `json:"sort"` // 显示顺序
|
|
|
+ ActiveMenu string `json:"activeMenu"` // 高亮路由
|
|
|
+ Remark string `json:"remark"` // 备注
|
|
|
}
|
|
|
|
|
|
type MenuTree struct {
|