Documentation ¶
Index ¶
- type BoxRoute
- type Route
- type Srv
- func (s *Srv) DelRouter(id []string) error
- func (s *Srv) GetRouter(id int) *BoxRoute
- func (s *Srv) GetRouterCount() int
- func (s *Srv) GetRouterlist(page, size int) []BoxRoute
- func (s *Srv) PostRouter(a BoxRoute) error
- func (s *Srv) PutRouter(id int, a BoxRoute) error
- func (s *Srv) Route(perms ...string) []*Route
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BoxRoute ¶
type BoxRoute struct { gorm.Model FatherID uint Name string `gorm:"not null" json:"name"` Desc string `gorm:"not null" json:"desc,omitempty"` Sort int `gorm:"not null" json:"sort"` Path string `gorm:"not null" json:"path"` Perm string `gorm:"not null" json:"perm,omitempty"` Component string `json:"component,omitempty"` AlwaysShow bool `json:"alwaysShow"` Hidden bool `json:"hidden"` Redirect string `json:"redirect,omitempty"` Title string `json:"title,omitempty"` Icon string `json:"icon,omitempty"` NoCache bool `json:"noCache"` Breadcrumb bool `json:"breadcrumb"` Affix bool `json:"affix"` }
BoxRoute Model
type Srv ¶
type Srv struct {
// contains filtered or unexported fields
}
Srv Route
func (*Srv) GetRouterlist ¶
GetRouterlist 获取菜单列表
Click to show internal directories.
Click to hide internal directories.