slimming/proto/frame.proto

24 lines
356 B
Protocol Buffer
Raw Normal View History

2022-08-23 09:58:07 +00:00
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;
2022-08-25 07:31:51 +00:00
bytes Frames = 2;
2022-08-23 09:58:07 +00:00
}
// 响应
message Response {
int32 Code = 1;
string Message = 2;
bytes Data = 3;
}