feat none
This commit is contained in:
@@ -7,6 +7,8 @@ import "google/api/annotations.proto";
|
||||
service Qgdzs {
|
||||
// 生成题目
|
||||
rpc GenerateQuestion(GenerateQuestionReq) returns (GenerateQuestionResp) {option (google.api.http) = {post: "/qgdzs/auth/generate_question" body: "*"};}
|
||||
// 自定义问答
|
||||
rpc CustomAnswerQuestion(CustomAnswerQuestionReq) returns (CustomAnswerQuestionResp) {option (google.api.http) = {post: "/qgdzs/auth/custom_answer" body: "*"};}
|
||||
|
||||
// ---------- 随机答题 ----------
|
||||
// 获取题目
|
||||
@@ -48,6 +50,14 @@ message GenerateQuestionReq {
|
||||
message GenerateQuestionResp {
|
||||
}
|
||||
|
||||
// ---------- CustomAnswerQuestion ----------
|
||||
message CustomAnswerQuestionReq {
|
||||
string Question = 1 [json_name = "question"]; // 问题
|
||||
}
|
||||
message CustomAnswerQuestionResp {
|
||||
string Answer = 1 [json_name = "answer"]; // 答案
|
||||
}
|
||||
|
||||
// ---------- RandomGetQuestion ----------
|
||||
message RandomGetQuestionReq {
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user