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