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

39 lines
661 B
Protocol Buffer

syntax = "proto3";
package main;
option go_package = ".;main";
import "base.proto";
import "google/api/annotations.proto";
// The greeting service definition.
service Country {
// Sends a greeting
rpc Name (Request) returns (Reply){
option (google.api.http) = {
post: "/v1/country/name"
body: "*"
};
}
rpc Picture (Request) returns (CountryReply){
option (google.api.http) = {
post: "/v1/country/name/picture"
body: "*"
};
}
}
// The response message containing the greetings
message CountryReply {
bytes image = 1;
}
// enum NameType {
// FullName = 0;
// FirstName = 1;
// LastName = 2 ;
// }