goweb-gin-demo/server/model/system/request/sys_menu.go

28 lines
596 B
Go
Raw Normal View History

2021-10-29 14:39:50 +08:00
package request
import (
2021-10-29 14:44:41 +08:00
"goweb-gin-demo/global"
2021-11-10 11:11:14 +08:00
"goweb-gin-demo/model/system"
2021-10-29 14:39:50 +08:00
)
// Add menu authority info structure
type AddMenuAuthorityInfo struct {
2021-11-10 11:11:14 +08:00
Menus []system.SysBaseMenu `json:"menus"`
2021-10-29 14:39:50 +08:00
AuthorityId string `json:"authorityId"` // 角色ID
}
2021-11-10 11:11:14 +08:00
func DefaultMenu() []system.SysBaseMenu {
return []system.SysBaseMenu{{
2021-10-29 14:39:50 +08:00
GLOBAL_MODEL: global.GLOBAL_MODEL{ID: 1},
ParentId: "0",
Path: "dashboard",
Name: "dashboard",
Component: "view/dashboard/index.vue",
Sort: 1,
2021-11-10 11:11:14 +08:00
Meta: system.Meta{
2021-10-29 14:39:50 +08:00
Title: "仪表盘",
Icon: "setting",
},
}}
}