1
This commit is contained in:
1 parent
7883a39de8
commit
89987ee139
3 files changed
+13
-2
No files matched your search
@@ -35,6 +35,17 @@ public class EcDeviceApiController extends BaseController {
|
||||
}
|
||||
return AjaxResult.success(ecDevice);
|
||||
}
|
||||
@GetMapping("/mjpegSnapshop")
|
||||
public AjaxResult mjpegSnapshop(@RequestParam(name = "deviceCode") String deviceCode) {
|
||||
EcDevice ecDevice = new EcDevice();
|
||||
try {
|
||||
ecDevice.setLastScreenPic(ecDeviceService.mjpegSnapshop(deviceCode));
|
||||
} catch (Exception e) {
|
||||
logger.error(e.getMessage(),e);
|
||||
return AjaxResult.error(e.getMessage());
|
||||
}
|
||||
return AjaxResult.success(ecDevice);
|
||||
}
|
||||
@PostMapping("/heartbeat")
|
||||
public AjaxResult heartbeat(@RequestBody EcDeviceHeartbeatDto heartbeatDto) {
|
||||
if (heartbeatDto.getDeviceCode() == null || heartbeatDto.getDeviceCode().isEmpty()) {
|
||||
|
||||
Reference in new issue
Block a user