router

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Jun 3, 2021 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

	DictApiV2 *api_v2.Dict
	DemoAPIV2 *api_v2.Demo
	MenuAPIV2 *api_v2.Menu
	RoleAPIV2 *api_v2.Role
	UserAPIV2 *api_v2.User

	SignInAPIV2 *api_v2.SignIn
}

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