v2

package
v0.0.0-...-c785948 Latest Latest
Warning

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

Go to latest
Published: Mar 10, 2024 License: AGPL-3.0 Imports: 3 Imported by: 1

Documentation

Index

Constants

View Source
const (
	SWAGGER_RESOURCES_CONTENT       = `[{"location":"/v2/api-docs?group=2.X版本","name":"2.X版本","swaggerVersion":"2.0","url":"/v2/api-docs?group=2.X版本"}]`
	SWAGGER_RESOURCES_RELATIVE_PATH = constant.ROOT_PATH + "/swagger-resources"
)
View Source
const (
	API_DOCS_RELATIVE_PATH = constant.ROOT_PATH + "/v2/api-docs"
)

Variables

This section is empty.

Functions

func AddApiDocRouter

func AddApiDocRouter(router *gin.Engine, swaggerJson string)

@param content string swag int 命令生成的swagger.json文件里的内容

func AddSwaggerResourcesRouter

func AddSwaggerResourcesRouter(router *gin.Engine)

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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