feat: generate schema from template

This commit is contained in:
2025-03-08 13:42:11 +07:00
parent c9a3a654dd
commit 7395354ae2
7 changed files with 116 additions and 68 deletions

View File

@@ -10,11 +10,6 @@ func GetServiceBindPath(structName string) string {
return path
}
func GetServiceStructType(structName string) string {
path := "../../bindings/app/internal/services/models.ts"
return path
}
func GetServiceType() string {
path := "../types/service.type.ts"
return path

View File

@@ -53,7 +53,7 @@ func SplitStructField(field string) (*entities.Field, error) {
name := data[0]
dataType := data[1]
return &entities.Field{
Medatada: metadata,
Metadata: metadata,
Type: dataType,
Name: name,
}, nil