api

package
v1.5.2 Latest Latest
Warning

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

Go to latest
Published: Jan 7, 2026 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ProviderVersionSet = wire.NewSet(versionapi.NewVersionCore)
	ProviderSet        = wire.NewSet(
		wire.Struct(new(Usecase), "*"),
		NewHTTPHandler,
		versionapi.New,
	)
)

Functions

func NewHTTPHandler

func NewHTTPHandler(uc *Usecase) http.Handler

NewHTTPHandler 生成Gin框架路由内容

func NewUniqueID added in v1.2.2

func NewUniqueID(db *gorm.DB) uniqueid.Core

NewUniqueID 生成唯一 id

Types

type KV

type KV struct {
	Key   string
	Value int64
}

type Usecase

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

Jump to

Keyboard shortcuts

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