package model // Menu represents a menu item // swagger:model Menu type Menu struct { ID uint `gorm:"primarykey" json:"id"` ParentID uint `json:"parentId"` Name string `json:"name"` Icon string `json:"icon"` Path string `json:"path"` Sort int `json:"-"` PermissionCode string `json:"-"` Children []*Menu `json:"children" gorm:"-"` }