generator

package
v0.0.0-...-53258cc Latest Latest
Warning

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

Go to latest
Published: Jul 14, 2022 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildConcreteHandler

func BuildConcreteHandler()

func BuildConstantsGo

func BuildConstantsGo()

func BuildDirectories

func BuildDirectories()

func BuildDomains

func BuildDomains()

func BuildErrorsGo

func BuildErrorsGo()

func BuildForms

func BuildForms()

func BuildHandlerGo

func BuildHandlerGo()

func BuildModelRepositories

func BuildModelRepositories()

func BuildModelServices

func BuildModelServices()

func BuildModuleGo

func BuildModuleGo()

func BuildQueueGo

func BuildQueueGo()

func BuildRepositoryGo

func BuildRepositoryGo()

func BuildRepositoryHelper

func BuildRepositoryHelper()

func BuildRepositoryInterfaces

func BuildRepositoryInterfaces()

func BuildResponsesGo

func BuildResponsesGo()

func BuildSQL

func BuildSQL()

func BuildServer

func BuildServer()

func BuildServiceGo

func BuildServiceGo()

func BuildServiceInterfaces

func BuildServiceInterfaces()

func CleanDir

func CleanDir()

func EnableGoMod

func EnableGoMod()

func ModInitProject

func ModInitProject()

func ParseConfig

func ParseConfig(conf string)

Types

type ConfDB

type ConfDB struct {
	Name     string `yaml:"name"`
	Primary  *bool  `yaml:"primary"`
	Index    *bool  `yaml:"index"`
	Type     string `yaml:"type"`
	Length   *int   `yaml:"length"`
	Nullable *bool  `yaml:"nullable"`
}

type Field

type Field struct {
	Type   string `yaml:"type"`
	DB     ConfDB `yaml:"db"`
	Json   string `yaml:"json"`
	Form   Form   `yaml:"form"`
	Search bool   `yaml:"search"`
}

type Form

type Form struct {
	Validation []map[string]interface{}
	Add        *bool `yaml:"add"`
	Edit       *bool `yaml:"edit"`
}

type FormModel

type FormModel struct {
	Name   string
	Add    bool
	Edit   bool
	Fields map[string]Field
}

type Handlers

type Handlers struct {
	NameLc string
	Name   string
}

type InitialConfig

type InitialConfig struct {
	RootDir      string           `yaml:"rootDir"`
	Project      string           `yaml:"project"`
	Repo         string           `yaml:"repo"`
	ServiceCode  string           `yaml:"serviceCode"`
	ServiceLabel string           `yaml:"serviceLabel"`
	Models       map[string]Model `yaml:"models"`
}
var (
	InitConf InitialConfig
)

type Model

type Model struct {
	Name   string           `yaml:"name"`
	DBName string           `yaml:"dbName"`
	Fields map[string]Field `yaml:"fields"`
}

type ModelsModified

type ModelsModified struct {
	Name   string
	NameLC string
}

type SQLModel

type SQLModel struct {
	Name   string              `yaml:"name"`
	Fields map[string]SqlField `yaml:"fields"`
}

type SQlConfDB

type SQlConfDB struct {
	Name     string `yaml:"name"`
	Primary  bool   `yaml:"primary"`
	Index    bool   `yaml:"index"`
	Type     string `yaml:"type"`
	Length   *int   `yaml:"length"`
	Nullable bool   `yaml:"nullable"`
}

type SqlField

type SqlField struct {
	Type string    `yaml:"type"`
	DB   SQlConfDB `yaml:"db"`
	Json string    `yaml:"json"`
}

Jump to

Keyboard shortcuts

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