From ac8c8c56a66ee3e5896b8b4419c4636dae4e81d7 Mon Sep 17 00:00:00 2001 From: huang <1724659546@qq.com> Date: Thu, 9 Oct 2025 13:55:46 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96proto?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- internal/domain/device/proto/device.pb.go | 4 ++-- internal/domain/device/proto/device.proto | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/internal/domain/device/proto/device.pb.go b/internal/domain/device/proto/device.pb.go index 25fddfe..6a80a9a 100644 --- a/internal/domain/device/proto/device.pb.go +++ b/internal/domain/device/proto/device.pb.go @@ -132,7 +132,7 @@ func (x *BatchCollectCommand) GetTasks() []*CollectTask { // 定义了单个采集任务的“意图”。 type CollectTask struct { state protoimpl.MessageState `protogen:"open.v1"` - Command *Raw485Command `protobuf:"bytes,2,opt,name=command,proto3" json:"command,omitempty"` // 平台生成的原始485指令 + Command *Raw485Command `protobuf:"bytes,1,opt,name=command,proto3" json:"command,omitempty"` // 平台生成的原始485指令 unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } @@ -342,7 +342,7 @@ const file_device_proto_rawDesc = "" + "\x0ecorrelation_id\x18\x01 \x01(\tR\rcorrelationId\x12)\n" + "\x05tasks\x18\x02 \x03(\v2\x13.device.CollectTaskR\x05tasks\">\n" + "\vCollectTask\x12/\n" + - "\acommand\x18\x02 \x01(\v2\x15.device.Raw485CommandR\acommand\"N\n" + + "\acommand\x18\x01 \x01(\v2\x15.device.Raw485CommandR\acommand\"N\n" + "\rCollectResult\x12%\n" + "\x0ecorrelation_id\x18\x01 \x01(\tR\rcorrelationId\x12\x16\n" + "\x06values\x18\x02 \x03(\x02R\x06values\"\xec\x01\n" + diff --git a/internal/domain/device/proto/device.proto b/internal/domain/device/proto/device.proto index 666f68a..f987c43 100644 --- a/internal/domain/device/proto/device.proto +++ b/internal/domain/device/proto/device.proto @@ -24,7 +24,7 @@ message BatchCollectCommand { // CollectTask // 定义了单个采集任务的“意图”。 message CollectTask { - Raw485Command command = 2; // 平台生成的原始485指令 + Raw485Command command = 1; // 平台生成的原始485指令 } // CollectResult