This commit is contained in:
2025-02-16 20:24:34 +07:00
parent fd75c678bb
commit 6e52164914
5 changed files with 83 additions and 19 deletions

21
utils/imports.go Normal file
View File

@@ -0,0 +1,21 @@
package utils
import (
"fmt"
"strings"
)
func GetServiceBindPath(structName string) string {
path := fmt.Sprintf("../../bindings/app/internal/services/%sservice.ts", strings.ToLower(structName))
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
}