整理目录结构

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线 // 485线
message Raw485Command { message Raw485Command {
int32 bus_number = 1; // 线线 int32 bus_number = 1; // 线线
bytes command_bytes = 2; // 485 bytes command_bytes = 2; // 485
} }
// BatchCollectCommand // BatchCollectCommand
@@ -24,14 +24,14 @@ message BatchCollectCommand {
// CollectTask // CollectTask
// //
message CollectTask { message CollectTask {
Raw485Command command = 2; // 485 Raw485Command command = 2; // 485
} }
// CollectResult // CollectResult
// //
message CollectResult { message CollectResult {
string correlation_id = 1; // ID string correlation_id = 1; // ID
repeated float values = 2; // repeated float values = 2; //
} }
@@ -41,11 +41,11 @@ message CollectResult {
// 使 oneof google.protobuf.Any // 使 oneof google.protobuf.Any
// //
message Instruction { message Instruction {
oneof payload { oneof payload {
Raw485Command raw_485_command = 1; Raw485Command raw_485_command = 1;
BatchCollectCommand batch_collect_command = 2; BatchCollectCommand batch_collect_command = 2;
CollectResult collect_result = 3; // ADDED CollectResult collect_result = 3; // ADDED
// //
// SwitchCommand switch_command = 3; // SwitchCommand switch_command = 3;
} }
} }