修改downlink protobuf

This commit is contained in:
三丙
2024-10-22 17:11:05 +08:00
parent 73de4b28b3
commit 7445d4e3f0
14 changed files with 83 additions and 34 deletions

View File

@@ -9,6 +9,10 @@ package infrastructureProto;
option java_package = "sanbing.jcpp.proto.gen";
option java_outer_classname = "ProtocolProto";
service ProtocolDownlinkInterface {
rpc onDownlink(stream DownlinkRequestMessage) returns (stream DownlinkResponseMessage) {}
}
message UplinkQueueMessage {
int64 messageIdMSB = 1;
int64 messageIdLSB = 2;
@@ -29,7 +33,7 @@ message UplinkQueueMessage {
TransactionRecord transactionRecord = 30;
}
message DownlinkRestMessage {
message DownlinkRequestMessage {
int64 messageIdMSB = 1;
int64 messageIdLSB = 2;
int64 sessionIdMSB = 3;
@@ -49,6 +53,11 @@ message DownlinkRestMessage {
TransactionRecordAck transactionRecordAck = 26;
}
message DownlinkResponseMessage {
bool success = 1;
optional string error = 2;
}
message LoginRequest {
string pileCode = 2;
string credential = 3;