protobuf-demo/proto/demo.proto

19 lines
293 B
Protocol Buffer

syntax = "proto3";
package gen;
option go_package=".;gen";
import "google/protobuf/any.proto";
service demo{
rpc call(DemoCallResquest) returns(DemoCallResponse);
}
message DemoCallResquest{
string c1=1;
}
message DemoCallResponse {
string result=1;
google.protobuf.Any data=2;
}