Files

23 lines
480 B
Protocol Buffer
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
syntax = "proto3";
// 场景04主 protoA 层),只 import middleware.proto
// 传递依赖A → B(middleware) → C(base)
// 预期goctl 应同时生成 base.pb.go、middleware.pb.go、main.pb.go
package pingsvc;
option go_package = "example.com/demo/s04_transitive/pb";
import "middleware.proto";
message PingReq {
middleware.RequestMeta meta = 1;
}
message PingReply {
string pong = 1;
}
service PingService {
rpc Ping(PingReq) returns (PingReply);
}