| | |
| | | } |
| | | |
| | | /** |
| | | * 获取当前控制者 |
| | | * 按类型获取当前控制者 |
| | | */ |
| | | @ApiOperation("获取当前控制者") |
| | | @GetMapping("/current") |
| | | @ApiOperation("按类型获取当前控制者") |
| | | @GetMapping("/getCurrentControllerByType") |
| | | public AjaxResult getCurrentController(@RequestParam String boxSn, @RequestParam String type) { |
| | | return AjaxResult.success(uavControlService.getCurrentController(boxSn, type)); |
| | | } |
| | | /** |
| | | * 获取全部类型当前控制者 |
| | | */ |
| | | @ApiOperation("获取全部类型当前控制者") |
| | | @GetMapping("/getAllCurrentController") |
| | | public AjaxResult getAllCurrentController(@RequestParam String boxSn) { |
| | | return AjaxResult.success(uavControlService.getCurrentController(boxSn)); |
| | | } |
| | | |
| | | } |