You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

27 lines
654 B

3 years ago
3 years ago
  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. }