zhangqian
2023-11-01 443fb992699818305e3d7f6885ca7d1d36fbe7cd
api/v1/device.go
@@ -73,9 +73,13 @@
      return
   }
   resp := response.DeviceListResponse{
      SystemDeviceID:  conf.Conf.System.DeviceId,
      CurrentDeviceID: conf.Conf.CurrentDeviceID,
      DeviceIDList:    list,
      SystemDeviceID:       conf.Conf.System.DeviceId,
      CurrentDeviceID:      conf.Conf.CurrentDeviceID,
      DeviceIDList:         list,
      SystemDeviceStatus:   response.SystemDeviceStatusNormal,
      ClusterStatus:        conf.Conf.SerfClusterStatus,
      ClusterNodeQuantity:  conf.Conf.ClusterNodeQuantity,
      SystemDeviceRunSince: conf.Conf.SystemDeviceRunSince,
   }
   ctx.OkWithDetailed(resp)
}