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 3afa8335
authored
Sep 13, 2021
by
黄小葱
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
修改consumes的类型
1 parent
a6c16fac
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
8 deletions
src/main/java/cn/com/glsx/devicemonitor/api/feign/DeviceFeignService.java
src/main/java/cn/com/glsx/devicemonitor/api/feign/GpsBsService.java
src/main/java/cn/com/glsx/devicemonitor/api/feign/DeviceFeignService.java
View file @
3afa833
...
@@ -27,8 +27,8 @@ public interface DeviceFeignService {
...
@@ -27,8 +27,8 @@ public interface DeviceFeignService {
* @param sn
* @param sn
* @return
* @return
*/
*/
@GetMapping
(
value
=
"/getDeviceBySn"
,
consumes
=
MediaType
.
APPLICATION_JSON_VALUE
)
@GetMapping
(
value
=
"/getDeviceBySn"
)
R
<
DeviceDTO
>
getDeviceBySn
(
@
NotBlank
(
message
=
"设备号不能为空"
)
@
RequestParam
(
value
=
"sn"
)
String
sn
);
R
<
DeviceDTO
>
getDeviceBySn
(
@RequestParam
(
value
=
"sn"
)
String
sn
);
/**
/**
* 获取设备的状态
* 获取设备的状态
...
@@ -37,8 +37,8 @@ public interface DeviceFeignService {
...
@@ -37,8 +37,8 @@ public interface DeviceFeignService {
* @param offlineTime
* @param offlineTime
* @return
* @return
*/
*/
@GetMapping
(
value
=
"/getDeviceStatusBySn"
,
consumes
=
MediaType
.
APPLICATION_JSON_VALUE
)
@GetMapping
(
value
=
"/getDeviceStatusBySn"
)
R
<
DeviceStatusModel
>
getDeviceStatusBySn
(
@
NotBlank
(
message
=
"设备号不能为空"
)
@
RequestParam
(
value
=
"sn"
)
String
sn
,
Long
offlineTime
);
R
<
DeviceStatusModel
>
getDeviceStatusBySn
(
@RequestParam
(
value
=
"sn"
)
String
sn
,
Long
offlineTime
);
/**
/**
* 获取设备上点总个数
* 获取设备上点总个数
...
@@ -46,6 +46,6 @@ public interface DeviceFeignService {
...
@@ -46,6 +46,6 @@ public interface DeviceFeignService {
* @param sn 设备号
* @param sn 设备号
* @return
* @return
*/
*/
@GetMapping
(
value
=
"/getDevicesTotalCount"
,
consumes
=
MediaType
.
APPLICATION_JSON_VALUE
)
@GetMapping
(
value
=
"/getDevicesTotalCount"
)
R
getDevicesTotalCount
(
@RequestParam
(
value
=
"sn"
)
String
sn
);
R
getDevicesTotalCount
(
@RequestParam
(
value
=
"sn"
)
String
sn
);
}
}
src/main/java/cn/com/glsx/devicemonitor/api/feign/GpsBsService.java
View file @
3afa833
...
@@ -36,10 +36,10 @@ import java.util.List;
...
@@ -36,10 +36,10 @@ import java.util.List;
public
interface
GpsBsService
{
public
interface
GpsBsService
{
@GetMapping
(
value
=
"/devicemonitorinfo"
,
consumes
=
MediaType
.
APPLICATION_JSON_VALUE
)
@GetMapping
(
value
=
"/devicemonitorinfo"
)
R
<
List
<
DeviceLocationBo
>>
listDeviceMonitorInfo
(
@RequestParam
(
value
=
"sns"
)
String
sns
,
@RequestParam
(
value
=
"deviceCode"
)
String
deviceCode
);
R
<
List
<
DeviceLocationBo
>>
listDeviceMonitorInfo
(
@RequestParam
(
value
=
"sns"
)
String
sns
,
@RequestParam
(
value
=
"deviceCode"
)
String
deviceCode
);
@GetMapping
(
value
=
"/devicemonitorinfo2"
,
consumes
=
MediaType
.
APPLICATION_JSON_VALUE
)
@GetMapping
(
value
=
"/devicemonitorinfo2"
)
R
<
List
<
DeviceLocationBo
>>
listDeviceMonitorInfo2
(
DeviceLocationRequest
request
);
R
<
List
<
DeviceLocationBo
>>
listDeviceMonitorInfo2
(
DeviceLocationRequest
request
);
/**
/**
...
@@ -68,6 +68,6 @@ public interface GpsBsService {
...
@@ -68,6 +68,6 @@ public interface GpsBsService {
* @return
* @return
*/
*/
@GetMapping
(
value
=
"/single/history"
,
consumes
=
MediaType
.
APPLICATION_JSON_VALUE
)
@GetMapping
(
value
=
"/single/history"
,
consumes
=
MediaType
.
APPLICATION_JSON_VALUE
)
R
<
List
<
GpsLocation
>>
getLastGpsBsHistoryBySn
(
@RequestBody
LocationHistoryRequest
request
);
R
<
List
<
GpsLocation
>>
getLastGpsBsHistoryBySn
(
LocationHistoryRequest
request
);
}
}
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