router

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: May 31, 2022 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitRouoters

func InitRouoters(g *gin.Engine)

全局路由

Types

type ApiRouters

type ApiRouters struct {
	// contains filtered or unexported fields
}

api接口路由

func NewApiRouters

func NewApiRouters() *ApiRouters

func (*ApiRouters) Register

func (a *ApiRouters) Register(g *gin.Engine)

type StaticRouters

type StaticRouters struct{}

静态文件路由

func NewStaticRouters

func NewStaticRouters() *StaticRouters

func (*StaticRouters) Register

func (s *StaticRouters) Register(g *gin.Engine)

type SwaggerRouters

type SwaggerRouters struct{}

swagger路由

func NewSwaggerRouters

func NewSwaggerRouters() *SwaggerRouters

func (*SwaggerRouters) Register

func (s *SwaggerRouters) Register(g *gin.Engine)

type UserRouter

type UserRouter struct{}

用户api router

func NewUserRouter

func NewUserRouter() *UserRouter

func (*UserRouter) Register

func (u *UserRouter) Register(g *gin.RouterGroup)

Jump to

Keyboard shortcuts

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