mirror of
https://github.com/opbnq-q/nto-cli.git
synced 2025-12-06 21:20:34 +07:00
sync
This commit is contained in:
21
utils/imports.go
Normal file
21
utils/imports.go
Normal 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
|
||||
}
|
||||
Reference in New Issue
Block a user