Commit 3ca6dd38 by 王欣伟

API修改

1 parent 49fc6e3e
...@@ -21,7 +21,7 @@ import java.util.Map; ...@@ -21,7 +21,7 @@ import java.util.Map;
public class TestGpsBsController { public class TestGpsBsController {
private static String localUrl = "http://localhost:8080"; private static String localUrl = "http://localhost:8080";
private static String devUrl = "http://192.168.3.181:8080"; private static String devUrl = "http://192.168.3.181:8300";
private static String serverUrl = devUrl; private static String serverUrl = devUrl;
...@@ -34,7 +34,7 @@ public class TestGpsBsController { ...@@ -34,7 +34,7 @@ public class TestGpsBsController {
} }
private static void batchGpsBs() { private static void batchGpsBs() {
String url = "http://localhost:8080/ne-shield-devicemonitor/location/lastgpsbs/batch"; String url = serverUrl + "/ne-shield-devicemonitor/location/lastgpsbs/batch";
GpsBsLastBatchRequest gpsBsLastBatchRequest = new GpsBsLastBatchRequest(); GpsBsLastBatchRequest gpsBsLastBatchRequest = new GpsBsLastBatchRequest();
List<String> snList = new ArrayList<>(); List<String> snList = new ArrayList<>();
snList.add("6200917729"); snList.add("6200917729");
...@@ -46,7 +46,7 @@ public class TestGpsBsController { ...@@ -46,7 +46,7 @@ public class TestGpsBsController {
} }
private static void singleSn() { private static void singleSn() {
String url = "http://localhost:8080/ne-shield-devicemonitor/location/single"; String url = serverUrl + "/ne-shield-devicemonitor/location/single";
String sn = "6200917729"; String sn = "6200917729";
String deviceCode = DeviceTypeRelationEnum.GPS.getDeviceCode(); String deviceCode = DeviceTypeRelationEnum.GPS.getDeviceCode();
Map<String, Object> paramMap = new HashMap<>(); Map<String, Object> paramMap = new HashMap<>();
...@@ -57,7 +57,7 @@ public class TestGpsBsController { ...@@ -57,7 +57,7 @@ public class TestGpsBsController {
} }
private static void historySn() { private static void historySn() {
String url = "http://localhost:8080/ne-shield-devicemonitor/location/single/history"; String url = serverUrl + "/ne-shield-devicemonitor/location/single/history";
String sn = "6200917729"; String sn = "6200917729";
String deviceCode = DeviceTypeRelationEnum.GPS.getDeviceCode(); String deviceCode = DeviceTypeRelationEnum.GPS.getDeviceCode();
String startTime = "2021-05-20 09:30:31"; String startTime = "2021-05-20 09:30:31";
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!