mirror of
https://github.com/opbnq-q/nto-cli.git
synced 2025-12-06 16:30:33 +07:00
feat: generate schema from template
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user