handler

package
v0.0.0-...-a3600d7 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var MyFunc map[string]interface{}

Functions

func ConvertComment

func ConvertComment(str string) string

func ConvertKeyWord

func ConvertKeyWord(str string) string

func DownloadFile

func DownloadFile(url string, savefilepath string) error

func IsLast

func IsLast(index int, array []*common.Column) string

func IsLastTable

func IsLastTable(index int, array []*common.Table) string

func Low

func Low(str string) string

func PostFiles

func PostFiles(uri string, params map[string]string, filenames []string, filepaths []string) (*http.Response, error)

func PostJson

func PostJson(data string, url string) []byte

func ReplaceUnderLine

func ReplaceUnderLine(str string) string

func ReplaceUnderLineLow

func ReplaceUnderLineLow(str string) string

func ToPropName

func ToPropName(str string) string

func Unzip

func Unzip(source string, dest string)

func Upper

func Upper(str string) string

Types

type BaseInfo

type BaseInfo struct {
	Auth        string
	ProjectUri  string
	ProjectName string
	PreUrl      string
	Port        string
	MySqlConn   string

	Package          string
	FirstColumnName  string
	SecondColumnName string
	TableNameLow     string
	TableNameUpper   string

	Table   *common.Table
	Tables  []*common.Table
	Columns []*common.Column
}

func (*BaseInfo) SetUp

func (b *BaseInfo) SetUp()

type HandlerOneTableFunc

type HandlerOneTableFunc func(table *common.Table, columns []*common.Column)

type HandlerTablesFunc

type HandlerTablesFunc func(table []*common.Table)
var DeleteTempHandler HandlerTablesFunc = func(table []*common.Table) {
	beego.Debug("DeleteTempHandler")

	e := os.RemoveAll(cfg.Cfg.GetWebTempPath())
	if e != nil {

		fmt.Println(e)
	}
	e = os.RemoveAll(cfg.Cfg.GetServerTempPath())
	if e != nil {

		fmt.Println(e)
	}
}

Directories

Path Synopsis
dev
web

Jump to

Keyboard shortcuts

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