mirror of
https://github.com/kevin-DL/services.git
synced 2026-01-11 19:04:35 +00:00
add proto comments
This commit is contained in:
@@ -10,21 +10,25 @@ service Emoji {
|
|||||||
rpc Print(PrintRequest) returns (PrintResponse) {}
|
rpc Print(PrintRequest) returns (PrintResponse) {}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Find an alias and return the emoji
|
// Find an emoji by its alias e.g :beer:
|
||||||
message FindRequest {
|
message FindRequest {
|
||||||
|
// the alias code e.g :beer:
|
||||||
string alias = 1;
|
string alias = 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
message FindResponse {
|
message FindResponse {
|
||||||
|
// the unicode emoji 🍺
|
||||||
string emoji = 2;
|
string emoji = 2;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Get the flag for a country. Requires country code e.g GB for great britain
|
// Get the flag for a country. Requires country code e.g GB for great britain
|
||||||
message FlagRequest {
|
message FlagRequest {
|
||||||
|
// country code e.g GB
|
||||||
string code = 1;
|
string code = 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
message FlagResponse {
|
message FlagResponse {
|
||||||
|
// the emoji flag
|
||||||
string flag = 2;
|
string flag = 2;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user