2022-08-23 09:58:07 +00:00
|
|
|
syntax = "proto3";
|
|
|
|
|
|
|
|
import "google/protobuf/any.proto";
|
|
|
|
|
|
|
|
option go_package = "proto/gen";
|
|
|
|
|
|
|
|
package frame;
|
|
|
|
|
|
|
|
service FrameService {
|
2022-09-01 02:58:34 +00:00
|
|
|
rpc SendFrames (stream RequestFrames) returns (Response);
|
|
|
|
rpc SendMacIP(RequestMacIP) returns (Response);
|
2022-08-23 09:58:07 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// 请求
|
2022-09-01 02:58:34 +00:00
|
|
|
message RequestFrames {
|
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;
|
2022-09-01 02:58:34 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// 请求
|
|
|
|
message RequestMacIP {
|
|
|
|
bytes IP = 1;
|
|
|
|
bytes MAC = 2;
|
2022-08-23 09:58:07 +00:00
|
|
|
}
|