This commit is contained in:
2025-04-01 17:37:16 +08:00
parent d94b2744c0
commit 23c5220745
35 changed files with 2938 additions and 3585 deletions

23
proto/question.proto Normal file
View File

@@ -0,0 +1,23 @@
syntax = "proto3";
package survey;
option go_package = ".;survey";
import "blocks.proto";
// 问卷服务 - 问题管理
service Question {
rpc Add (QuestionItem) returns (StatusReply);
rpc Update (QuestionItem) returns (StatusReply);
rpc Delete (IdentRequest) returns (StatusReply);
rpc Fetch (FetchRequest) returns (ListQuestionReply);
rpc BySurvey (BySurveyRequest) returns (ListQuestionReply);
}
message BySurveyRequest {
string survey_id = 1;
repeated string question_ids = 2; // 按顺序排列的问题ID
}
message ListQuestionReply {
repeated QuestionItem data = 1;
int64 count = 2;
}