emsApplication/3rdPartner/libhv/examples/protorpc/proto/base.proto

21 lines
307 B
Protocol Buffer

syntax = "proto3";
package protorpc;
message Error {
int32 code = 1;
string message = 2;
}
message Request {
uint64 id = 1;
string method = 2;
repeated bytes params = 3;
}
message Response {
uint64 id = 1;
bytes result = 2;
Error error = 3;
}