Skip to content

Commit f71aa1a

Browse files
committed
fix(gen): fix gen swagger
1 parent 61270c9 commit f71aa1a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

internal/gen/genswagger/gen.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ func Gen() (err error) {
8787
}
8888
cmd := exec.Command("goctl", "api", "plugin", "-plugin", "jzero-swagger=swagger -filename "+apiFile+" --schemes http,https", "-api", cv, "-dir", config.C.Gen.Swagger.Output)
8989
if config.C.Gen.Route2Code || config.C.Gen.Swagger.Route2Code {
90-
cmd = exec.Command("goctl", "api", "plugin", "-plugin", "jzero-swagger=swagger -filename "+apiFile+" --schemes http,https --route2code", "-api", cv, "-dir", config.C.Gen.Swagger.Output)
90+
cmd = exec.Command("goctl", "api", "plugin", "-plugin", "jzero-swagger=swagger -filename "+apiFile+" --schemes http,https "+" --route2code ", "-api", cv, "-dir", config.C.Gen.Swagger.Output)
9191
}
9292

9393
logx.Debug(cmd.String())

0 commit comments

Comments
 (0)