generator

package
v1.0.6 Latest Latest
Warning

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

Go to latest
Published: Feb 16, 2023 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddLineNewFunctionWithWhere

func AddLineNewFunctionWithWhere(filePath string, modelName string, fieldQuery string, fieldScan string, field Field) error

func AddLineServiceNewFunctionWithWhere

func AddLineServiceNewFunctionWithWhere(filePath string, modelName string, field Field) error

func AddNewLineInModelTemplate

func AddNewLineInModelTemplate(fullPath string, fields []Field, modelName string, allKind string) error

func ChangeModelTemplateVariables

func ChangeModelTemplateVariables(filePath string, modelName string) error

func ChangeRepositoryTemplateVariables

func ChangeRepositoryTemplateVariables(filePath string, modelName string, fieldQuery string, fieldScan string) error

func ChangeServiceTemplateVariables

func ChangeServiceTemplateVariables(filePath string, modelName string) error

func CreateEntityV1

func CreateEntityV1()

func CreateEntityV2

func CreateEntityV2()

func CreateProject

func CreateProject(destination string)

func CreateRepository

func CreateRepository(modelName string, fields []Field) error

func CreateService

func CreateService(modelName string, fields []Field) error

func RemoveFolderAndFile

func RemoveFolderAndFile(folderName string) error

Types

type Field

type Field struct {
	Name       string
	Kind       string
	TagJson    string
	TagBinding string
}

Jump to

Keyboard shortcuts

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