rpc service use proto.Package.Name by support multi proto file (#5378)

This commit is contained in:
godLei6
2026-01-24 16:44:44 +08:00
committed by GitHub
parent 84ff755e61
commit 6e1af75635

View File

@@ -199,7 +199,7 @@ func mkdir(ctx *ctx.ProjectContext, proto parser.Proto, conf *conf.Config, c *ZR
return nil, err
}
}
serviceName := strings.TrimSuffix(proto.Name, filepath.Ext(proto.Name))
serviceName := proto.Package.Name
return &defaultDirContext{
ctx: ctx,
inner: inner,