gen

package
v0.1.12 Latest Latest
Warning

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

Go to latest
Published: May 6, 2022 License: MIT Imports: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DB

type DB struct {
	PackageName string

	ModelName string

	RunFilePath string //which file run cmd?

	RootPath string

	WithDto bool

	CurrentFileName string
	FilenameSuffix  string
	FilePath        string
	// contains filtered or unexported fields
}

func (*DB) Cmd

func (r *DB) Cmd() *cobra.Command

type DtoData added in v0.0.6

type DtoData struct {
	Name   string
	Fields []DtoFields
}

type DtoFields added in v0.0.6

type DtoFields struct {
	Name     string
	Type     string
	JsonName string
}

type Route

type Route struct {
	PackageName string

	RootPath  string
	ModName   string
	RouteName string

	FilePath string

	WithService     bool
	ServiceFilePath string

	FilenameSuffix  string
	RouteNameSuffix string
}

func (*Route) Cmd

func (r *Route) Cmd() *cobra.Command

func (Route) ToSnake

func (r Route) ToSnake(p string) string

tpl fun

Jump to

Keyboard shortcuts

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