slimming/proto/frame.proto
2022-08-25 15:31:51 +08:00

24 lines
356 B
Protocol Buffer

syntax = "proto3";
import "google/protobuf/any.proto";
option go_package = "proto/gen";
package frame;
service FrameService {
rpc SendFrames (stream Request) returns (Response);
}
// 请求
message Request {
int32 Type = 1;
bytes Frames = 2;
}
// 响应
message Response {
int32 Code = 1;
string Message = 2;
bytes Data = 3;
}