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.

26 lines
689 B

  1. package model
  2. import (
  3. "github.com/jinzhu/gorm"
  4. )
  5. type SysBaseMenu struct {
  6. gorm.Model
  7. MenuLevel uint `json:"-"`
  8. ParentId string `json:"parentId"`
  9. Path string `json:"path"`
  10. Name string `json:"name"`
  11. Hidden bool `json:"hidden"`
  12. Component string `json:"component"`
  13. Sort int `json:"sort"`
  14. Meta `json:"meta"`
  15. SysAuthoritys []SysAuthority `json:"authoritys" gorm:"many2many:sys_authority_menus;"`
  16. Children []SysBaseMenu `json:"children"`
  17. }
  18. type Meta struct {
  19. KeepAlive bool `json:"keepAlive"`
  20. DefaultMenu bool `json:"defaultMenu"`
  21. Title string `json:"title"`
  22. Icon string `json:"icon"`
  23. }