router

package
v8.1.0 Latest Latest
Warning

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

Go to latest
Published: Oct 22, 2021 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

Functions

This section is empty.

Types

type IRouter

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

type Router

type Router struct {
	Auth           auth.Auther
	CasbinEnforcer *casbin.SyncedEnforcer
	LoginAPI       *api.LoginAPI
	MenuAPI        *api.MenuAPI
	RoleAPI        *api.RoleAPI
	UserAPI        *api.UserAPI

} // end

func (*Router) Prefixes

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

func (*Router) Register

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

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