router

package
v6.4.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 21, 2020 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

RouterSet 注入router

Functions

This section is empty.

Types

type IRouter

type IRouter interface {
	Register(app *gin.Engine) error
	Prefixes() []string
}

IRouter 注册路由

type Router

type Router struct {
	Auth           auth.Auther
	CasbinEnforcer *casbin.SyncedEnforcer
	DemoAPI        *api.Demo
	LoginAPI       *api.Login
	MenuAPI        *api.Menu
	RoleAPI        *api.Role
	UserAPI        *api.User
}

Router 路由管理器

func (*Router) Prefixes

func (a *Router) Prefixes() []string

Prefixes 路由前缀列表

func (*Router) Register

func (a *Router) Register(app *gin.Engine) error

Register 注册路由

func (*Router) RegisterAPI

func (a *Router) RegisterAPI(app *gin.Engine)

RegisterAPI register api group router

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL