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