generator

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Apr 6, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	STRING = iota
	INT
	TEXT
	DATE
	BOOLEAN
	NULL_STRING
	NULL_INT
	NULL_TEXT
	NULL_DATE
	NULL_BOOLEAN
	RELATIONAL
)

Variables

This section is empty.

Functions

func GenerateAuthentication added in v0.0.3

func GenerateAuthentication(attributes []ModelAttribute, overwrite bool, delete bool) error

func GenerateBackendApi

func GenerateBackendApi(model Model, overwrite bool, delete bool) error

func GenerateBackendAuthentication added in v0.0.3

func GenerateBackendAuthentication(attributes []ModelAttribute, overwrite bool, delete bool) error

func GenerateBackendModel

func GenerateBackendModel(model Model, overwrite bool, delete bool) error

func GenerateBackendScaffold

func GenerateBackendScaffold(model Model, overwrite bool, delete bool) error

func GenerateBackendService

func GenerateBackendService(model Model, overwrite bool, delete bool) error

func GenerateFrontend

func GenerateFrontend(overwrite bool, delete bool) error

func GenerateFrontendAuthentication added in v0.0.3

func GenerateFrontendAuthentication(attributes []ModelAttribute, overwrite bool, delete bool) error

func GenerateFrontendScaffold

func GenerateFrontendScaffold(model Model, overwrite bool, delete bool) error

func GenerateModelTemplate

func GenerateModelTemplate(templateDirectory string, model Model, overwrite bool, delete bool) error

func GenerateNewProject

func GenerateNewProject(groupId string, artifactId string) error

func GenerateScaffold

func GenerateScaffold(model Model, overwrite bool, delete bool) error

Types

type Model

type Model struct {
	Name       string
	Attributes []ModelAttribute
}

type ModelAttribute

type ModelAttribute struct {
	Name     string
	Type     uint8
	Relation string
}

type Properties

type Properties struct {
	ArtifactId string `yaml:",omitempty"`
	GroupId    string `yaml:",omitempty"`
}

Jump to

Keyboard shortcuts

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