go-common/app/service/live/grpc-demo/api/grpc/v1/api.proto
2019-04-22 18:49:16 +08:00

22 lines
481 B
Protocol Buffer

syntax = "proto3";
package live.grpcdemo.v1;
option go_package = "v1";
import "github.com/gogo/protobuf/gogoproto/gogo.proto";
service Greeter {
// `method:"POST" internal:"true"`
rpc say_hello_internal(GeeterReq) returns (GreeterResp);
rpc say_hello(GeeterReq) returns (GreeterResp);
}
message GeeterReq {
int32 uid = 1 [(gogoproto.moretags) = "form:\"uid\" validate:\"required\""];
}
message GreeterResp {
int32 uid = 1 [(gogoproto.jsontag) = "uid"];
}