mirror of
https://github.com/kevin-DL/services.git
synced 2026-01-22 07:15:25 +00:00
add ask question service
This commit is contained in:
24
ask/proto/ask.proto
Normal file
24
ask/proto/ask.proto
Normal file
@@ -0,0 +1,24 @@
|
||||
syntax = "proto3";
|
||||
|
||||
package ask;
|
||||
|
||||
option go_package = "./proto;ask";
|
||||
|
||||
service Ask {
|
||||
rpc Question(QuestionRequest) returns (QuestionResponse) {}
|
||||
}
|
||||
|
||||
// Ask a question and receive an instant answer
|
||||
message QuestionRequest {
|
||||
// the question to ask
|
||||
string query = 1;
|
||||
}
|
||||
|
||||
message QuestionResponse {
|
||||
// the answer to your question
|
||||
string answer = 1;
|
||||
// a related url
|
||||
string url = 2;
|
||||
// any related image
|
||||
string image = 3;
|
||||
}
|
||||
Reference in New Issue
Block a user