mirror of
https://github.com/kevin-DL/services.git
synced 2026-01-22 15:25:19 +00:00
rename ask to answer
This commit is contained in:
24
answer/proto/answer.proto
Normal file
24
answer/proto/answer.proto
Normal file
@@ -0,0 +1,24 @@
|
||||
syntax = "proto3";
|
||||
|
||||
package answer;
|
||||
|
||||
option go_package = "./proto;answer";
|
||||
|
||||
service Answer {
|
||||
rpc Question(QuestionRequest) returns (QuestionResponse) {}
|
||||
}
|
||||
|
||||
// Answer a question and receive an instant answer
|
||||
message QuestionRequest {
|
||||
// the question to answer
|
||||
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