Versions in this module Expand all Collapse all v0 v0.1.1 Apr 20, 2025 v0.1.0 Oct 25, 2024 Changes in this version + 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 struct + Config config.Config + Directories database.ProjectDirectories + func New(config config.Config, directories database.ProjectDirectories) BackendGeneratorImpl + func (b BackendGeneratorImpl) Generate() + type ControllerData struct + ProjectName string + Resource string + ResourceUrl string + TableIdField string + Version string + type DAOData struct + DatabasePath string + ProjectName string + Table config.TableSchema + type DAOTmplData struct + DatabasePath string + Fields []config.FieldSchema + ImportStrconv bool + ImportTime bool + ProjectName string + QueryResource string + QueryResourceById string + Resource string + TableColumns []string + TableIdField string + TableName string + Version string + type FieldData struct + Exclude bool + Name string + Type string + type MainData struct + Controllers []string + ProjectName string + Version string + type ModelsData struct + Fields []FieldData + ImportTime bool + ResourceName string + Version string