protoc-gen-slc/proto/question.proto

23 lines
629 B
Protocol Buffer

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;
}