From df80ca78024e1fdb3cc0f5c41e68f8746334f832 Mon Sep 17 00:00:00 2001 From: wsfuyibing Date: Mon, 2 Sep 2024 16:59:28 +0800 Subject: [PATCH] change exported file name --- db/commands/gen_model/generator.go | 2 +- db/commands/gen_service/generator.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/db/commands/gen_model/generator.go b/db/commands/gen_model/generator.go index 9ae924d..11977ad 100644 --- a/db/commands/gen_model/generator.go +++ b/db/commands/gen_model/generator.go @@ -43,7 +43,7 @@ func (o *Generator) Run(ctx context.Context) (err error) { // Build // a path for service file. o.Target = base.Target( - fmt.Sprintf(`%s/%s/%s.go`, + fmt.Sprintf(`%s/%s/model_%s.go`, o.Common.BaseDir, o.Common.TargetPath, o.Table.Name.FileName(o.Common.Prefix), diff --git a/db/commands/gen_service/generator.go b/db/commands/gen_service/generator.go index 1d321b8..f359c65 100644 --- a/db/commands/gen_service/generator.go +++ b/db/commands/gen_service/generator.go @@ -43,7 +43,7 @@ func (o *Generator) Run(ctx context.Context) (err error) { // Build // a path for service file. o.Target = base.Target( - fmt.Sprintf(`%s/%s/%s_service.go`, + fmt.Sprintf(`%s/%s/service_%s.go`, o.Common.BaseDir, o.Common.TargetPath, o.Table.Name.FileName(o.Common.Prefix), -- Gitee