From b51339b69b771b7d600fd0ed4f15ce6b93ec1871 Mon Sep 17 00:00:00 2001 From: foliet <1843619244@qq.com> Date: Tue, 4 Oct 2022 18:09:03 +0800 Subject: [PATCH] fix(mongo): fix file name generation errors (#2479) Before this, no matter what style is used, lowercase file names without underscores will be generated. --- tools/goctl/model/mongo/generate/generate.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/goctl/model/mongo/generate/generate.go b/tools/goctl/model/mongo/generate/generate.go index cdbfe3ed..410b1086 100644 --- a/tools/goctl/model/mongo/generate/generate.go +++ b/tools/goctl/model/mongo/generate/generate.go @@ -97,7 +97,7 @@ func generateCustomModel(ctx *Context) error { func generateTypes(ctx *Context) error { for _, t := range ctx.Types { - fn, err := format.FileNamingFormat(ctx.Cfg.NamingFormat, t+"types") + fn, err := format.FileNamingFormat(ctx.Cfg.NamingFormat, t+"_types") if err != nil { return err }