31 lines
474 B
Protocol Buffer
31 lines
474 B
Protocol Buffer
syntax = "proto3";
|
|
|
|
import "google/protobuf/any.proto";
|
|
|
|
option go_package = "proto/gen";
|
|
|
|
package frame;
|
|
|
|
service FrameService {
|
|
rpc SendFrames (stream RequestFrames) returns (Response);
|
|
rpc SendMacIP(RequestMacIP) returns (Response);
|
|
}
|
|
|
|
// 请求
|
|
message RequestFrames {
|
|
bytes Frames = 2;
|
|
}
|
|
|
|
// 响应
|
|
message Response {
|
|
int32 Code = 1;
|
|
string Message = 2;
|
|
bytes Data = 3;
|
|
}
|
|
|
|
|
|
// 请求
|
|
message RequestMacIP {
|
|
bytes IP = 1;
|
|
bytes MAC = 2;
|
|
} |