code

package
v0.0.0-...-df1963f Latest Latest
Warning

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

Go to latest
Published: Jun 10, 2024 License: AGPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	KNIFE_GO_NAME       = "knife.go"
	KNIFE_GO_PATH       = "../gin-openapi3-knife"
	KNIFE_VUE_DIST_PATH = "../kinfe-openapi3-front-dist"
	OUTPUT_PATH         = "../gin-openapi3-knife/v3/knife"
	ROOT_PACKAGE        = "knife"
	ROOT_RELATE_PATH    = ""
	IMPORT_ROOT         = "gitee.com/youbeiwuhuan/knife4go/gin-openapi3-knife/v3/knife"
)

Variables

This section is empty.

Functions

func ScanKnifeVueDist

func ScanKnifeVueDist(dirPath string, relativePath string, packageName string, outputPath string, knifeArgs *KnifeArgs)

扫描knife-vue-dist目录

Types

type DistFileTemplArgs

type DistFileTemplArgs struct {
	PackageName    string `json:"PackageName"`
	HexContent     string `json:"HexContent"`
	FileDir        string `json:"FileDir"`
	FileRelavePath string `json:"FileRelavePath"`
	FileType       string `json:"FileType"`
	FileName       string `json:"FileName"`
	FileName2      string `json:"FileName2"`
	FileName3      string `json:"FileName3"`
}

模板参数

func (DistFileTemplArgs) String

func (t DistFileTemplArgs) String() string

type KnifeArgs

type KnifeArgs struct {
	KnifeImport map[string]string `json:"KnifeImport"` // 别名 ->  包名
	Lines       []KnifeLine       `json:"KnifeLine"`
}

func (KnifeArgs) String

func (t KnifeArgs) String() string

type KnifeLine

type KnifeLine struct {
	FileName3    string `json:"FileName3"`
	PackageAlian string `json:"PackageAlian"`
}

模板参数

Jump to

Keyboard shortcuts

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