Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
eshiled-new
/
ne-shield-devicemonitor
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 3ca6dd38
authored
May 24, 2021
by
王欣伟
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
API修改
1 parent
49fc6e3e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
src/test/java/cn/com/glsx/test/gpsbs/TestGpsBsController.java
src/test/java/cn/com/glsx/test/gpsbs/TestGpsBsController.java
View file @
3ca6dd3
...
@@ -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:8
08
0"
;
private
static
String
devUrl
=
"http://192.168.3.181:8
30
0"
;
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"
;
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment