From c84a97df024e2a1fbbb6d50a7bcb4b2e2a0838b8 Mon Sep 17 00:00:00 2001 From: zhangqian <zhangqian@123.com> Date: 星期二, 07 十一月 2023 17:07:36 +0800 Subject: [PATCH] plc结果支持int32解析 --- api/v1/device.go | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/api/v1/device.go b/api/v1/device.go index c107808..6f16b3a 100644 --- a/api/v1/device.go +++ b/api/v1/device.go @@ -67,7 +67,7 @@ if !ok { return } - list, err := service.GetDeviceIDList() + list, err := service.GetDeviceList() if err != nil { ctx.Fail(ecode.DBErr) return @@ -75,7 +75,7 @@ resp := response.DeviceListResponse{ SystemDeviceID: conf.Conf.System.DeviceId, CurrentDeviceID: conf.Conf.CurrentDeviceID, - DeviceIDList: list, + DeviceList: list, SystemDeviceStatus: response.SystemDeviceStatusNormal, ClusterStatus: conf.Conf.SerfClusterStatus, ClusterNodeQuantity: conf.Conf.ClusterNodeQuantity, -- Gitblit v1.8.0