route

package
v0.0.0-...-3dda883 Latest Latest
Warning

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

Go to latest
Published: May 9, 2024 License: MIT Imports: 31 Imported by: 0

Documentation

Index

Constants

View Source
const (
	StringSlice = `					"{{.str}}",`
)

Variables

View Source
var (
	ParamConverter = map[reflect.Kind]func(v string) (interface{}, error){}
)

Functions

func BuildRouteMap

func BuildRouteMap(controllerStatusPath, controllerPath, goModFilePath, genPath string, contrs ...controller.IController)

BuildRouteMap 本地环境根据Controller注释构建RouteMap

func InjectFunc

func InjectFunc(ctx *socreq.GinContext, handlerFunc *model.HandlerFuncInOut) ([]reflect.Value, errors.AppError)

func RegisterRoute

func RegisterRoute(engine *gin.Engine, controllerStatusPath, controllerPath, goModFilePath, genPath string,
	routeUrlMethodMap map[string]map[string]map[string][]string, handlerFuncMap map[string]model.HandlerFuncInOut,
	contrs ...controller.IController)

Types

This section is empty.

Directories

Path Synopsis
middleware

Jump to

Keyboard shortcuts

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