gen_scaffold

package
v0.0.0-...-7fbf2ef Latest Latest
Warning

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

Go to latest
Published: Apr 15, 2022 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateSQL

func CreateSQL(name string, sqlMap map[string]*autoTableSQL.SQL) string

func DeleteSQL

func DeleteSQL(name string, sqlMap map[string]*autoTableSQL.SQL) string

func FindAllSQL

func FindAllSQL(name string, sqlMap map[string]*autoTableSQL.SQL) string

func FindSQL

func FindSQL(name string, sqlMap map[string]*autoTableSQL.SQL) string

func GenDict

func GenDict(properties []string, values []string) Dict

func GenRefill

func GenRefill(before string, after string, propertyList []string) []*Statement

func GenerateEntity

func GenerateEntity(structName string, structAst *ast.StructType) *jen.File

func GenerateModel

func GenerateModel(name string, structAst *ast.StructType, marker string) *jen.File

func GenerateProviderFile

func GenerateProviderFile(providerDir string, providerName string, bindMap map[string]*ast.InterfaceSpec) (string, error)

GenerateProviderContent generate the content of provider.go

func GenerateRepository

func GenerateRepository(name string, targetStruct *ast.StructType, sqlMap map[string]*autoTableSQL.SQL, moduleName string) *File

func GenerateUsecase

func GenerateUsecase(name string, targetStruct *ast.StructType, moduleName string) (*File, *File)

func GenerateWireFile

func GenerateWireFile(wireDir string, importPathList []string) (string, error)

GenerateWireContent generate the content of wire.go

func UpdateSQL

func UpdateSQL(name string, sqlMap map[string]*autoTableSQL.SQL) string

Types

type InterfaceSpec

type InterfaceSpec struct {
	Name       string
	ImportPath string
}

Jump to

Keyboard shortcuts

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