ok
This commit is contained in:
18
proto/survey.proto
Normal file
18
proto/survey.proto
Normal file
@@ -0,0 +1,18 @@
|
||||
syntax = "proto3";
|
||||
package survey;
|
||||
option go_package = ".;survey";
|
||||
import "blocks.proto";
|
||||
|
||||
// 问卷服务 - 问卷管理
|
||||
service Survey {
|
||||
rpc Create (SurveyItem) returns (StatusReply);
|
||||
rpc Get (IdentRequest) returns (SurveyItem);
|
||||
rpc Update (SurveyItem) returns (StatusReply);
|
||||
rpc Delete (IdentRequest) returns (StatusReply);
|
||||
rpc Fetch (FetchRequest) returns (ListSurveyReply);
|
||||
}
|
||||
|
||||
message ListSurveyReply {
|
||||
repeated SurveyItem data = 1;
|
||||
int64 count = 2;
|
||||
}
|
||||
Reference in New Issue
Block a user