mirror of
https://github.com/kevin-DL/services.git
synced 2026-01-19 05:55:19 +00:00
add joke comments
This commit is contained in:
@@ -2,7 +2,4 @@ Funny Jokes
|
|||||||
|
|
||||||
# Joke Service
|
# Joke Service
|
||||||
|
|
||||||
This is the Joke service
|
A simple set random funny jokes to tell friends and family
|
||||||
|
|
||||||
Leveraged by https://github.com/taivop/joke-dataset
|
|
||||||
|
|
||||||
|
|||||||
@@ -5,10 +5,10 @@ package joke;
|
|||||||
option go_package = "./proto;joke";
|
option go_package = "./proto;joke";
|
||||||
|
|
||||||
service Joke {
|
service Joke {
|
||||||
// get n random jokes
|
|
||||||
rpc Random(RandomRequest) returns (RandomResponse) {}
|
rpc Random(RandomRequest) returns (RandomResponse) {}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Get a random joke
|
||||||
message RandomRequest {
|
message RandomRequest {
|
||||||
// the count of random jokes want, maximum: 10
|
// the count of random jokes want, maximum: 10
|
||||||
int32 count = 1;
|
int32 count = 1;
|
||||||
@@ -19,7 +19,6 @@ message JokeInfo {
|
|||||||
string title = 2;
|
string title = 2;
|
||||||
string body = 3;
|
string body = 3;
|
||||||
string category = 4;
|
string category = 4;
|
||||||
// the source of joke
|
|
||||||
string source = 5;
|
string source = 5;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user