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.

23 lines
596 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. Title string `json:"title"`
  20. Icon string `json:"icon"`
  21. }