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 e437281f
authored
Dec 17, 2021
by
levphon
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
新增位置点验证接口
1 parent
66e58b2e
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
0 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 @
e437281
...
@@ -34,6 +34,16 @@ public interface DeviceFeignService {
...
@@ -34,6 +34,16 @@ public interface DeviceFeignService {
R
<
DeviceDTO
>
getDeviceBySn
(
@RequestParam
(
value
=
"sn"
)
String
sn
);
R
<
DeviceDTO
>
getDeviceBySn
(
@RequestParam
(
value
=
"sn"
)
String
sn
);
/**
/**
* 根据设备号查询设备信息
*
* @param sn
* @param storeIfNotExists
* @return
*/
@GetMapping
(
value
=
"/getDeviceBySn"
)
R
<
DeviceDTO
>
getDeviceBySn
(
@RequestParam
(
value
=
"sn"
)
String
sn
,
Boolean
storeIfNotExists
);
/**
* 获取设备的状态
* 获取设备的状态
*
*
* @param sn
* @param sn
...
...
src/main/java/cn/com/glsx/devicemonitor/api/feign/fallback/DeviceServiceFallbackImpl.java
View file @
e437281
...
@@ -25,6 +25,12 @@ public class DeviceServiceFallbackImpl implements DeviceFeignService {
...
@@ -25,6 +25,12 @@ public class DeviceServiceFallbackImpl implements DeviceFeignService {
}
}
@Override
@Override
public
R
<
DeviceDTO
>
getDeviceBySn
(
String
sn
,
Boolean
storeIfNotExists
)
{
log
.
info
(
"getDeviceBySn 熔断啦==={}"
,
cause
.
getMessage
());
return
R
.
ok
(
"无数据"
);
}
@Override
public
R
<
DeviceStatusModel
>
getDeviceStatusBySn
(
String
sn
,
Long
offlineTime
)
{
public
R
<
DeviceStatusModel
>
getDeviceStatusBySn
(
String
sn
,
Long
offlineTime
)
{
log
.
info
(
"getDeviceStatusBySn 熔断啦==={}"
,
cause
.
getMessage
());
log
.
info
(
"getDeviceStatusBySn 熔断啦==={}"
,
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