api

package
v1.0.6 Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2024 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ProviderVersionSet = wire.NewSet(NewVersion)
	ProviderSet        = wire.NewSet(
		wire.Struct(new(Usecase), "*"),
		NewHTTPHandler,
		NewVersionAPI,
	)
)

Functions

func NewHTTPHandler

func NewHTTPHandler(uc *Usecase) http.Handler

NewHTTPHandler 生成Gin框架路由内容

func NewVersion

func NewVersion(db *gorm.DB) *version.Core

NewVersion ...

Types

type Usecase

type Usecase struct {
	Conf    *conf.Bootstrap
	DB      *gorm.DB
	Version VersionAPI
}

type VersionAPI

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

func NewVersionAPI

func NewVersionAPI(ver *version.Core) VersionAPI

Jump to

Keyboard shortcuts

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