go-wxhelper/model/vo/menu/menu.go
2024-01-19 12:06:30 +08:00

21 lines
657 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"` // 访问路径
Meta ItemMeta `json:"meta"` // 元数据
Children []Item `json:"children"` // 子菜单
}
// 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返回的将会是权限内所有的按钮
}