Commit 3afa8335 by 黄小葱

修改consumes的类型

1 parent a6c16fac
......@@ -27,8 +27,8 @@ public interface DeviceFeignService {
* @param sn
* @return
*/
@GetMapping(value = "/getDeviceBySn", consumes = MediaType.APPLICATION_JSON_VALUE)
R<DeviceDTO> getDeviceBySn(@NotBlank(message = "设备号不能为空") @RequestParam(value = "sn") String sn);
@GetMapping(value = "/getDeviceBySn")
R<DeviceDTO> getDeviceBySn(@RequestParam(value = "sn") String sn);
/**
* 获取设备的状态
......@@ -37,8 +37,8 @@ public interface DeviceFeignService {
* @param offlineTime
* @return
*/
@GetMapping(value = "/getDeviceStatusBySn", consumes = MediaType.APPLICATION_JSON_VALUE)
R<DeviceStatusModel> getDeviceStatusBySn(@NotBlank(message = "设备号不能为空") @RequestParam(value = "sn") String sn, Long offlineTime);
@GetMapping(value = "/getDeviceStatusBySn")
R<DeviceStatusModel> getDeviceStatusBySn(@RequestParam(value = "sn") String sn, Long offlineTime);
/**
* 获取设备上点总个数
......@@ -46,6 +46,6 @@ public interface DeviceFeignService {
* @param sn 设备号
* @return
*/
@GetMapping(value = "/getDevicesTotalCount", consumes = MediaType.APPLICATION_JSON_VALUE)
@GetMapping(value = "/getDevicesTotalCount")
R getDevicesTotalCount(@RequestParam(value = "sn") String sn);
}
......@@ -36,10 +36,10 @@ import java.util.List;
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);
@GetMapping(value = "/devicemonitorinfo2", consumes = MediaType.APPLICATION_JSON_VALUE)
@GetMapping(value = "/devicemonitorinfo2")
R<List<DeviceLocationBo>> listDeviceMonitorInfo2(DeviceLocationRequest request);
/**
......@@ -68,6 +68,6 @@ public interface GpsBsService {
* @return
*/
@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!