diff --git a/tools/goctl/rpc/generator/gencall.go b/tools/goctl/rpc/generator/gencall.go index d5e93e9f..060877cd 100644 --- a/tools/goctl/rpc/generator/gencall.go +++ b/tools/goctl/rpc/generator/gencall.go @@ -108,7 +108,7 @@ func (g *Generator) genCallGroup(ctx DirContext, proto parser.Proto, cfg *conf.C "name": callFilename, "alias": strings.Join(aliasKeys, pathx.NL), "head": head, - "filePackage": dir.Base, + "filePackage": childDir, "pbPackage": pbPackage, "protoGoPackage": protoGoPackage, "serviceName": serviceName,