sige 2 years ago
parent
commit
9a507d1804
  1. 10
      src/main/java/com/dreamworks/boditech/controller/DeviceController.java

10
src/main/java/com/dreamworks/boditech/controller/DeviceController.java

@ -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

Loading…
Cancel
Save