Browse Source

add:获取系统设备属性数据

zhongwei
luyie 2 months ago
parent
commit
7b71eed419
  1. 4
      hzims-service/gglm-big-model/src/main/java/com/hnac/gglm/bigmodel/business/service/impl/VectorDataServiceImpl.java

4
hzims-service/gglm-big-model/src/main/java/com/hnac/gglm/bigmodel/business/service/impl/VectorDataServiceImpl.java

@ -2,6 +2,7 @@ package com.hnac.gglm.bigmodel.business.service.impl;
import com.hnac.gglm.bigmodel.business.service.VectorDataService; import com.hnac.gglm.bigmodel.business.service.VectorDataService;
import com.hnac.gglm.bigmodel.business.vo.DeviceModelData; import com.hnac.gglm.bigmodel.business.vo.DeviceModelData;
import com.hnac.hzinfo.sdk.v5.device.client.DeviceClient;
import com.hnac.hzinfo.sdk.v5.device.dto.DeviceAttrInfoDTO; import com.hnac.hzinfo.sdk.v5.device.dto.DeviceAttrInfoDTO;
import com.hnac.hzinfo.sdk.v5.model.ModelClient; import com.hnac.hzinfo.sdk.v5.model.ModelClient;
import com.hnac.hzinfo.sdk.v5.model.vo.ModelAttrVO; import com.hnac.hzinfo.sdk.v5.model.vo.ModelAttrVO;
@ -25,6 +26,7 @@ import java.util.stream.Collectors;
@AllArgsConstructor @AllArgsConstructor
public class VectorDataServiceImpl implements VectorDataService { public class VectorDataServiceImpl implements VectorDataService {
private final ModelClient modelClient; private final ModelClient modelClient;
private final DeviceClient deviceClient;
@Override @Override
@ -65,6 +67,6 @@ public class VectorDataServiceImpl implements VectorDataService {
@Override @Override
public List<DeviceAttrInfoDTO> getDeviceAttr() { public List<DeviceAttrInfoDTO> getDeviceAttr() {
return null; return deviceClient.listDeviceAttr().getData();
} }
} }

Loading…
Cancel
Save