Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
eshiled-new
/
ne-shield-devicemonitor-api
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 ed57f37a
authored
Dec 14, 2021
by
levphon
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
新增位置点验证接口
1 parent
a004a474
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
src/main/java/cn/com/glsx/devicemonitor/api/feign/GpsBsFeignService.java
src/main/java/cn/com/glsx/devicemonitor/api/feign/fallback/GpsBsServiceFallbackImpl.java
src/main/java/cn/com/glsx/devicemonitor/api/feign/GpsBsFeignService.java
View file @
ed57f37
...
...
@@ -55,7 +55,7 @@ public interface GpsBsFeignService {
* @return
*/
@PostMapping
(
value
=
"/check"
,
consumes
=
MediaType
.
APPLICATION_JSON_VALUE
)
R
<
List
<
GpsBsData
>>
c
heck
(
@RequestBody
DeviceLocationRequest
deviceLocationRequest
);
R
<
List
<
GpsBsData
>>
locationC
heck
(
@RequestBody
DeviceLocationRequest
deviceLocationRequest
);
/**
* 获取单个设备的最新位置和基站数据
...
...
src/main/java/cn/com/glsx/devicemonitor/api/feign/fallback/GpsBsServiceFallbackImpl.java
View file @
ed57f37
...
...
@@ -59,7 +59,7 @@ public class GpsBsServiceFallbackImpl implements GpsBsFeignService {
}
@Override
public
R
<
List
<
GpsBsData
>>
c
heck
(
DeviceLocationRequest
deviceLocationRequest
)
{
public
R
<
List
<
GpsBsData
>>
locationC
heck
(
DeviceLocationRequest
deviceLocationRequest
)
{
log
.
info
(
"check 熔断啦==={}"
,
cause
.
getMessage
());
return
R
.
ok
(
"无数据"
);
}
...
...
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