file

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Nov 30, 2018 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ControllerFile

type ControllerFile struct {
	ModelName string
	Tpl       string
	Content   string
}

func NewControllerFile

func NewControllerFile(modelName string) *ControllerFile

func (*ControllerFile) Generate

func (m *ControllerFile) Generate()

func (*ControllerFile) Write

func (m *ControllerFile) Write() error

type MigrateFile

type MigrateFile struct {
	ProjectName string
	ModelName   string
	Tpl         string
	Content     string
}

func NewMigrateFile

func NewMigrateFile(modelName string) *MigrateFile

func (*MigrateFile) Generate

func (r *MigrateFile) Generate()

func (*MigrateFile) Write

func (r *MigrateFile) Write() error

type ModelFile

type ModelFile struct {
	ProjectName string
	Name        string
	Fields      []string
	Tpl         string
	Content     string
	NeedCommon  bool
}

func NewModelFile

func NewModelFile(name string, fields []string, needCommon bool) *ModelFile

func (*ModelFile) Generate

func (m *ModelFile) Generate()

func (*ModelFile) Write

func (m *ModelFile) Write() error

type RouterFile

type RouterFile struct {
	ProjectName string
	ModelName   string
	Tpl         string
	Content     string
}

func NewRouterFile

func NewRouterFile(modelName string) *RouterFile

func (*RouterFile) Generate

func (r *RouterFile) Generate()

func (*RouterFile) Write

func (r *RouterFile) Write() error

Jump to

Keyboard shortcuts

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