add

package
v0.0.0-...-ccd8cf7 Latest Latest
Warning

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

Go to latest
Published: May 15, 2023 License: Apache-2.0 Imports: 25 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewAddCmd

func NewAddCmd(f factory.Factory) *cobra.Command

func NormalizeFile

func NormalizeFile(file string) error

Types

type App

type App struct {
	AppName     string
	ShortName   string
	RootPkgName string
	*Project
	*Route
}

func (*App) Create

func (a *App) Create() error

type Cron

type Cron struct {
	SubPkgName string
	Name       string
	*Project
}

func (*Cron) Create

func (r *Cron) Create() error

type Model

type Model struct {
	ModelStruct string
	ModelName   string
	ShortName   string
	PageMode    string
	UseDB       string
	*Project
	*Route
}

func (*Model) Create

func (m *Model) Create() error

type Project

type Project struct {
	AbsolutePath string
}

type Rest

type Rest struct {
	SubPkgName  string
	RestName    string
	RootPkgName string
	*Project
	*Route
}

func (*Rest) Create

func (r *Rest) Create() error

type Route

type Route struct {
	CreateFlag   bool
	UpdateFlag   bool
	ReadFlag     bool
	ReadListFlag bool
	DeleteFlag   bool
}

type Service

type Service struct {
	IsEmpty     bool
	ServiceName string
	ShortName   string
	RootPkgName string
	PageMode    string
	*Project
	*Route
}

func (*Service) Create

func (s *Service) Create() error

type TypeSpec

type TypeSpec struct {
	AppName              string
	SubPkgName           string
	Fields               string
	ListJsonTag          string
	IdFormTag            string
	IdFormTagWithDefault string
	IdJsonTag            string
	PageMode             string
	CreatedAtJsonTag     string
	UpdatedAtJsonTag     string
	PageFormTag          string
	PageSizeFormTag      string
	PageJsonTag          string
	PageSizeJsonTag      string
	PageTotalJsonTag     string
	*Project
	*Route
}

func (*TypeSpec) Create

func (t *TypeSpec) Create() error

Jump to

Keyboard shortcuts

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