ginbro

package
v0.0.0-...-b6dbd3c Latest Latest
Warning

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

Go to latest
Published: May 14, 2020 License: Apache-2.0 Imports: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RunGinStatic

func RunGinStatic(flagSrc, flagDest, flagTags, flagPkg, flagPkgCmt string, flagNoMtime, flagNoCompress, flagForce bool)

Types

type ColumnSchema

type ColumnSchema struct {
	TableName      string
	ColumnName     string
	ColumnType     string
	ColumnDataType string
	ColumnComment  string
	ColumnKey      string
}

func FetchDbColumn

func FetchDbColumn(gb model.Ginbro) ([]ColumnSchema, error)

type GinbroApp

type GinbroApp struct {
	model.Ginbro
	Resources []Resource `json:"-"`
	Files     []string
}

func Run

func Run(gc model.Ginbro) (*GinbroApp, error)

func RunModels

func RunModels(gc model.Ginbro) (*GinbroApp, error)

generate model files from db

func (*GinbroApp) ListAppFileTree

func (app *GinbroApp) ListAppFileTree() error

type Property

type Property struct {
	ColumnName string
	//DataType      string
	//ColumnType    string
	ColumnComment string
	ModelProp     string
	ModelType     string
	ModelTag      string
	//ColumnKey     string
	//ColumnType   string
	SwaggerType   string
	SwaggerFormat string
	IsAuthColumn  bool
}

type Resource

type Resource struct {
	ResourceName         string
	HandlerName          string
	TableName            string
	ModelName            string
	Properties           []Property
	IsAuthTable          bool
	PasswordPropertyName string
	PasswordColumnName   string
	AppPkg               string
	HasId                bool
}

Jump to

Keyboard shortcuts

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