|
|
@ -52,13 +52,9 @@ public class DeviceController extends BaseController { |
|
|
|
|
|
|
|
@ResponseBody |
|
|
|
@PostMapping("/api/device/restore") |
|
|
|
public ApiResponse restore( @RequestBody ParamDeviceReset param ) { |
|
|
|
try { |
|
|
|
this.deviceService.reset(param.errorReset); |
|
|
|
return this.success(); |
|
|
|
} catch ( RuntimeException e ) { |
|
|
|
return this.error(e.getMessage()); |
|
|
|
} |
|
|
|
public ApiResponse restore() { |
|
|
|
this.deviceService.reset(true); |
|
|
|
return this.success(); |
|
|
|
} |
|
|
|
|
|
|
|
@ResponseBody |
|
|
|