定义平台和区域主控间的消息格式
This commit is contained in:
21
internal/app/service/device/proto/device.proto
Normal file
21
internal/app/service/device/proto/device.proto
Normal file
@@ -0,0 +1,21 @@
|
||||
syntax = "proto3";
|
||||
|
||||
package device;
|
||||
|
||||
import "google/protobuf/any.proto";
|
||||
|
||||
option go_package = "internal/app/service/device/proto";
|
||||
|
||||
service Device {
|
||||
rpc Ping(PingRequest) returns (PingResponse);
|
||||
}
|
||||
|
||||
message PingRequest {
|
||||
int32 message_id = 1;
|
||||
string method = 2;
|
||||
}
|
||||
|
||||
message PingResponse {
|
||||
int32 message_id = 1;
|
||||
string message = 2;
|
||||
}
|
||||
Reference in New Issue
Block a user