api

package
v0.0.0-...-3839eb7 Latest Latest
Warning

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

Go to latest
Published: Mar 5, 2024 License: MIT Imports: 19 Imported by: 0

Documentation

Index

Constants

View Source
const (
	BasePath = "/open/v1"
	DocPath  = "/open/v1/doc"
)

Variables

View Source
var ApiProviderSet = wire.NewSet(
	user.UserRouterSet,
	wire.Struct(new(Router), "*"),
)
View Source
var Config = &ginSwagger.Config{
	URL:                      "doc.json",
	DocExpansion:             "list",
	InstanceName:             "openapi",
	Title:                    "OpenAPI",
	DefaultModelsExpandDepth: 0,
	DeepLinking:              true,
	PersistAuthorization:     false,
	Oauth2DefaultClientID:    "",
}

Functions

This section is empty.

Types

type Router

type Router struct {
	User user.APIRouter
}

func SetupOpenAPI

func SetupOpenAPI(cfg *conf.AppConf, engine *gin.Engine, datasource *data.DataSource) (Router, error)

SetupOpenAPI initializes app open api router configuration

Directories

Path Synopsis
Package docs Code generated by swaggo/swag at 2024-03-05 22:17:44.8864028 +0800 CST m=+2.739990801.
Package docs Code generated by swaggo/swag at 2024-03-05 22:17:44.8864028 +0800 CST m=+2.739990801.

Jump to

Keyboard shortcuts

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