ts_tpl

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Nov 9, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var RequestTpl string

Functions

This section is empty.

Types

type ApiInfo

type ApiInfo struct {
	File         string            `yaml:"File" json:"File"`
	Title        string            `yaml:"title" json:"title" c:"接口标题"`
	Desc         string            `yaml:"desc" json:"desc" c:"接口描述"`
	Method       string            `yaml:"method" json:"method"`
	Router       string            `yaml:"router" json:"router"`
	TypeList     []api_type.Object `yaml:"typeList" json:"typeList"`
	Header       *api_type.Object  `yaml:"header" json:"header" c:"请求头说明"`
	Query        *api_type.Object  `yaml:"query" json:"query"`
	Body         *api_type.Object  `yaml:"body" json:"body"`
	Param        *api_type.Object  `yaml:"param" json:"param"`
	Resp         *api_type.Object  `yaml:"resp" json:"resp"`
	FunctionName string            `yaml:"functionName" json:"functionName" c:"函数名"`
	RawRouter    string            `yaml:"rawRouter" json:"rawRouter" c:"原始路径"`
}

func (ApiInfo) Run

func (a ApiInfo) Run() error

Jump to

Keyboard shortcuts

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