helper

package
v0.0.0-...-6d7266f Latest Latest
Warning

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

Go to latest
Published: Nov 22, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConvertRouteGroups

func ConvertRouteGroups(sp *aspec.ApiSpec) (out map[string][]GroupRoute)

Types

type GroupRoute

type GroupRoute struct {
	Name       string // account
	Prefix     string
	Middleware []string
	Routes     []Route
}

type GroupType

type GroupType struct {
	Group string
	Types []spec.Type
}

func ConvertTypeGroups

func ConvertTypeGroups(sp *spec.ApiSpec) (out []GroupType)

type Route

type Route struct {
	Doc      string // 用户接口
	Handler  string // UserHandler
	Path     string // /api/v1/user
	Method   string // POST、GET、PUT、DELETE
	Request  string
	Response string
}

Jump to

Keyboard shortcuts

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