| | |
| | | |
| | | |
| | | @ApiOperation("查询正在升级的设备") |
| | | @GetMapping("/searchAll") |
| | | private Response searchAll(){ |
| | | @GetMapping("searchAll") |
| | | public Response searchAll(){ |
| | | return service.searchAll(); |
| | | } |
| | | |
| | | @ApiOperation("添加") |
| | | @GetMapping("/addPro") |
| | | private Response addPro(@RequestParam String stationName,@RequestParam int num){ |
| | | @GetMapping("addPro") |
| | | public Response addPro(@RequestParam String stationName,@RequestParam int num){ |
| | | return service.addPro(stationName,num); |
| | | } |
| | | |
| | | @ApiOperation("批量升级") |
| | | @PostMapping("/updatePro") |
| | | private Response updatePro(@RequestParam String dfuFile,@RequestBody List<Integer> devIds){ |
| | | @PostMapping("updatePro") |
| | | public Response updatePro(@RequestParam String dfuFile,@RequestBody List<Integer> devIds){ |
| | | return service.updatePro(dfuFile,devIds); |
| | | } |
| | | |
| | | @ApiOperation("查询添加列表") |
| | | @GetMapping("/serchInserStation") |
| | | private Response serchInserStation(@RequestParam String stationName,@RequestParam int num){ |
| | | @GetMapping("serchInserStation") |
| | | public Response serchInserStation(@RequestParam String stationName,@RequestParam int num){ |
| | | return service.serchInserStation(stationName,num); |
| | | } |
| | | |
| | | @ApiOperation("验证设备是否允许设备进行远程升级") |
| | | @PostMapping("/judgeStation") |
| | | private Response judgeStation(@RequestBody List<Integer> devIds){ |
| | | @PostMapping("judgeStation") |
| | | public Response judgeStation(@RequestBody List<Integer> devIds){ |
| | | return service.judgeStation(devIds); |
| | | } |
| | | |
| | | @ApiOperation("更新设备更新的表格") |
| | | @PostMapping("/serchByCondition") |
| | | private Response serchByCondition(@RequestBody List<Integer> devIds){ |
| | | @PostMapping("serchByCondition") |
| | | public Response serchByCondition(@RequestBody List<Integer> devIds){ |
| | | return service.serchByCondition(devIds); |
| | | } |
| | | } |