genapi

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Jul 26, 2026 License: MIT Imports: 45 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func UpdateImportedModule

func UpdateImportedModule(f *ast.File, fset *token.FileSet, workDir, module string) error

Types

type HandlerFile

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

type ImportLines

type ImportLines []string

func (ImportLines) String

func (l ImportLines) String() string

type LogicFile

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

type PzeroApi

type PzeroApi struct {
	Module string
}

func (*PzeroApi) Gen

func (ja *PzeroApi) Gen(progressChan chan<- progress.Message) (map[string]*spec.ApiSpec, error)

type RegisterLines

type RegisterLines []string

func (RegisterLines) String

func (l RegisterLines) String() string

type Route

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