$ goctl rpc protoc proto\forward.proto --go_out=. --go-grpc_out=. --zrpc_out=.
github.com/gogo/protobuf/gogoproto/gogo.proto: File not found.
proto/forward.proto:7:1: Import "github.com/gogo/protobuf/gogoproto/gogo.proto" was not found or had errors.
$ goctl rpc protoc proto\forward.proto --go_out=. --go-grpc_out=. --zrpc_out=. github.com/gogo/protobuf/gogoproto/gogo.proto: File not found. proto/forward.proto:7:1: Import "github.com/gogo/protobuf/gogoproto/gogo.proto" was not found or had errors.
forward.proto:
syntax = "proto3"; package forward;
option go_package="./forward";
import "google/protobuf/descriptor.proto"; import "github.com/gogo/protobuf/gogoproto/gogo.proto";
message OrderSendRequest{ string channel = 1; string order = 2; string data = 3; string requestID = 4; }
message OrderSendResponse{ int32 code = 1; string message = 2; bytes data = 3[(gogoproto.customtype) = "InterfaceType"];; }
message ForwardRequest{ string channel = 1; }
message ForwardResponse{ string channel = 1; string cipher = 2; }
service ForwardService { // Send 发送指令 rpc Send(OrderSendRequest) returns(OrderSendResponse); }