24 lines
365 B
Protocol Buffer
24 lines
365 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;
|
|
repeated bytes Frames = 2;
|
|
}
|
|
|
|
// 响应
|
|
message Response {
|
|
int32 Code = 1;
|
|
string Message = 2;
|
|
bytes Data = 3;
|
|
} |