go-common/app/service/live/grpc-demo/api/grpc/v1/api.proto

22 lines
481 B
Protocol Buffer
Raw Normal View History

2019-04-22 10:49:16 +00:00
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"];
}