Documentation
¶
Index ¶
- func CreateSQL(name string, sqlMap map[string]*autoTableSQL.SQL) string
- func DeleteSQL(name string, sqlMap map[string]*autoTableSQL.SQL) string
- func FindAllSQL(name string, sqlMap map[string]*autoTableSQL.SQL) string
- func FindSQL(name string, sqlMap map[string]*autoTableSQL.SQL) string
- func GenDict(properties []string, values []string) Dict
- func GenRefill(before string, after string, propertyList []string) []*Statement
- func GenerateEntity(structName string, structAst *ast.StructType) *jen.File
- func GenerateModel(name string, structAst *ast.StructType, marker string) *jen.File
- func GenerateProviderFile(providerDir string, providerName string, bindMap map[string]*ast.InterfaceSpec) (string, error)
- func GenerateRepository(name string, targetStruct *ast.StructType, sqlMap map[string]*autoTableSQL.SQL, ...) *File
- func GenerateUsecase(name string, targetStruct *ast.StructType, moduleName string) (*File, *File)
- func GenerateWireFile(wireDir string, importPathList []string) (string, error)
- func UpdateSQL(name string, sqlMap map[string]*autoTableSQL.SQL) string
- type InterfaceSpec
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FindAllSQL ¶
func FindAllSQL(name string, sqlMap map[string]*autoTableSQL.SQL) string
func GenerateEntity ¶
func GenerateEntity(structName string, structAst *ast.StructType) *jen.File
func GenerateModel ¶
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 ¶
GenerateWireContent generate the content of wire.go
Types ¶
type InterfaceSpec ¶
Click to show internal directories.
Click to hide internal directories.