genapi

package
v0.36.0-beta4 Latest Latest
Warning

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

Go to latest
Published: May 8, 2025 License: MIT Imports: 39 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HandlerFile

type HandlerFile struct {
	Package     string
	Group       string
	Compact     bool
	Handler     string
	Path        string
	ApiFilepath string
}

type JzeroApi

type JzeroApi struct {
	Module string

	ApiFiles          []string
	GenCodeApiFiles   []string
	ApiSpecMap        map[string]*spec.ApiSpec
	GenCodeApiSpecMap map[string]*spec.ApiSpec
}

func (*JzeroApi) Gen

func (ja *JzeroApi) Gen() error

type LogicFile

type LogicFile struct {
	Package      string
	Group        string
	Handler      string
	New          bool // 是否是新生成的 logic 文件
	Compact      bool // 是否合并 logic 文件
	Path         string
	DescFilepath string
	RequestType  spec.Type
	ResponseType spec.Type
}

type Route added in v0.28.0

type Route struct {
	Group string
	spec.Route
}

Jump to

Keyboard shortcuts

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