gracefull shutdown for unresolvable errors

This commit is contained in:
2025-03-07 21:40:53 +07:00
parent 2fd8b20b77
commit e6f21d1bb2
19 changed files with 181 additions and 133 deletions

View File

@@ -7,8 +7,6 @@ import (
"strings"
)
func GenerateService(structName, mkPath string) {
serviceFile, err := os.Create(mkPath + "/" + strings.ToLower(structName) + ".service.ts")
if err != nil {
@@ -26,7 +24,7 @@ export default class %sService implements IService<%s> {
}
async readAll() {
return await GetAll()
return await GetAll() as %s
}
async create(item: %s) {