gRpc 空参数

google protobuf 已经提供了空参数,用法示例如下:

//greeter.proto
import "google/protobuf/empty.proto";
service Greeter{
  rpc emptyTestfunction(google.protobuf.Empty) returns{google.protobuf.Empty}
}

  

原文地址:https://www.cnblogs.com/dhqy/p/14647777.html