data_workshop/proto/people.proto
huangsimin 27c0277ba8 init
2020-05-19 18:12:18 +08:00

39 lines
691 B
Protocol Buffer

syntax = "proto3";
package main;
option go_package = ".;main";
import "google/api/annotations.proto";
import "base.proto";
// The greeting service definition.
service Name {
// Sends a greeting
rpc FirstName (Request) returns (Reply){
option (google.api.http) = {
post: "/v1/name/firstname"
body: "*"
};
}
rpc LastName (Request) returns (Reply){
option (google.api.http) = {
post: "/v1/name/lastname"
body: "*"
};
}
rpc FullName (Request) returns (Reply){
option (google.api.http) = {
post: "/v1/name/fullname"
body: "*"
};
}
}
// enum NameType {
// FullName = 0;
// FirstName = 1;
// LastName = 2 ;
// }