cmd

package
v0.0.0-...-f0d4a1f Latest Latest
Warning

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

Go to latest
Published: Aug 30, 2023 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ModeUpper                = iota + 1 // 全部转大写
	ModeLower                           // 全部转小写
	ModeToCamelCaseFistLarge            // 转大写驼峰
	ModeToCamelCaseFistLower            // 转小写驼峰
	ModeToSnakeLower                    // 转小写下划线
	ModeToSnakeLarge                    // 转大写下划线
)

Variables

This section is empty.

Functions

func NewApiParam

func NewApiParam(configLoader *config.Loader, gen *api.SchemaApiGen, templateGen *template.Generator) *cobra.Command

func NewFileConvertCmd

func NewFileConvertCmd() *cobra.Command

NewFileConvertCmd 文件行转换

func NewModelCmd

func NewModelCmd(configLoader *config.Loader, gen *db.SchemaInformationGen) *cobra.Command

func NewWordCmd

func NewWordCmd() *cobra.Command

Types

type ApiConfig

type ApiConfig struct {
	Token map[string]string `yaml:"token"`
}

type ApiParam

type ApiParam struct {
	// contains filtered or unexported fields
}

type DbConfig

type DbConfig struct {
	Url      string `yaml:"url"`
	DataBase string `yaml:"dataBase"`
	Tables   string `yaml:"tables"`
}

type FileConvertParam

type FileConvertParam struct {
	// contains filtered or unexported fields
}

type SqlModelConfig

type SqlModelConfig struct {
	Db *DbConfig `yaml:"db"`
}

SqlModelConfig 模型配置文件

type WordParam

type WordParam struct {
	// contains filtered or unexported fields
}

Jump to

Keyboard shortcuts

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