go-wxhelper/model/vo/menu/menu.go

22 lines
827 B
Go
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

package menu
// Item
// @description:
type Item struct {
Id string `json:"id"` // 菜单Id
Path string `json:"path"` // 访问路径
Name string `json:"name"` // 路由名字对应不要重复和页面组件的name保持一致必填
Meta ItemMeta `json:"meta"` // 元数据
Children []Item `json:"children,omitempty"` // 子菜单
}
// ItemMeta
// @description: 菜单元数据
type ItemMeta struct {
Title string `json:"title"` // 标题
Icon string `json:"icon"` // 图标
Rank int `json:"rank"` // 排序
Roles []string `json:"roles"` // 当前菜单所属的角色代码
Auths []string `json:"auths"` // 当前菜单包含的按钮如果传入了用户Id返回的将会是权限内所有的按钮
}