Commit 3afa8335 by 黄小葱

修改consumes的类型

1 parent a6c16fac
...@@ -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);
} }
...@@ -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);
} }
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!