sys_menu.go 654 B

123456789101112131415161718192021222324252627
  1. package request
  2. import (
  3. "github.com/flipped-aurora/gin-vue-admin/server/global"
  4. "github.com/flipped-aurora/gin-vue-admin/server/model/system"
  5. )
  6. // Add menu authority info structure
  7. type AddMenuAuthorityInfo struct {
  8. Menus []system.SysBaseMenu `json:"menus"`
  9. AuthorityId string `json:"authorityId"` // 角色ID
  10. }
  11. func DefaultMenu() []system.SysBaseMenu {
  12. return []system.SysBaseMenu{{
  13. GVA_MODEL: global.GVA_MODEL{ID: 1},
  14. ParentId: "0",
  15. Path: "dashboard",
  16. Name: "dashboard",
  17. Component: "view/dashboard/index.vue",
  18. Sort: 1,
  19. Meta: system.Meta{
  20. Title: "仪表盘",
  21. Icon: "setting",
  22. },
  23. }}
  24. }