client

package
v0.0.0-...-4a63614 Latest Latest
Warning

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

Go to latest
Published: May 31, 2025 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	FlagClientType string
	FlagCodesDst   string
	FlagProtoFile  string

	Cmd = &cobra.Command{
		Use:   "client",
		Short: "Generate client code",
		Run:   run,
	}

	PackageName string
)

Functions

func MkdirDirs

func MkdirDirs(dst string) error

Types

type MethodTemplateVars

type MethodTemplateVars struct {
	Name     string // 方法名
	Document string // 方法文档
	Cmd      string // 方法类型 rest Post / Get / Delete
	Uri      string // 方法请求路径 rest
	IsForm   bool   // 入参是否是form表单 rest
	ReqName  string // 入参自定义类型名
	ResName  string // 出参自定义类型名
}

type ServiceTemplateVars

type ServiceTemplateVars struct {
	PackageName string
	Name        string // 模块名称
	Document    string // 模块文档
	Methods     []*MethodTemplateVars
}

Jump to

Keyboard shortcuts

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