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 78e28c6d
authored
Dec 28, 2021
by
levphon
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
新增位置点验证接口
1 parent
cf22115a
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/DeviceFeignService.java
src/main/java/cn/com/glsx/devicemonitor/api/feign/fallback/DeviceServiceFallbackImpl.java
src/main/java/cn/com/glsx/devicemonitor/api/feign/DeviceFeignService.java
View file @
78e28c6
...
@@ -41,7 +41,7 @@ public interface DeviceFeignService {
...
@@ -41,7 +41,7 @@ public interface DeviceFeignService {
* @return
* @return
*/
*/
@GetMapping
(
value
=
"/getOrStoreDeviceBySn"
)
@GetMapping
(
value
=
"/getOrStoreDeviceBySn"
)
R
<
DeviceDTO
>
getOrStoreDeviceBySn
(
@RequestParam
(
value
=
"sn"
)
String
sn
,
b
oolean
storeIfNotExists
);
R
<
DeviceDTO
>
getOrStoreDeviceBySn
(
@RequestParam
(
value
=
"sn"
)
String
sn
,
B
oolean
storeIfNotExists
);
/**
/**
* 获取设备的状态
* 获取设备的状态
...
...
src/main/java/cn/com/glsx/devicemonitor/api/feign/fallback/DeviceServiceFallbackImpl.java
View file @
78e28c6
...
@@ -25,7 +25,7 @@ public class DeviceServiceFallbackImpl implements DeviceFeignService {
...
@@ -25,7 +25,7 @@ public class DeviceServiceFallbackImpl implements DeviceFeignService {
}
}
@Override
@Override
public
R
<
DeviceDTO
>
getOrStoreDeviceBySn
(
String
sn
,
b
oolean
storeIfNotExists
)
{
public
R
<
DeviceDTO
>
getOrStoreDeviceBySn
(
String
sn
,
B
oolean
storeIfNotExists
)
{
log
.
info
(
"getDeviceBySn 熔断啦==={}"
,
cause
.
getMessage
());
log
.
info
(
"getDeviceBySn 熔断啦==={}"
,
cause
.
getMessage
());
return
R
.
ok
(
"无数据"
);
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