cmd

package
v1.1.2 Latest Latest
Warning

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

Go to latest
Published: Aug 21, 2023 License: MIT Imports: 40 Imported by: 0

Documentation

Overview

Copyright © 2023 NAME HERE <EMAIL ADDRESS>

Copyright © 2023 NAME HERE <EMAIL ADDRESS>

Copyright © 2023 NAME HERE <EMAIL ADDRESS>

Copyright © 2023 NAME HERE <EMAIL ADDRESS>

Copyright © 2023 NAME HERE <EMAIL ADDRESS>

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Execute

func Execute()

Execute adds all child commands to the root command and sets flags appropriately. This is called by main.main(). It only needs to happen once to the rootCmd.

Types

type ActionDefinition added in v1.0.1

type ActionDefinition struct {
	Route   string
	Method  string
	Name    string
	HasData bool
	Params  []ParamDefinition
}

type ControllerGenerator

type ControllerGenerator struct {
	Package    string
	Name       string
	Path       string
	PascalName string
	CamelName  string

	PkgName string
}

type CrudRenderParams added in v1.0.1

type CrudRenderParams struct {
	PkgName string
	Module  string
	Model   *ModelInfo
}

type DaoGenerator

type DaoGenerator struct {
	Package    string
	Name       string
	Path       string
	PascalName string
	CamelName  string

	PkgName string
}

type HttpGenerator

type HttpGenerator struct {
	Package string
	Name    string
	Path    string

	PkgName string
}

type InjectParam added in v1.0.25

type InjectParam struct {
	Star         string
	Type         string
	Package      string
	PackageAlias string
}

type MigrationGenerator

type MigrationGenerator struct {
	ID                  string
	Package             string
	MigrationName       string
	TableName           string
	SnakeMigrationName  string
	PascalMigrationName string
}

type MigrationRunner added in v1.0.19

type MigrationRunner struct {
	Pkg         string
	AppName     string
	Driver      string
	MigrateToId string
}

type ModelField added in v1.0.1

type ModelField struct {
	Name         string
	Type         string
	Tag          string
	Comment      string
	Package      string
	PackageAlias string
}

type ModelGenerator added in v1.0.19

type ModelGenerator struct {
	PkgName string
	Driver  string
	AppName string
}

type ModelInfo added in v1.0.1

type ModelInfo struct {
	Name       string
	CamelName  string
	RouteName  string
	TagName    string
	IntType    string
	Fields     []ModelField
	PathFields []ModelField
	Imports    []string
}

func (*ModelInfo) GuessIntType added in v1.0.12

func (m *ModelInfo) GuessIntType()

type ModuleGenerator

type ModuleGenerator struct {
	Package    string
	Name       string
	NamePlural string
	Path       string

	PkgName string
}

type ParamDefinition added in v1.0.1

type ParamDefinition struct {
	Name     string
	Type     string
	Position Position
}

type Position added in v1.0.1

type Position string
const (
	PositionPath   Position = "Path"
	PositionQuery  Position = "Query"
	PositionBody   Position = "Body"
	PositionHeader Position = "Header"
)

type Provider added in v1.0.19

type Provider struct {
	StructName      string
	ReturnType      string
	ProviderGroup   string
	NeedPrepareFunc bool
	InjectParams    map[string]InjectParam
	Imports         map[string]string
	PkgName         string
	ProviderFile    string
}

type RenderAction added in v1.0.19

type RenderAction struct {
	ActionTplString string
	Method          string
	Controller      string
	Description     string
	Tag             string
	ContentType     string
	Params          []RenderActionParams
	Route           string
	RouteMethod     string
}

type RenderActionParams added in v1.0.19

type RenderActionParams struct {
	Name      string
	NameCamel string
	Type      string
	Desc      string
}

type RoueDefinition added in v1.0.1

type RoueDefinition struct {
	Path    string
	Name    string
	Imports []string
	Actions []ActionDefinition
}

type SeederGenerator

type SeederGenerator struct {
	Package          string
	SeederName       string
	SnakeSeederName  string
	PascalSeederName string
}

func (*SeederGenerator) SeederPath

func (m *SeederGenerator) SeederPath() string

type SeederRunner added in v1.0.19

type SeederRunner struct {
	Pkg     string
	AppName string
	Driver  string
}

type ServiceGenerator

type ServiceGenerator struct {
	Name       string
	Package    string
	Path       string
	PascalName string
	CamelName  string

	PkgName string
}

type SuiteGenerator

type SuiteGenerator struct {
	Name       string
	Package    string
	Path       string
	PascalName string

	PkgName string
}

Jump to

Keyboard shortcuts

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