Documentation
¶
Index ¶
- func GenerateController(destPath, projName string, table config.TableSchema) error
- func GenerateControllerRouter(destPath, projName string) error
- func GenerateDAO(destPath string, daoData DAOData) error
- func GenerateMain(destPath, projName string, conf config.Config) error
- func GenerateModel(destPath string, table config.TableSchema) error
- type BackendGeneratorImpl
- type ControllerData
- type DAOData
- type DAOTmplData
- type FieldData
- type MainData
- type ModelsData
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenerateController ¶
func GenerateController(destPath, projName string, table config.TableSchema) error
func GenerateDAO ¶
func GenerateModel ¶
func GenerateModel(destPath string, table config.TableSchema) error
Types ¶
type BackendGeneratorImpl ¶
type BackendGeneratorImpl struct {
Config config.Config
Directories database.ProjectDirectories
}
func New ¶
func New( config config.Config, directories database.ProjectDirectories, ) BackendGeneratorImpl
func (BackendGeneratorImpl) Generate ¶
func (b BackendGeneratorImpl) Generate()
type ControllerData ¶
type DAOData ¶
type DAOData struct {
ProjectName string
Table config.TableSchema
DatabasePath string
}
type DAOTmplData ¶
Click to show internal directories.
Click to hide internal directories.