Commit 2d0afcdb by 杨林龙

开发新E盾gps基站同步到redis的数据接口

1 parent 8df6428d
...@@ -37,4 +37,11 @@ public interface DeviceLocationClient { ...@@ -37,4 +37,11 @@ public interface DeviceLocationClient {
@GetMapping(value = "getAllSn") @GetMapping(value = "getAllSn")
@ResponseBody @ResponseBody
R<List<String>> getAllSn(); R<List<String>> getAllSn();
/**
* 获取E盾中的所有设备号集合
*/
@GetMapping(value = "getAllDeviceLocationData")
@ResponseBody
R<List<DeviceLocationDto>> getAllDeviceLocationData();
} }
...@@ -33,4 +33,10 @@ public class DeviceLocationFallbackImpl implements DeviceLocationClient { ...@@ -33,4 +33,10 @@ public class DeviceLocationFallbackImpl implements DeviceLocationClient {
log.warn("getAllSn===熔断啦 {}", cause.getMessage()); log.warn("getAllSn===熔断啦 {}", cause.getMessage());
return R.ok("服务异常"); return R.ok("服务异常");
} }
@Override
public R<List<DeviceLocationDto>> getAllDeviceLocationData() {
log.warn("getAllDeviceLocationData===熔断啦 {}", cause.getMessage());
return R.ok("服务异常");
}
} }
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!