This commit is contained in:
2026-03-11 20:21:22 +08:00
8 changed files with 691 additions and 386 deletions

View File

@@ -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 {
}