整理目录结构

This commit is contained in:
2025-10-08 15:55:24 +08:00
parent 462e100c27
commit c36411e616

View File

@@ -10,8 +10,8 @@ option go_package = "internal/domain/device/proto";
// 485线
message Raw485Command {
int32 bus_number = 1; // 线线
bytes command_bytes = 2; // 485
int32 bus_number = 1; // 线线
bytes command_bytes = 2; // 485
}
// BatchCollectCommand
@@ -24,14 +24,14 @@ message BatchCollectCommand {
// CollectTask
//
message CollectTask {
Raw485Command command = 2; // 485
Raw485Command command = 2; // 485
}
// CollectResult
//
message CollectResult {
string correlation_id = 1; // ID
repeated float values = 2; //
string correlation_id = 1; // ID
repeated float values = 2; //
}
@@ -41,11 +41,11 @@ message CollectResult {
// 使 oneof google.protobuf.Any
//
message Instruction {
oneof payload {
Raw485Command raw_485_command = 1;
BatchCollectCommand batch_collect_command = 2;
CollectResult collect_result = 3; // ADDED
oneof payload {
Raw485Command raw_485_command = 1;
BatchCollectCommand batch_collect_command = 2;
CollectResult collect_result = 3; // ADDED
//
// SwitchCommand switch_command = 3;
}
}
}