| | |
| | | @Resource |
| | | private ITyService tyService; |
| | | |
| | | @ApiOperation("获取天宇token信息") |
| | | @ApiOperation("获取六合token信息") |
| | | @ApiOperationSupport(order = 1) |
| | | @GetMapping("/getToken") |
| | | public AjaxResult getToken() { |
| | | return AjaxResult.success(tyService.getAccessToken()); |
| | | @GetMapping("/getToken/{serverId}") |
| | | public AjaxResult getToken(@PathVariable("serverId") String serverId) { |
| | | return AjaxResult.success(tyService.getAccessToken(serverId)); |
| | | } |
| | | |
| | | @ApiOperation("获取天宇盒子列表") |
| | | @ApiOperation("获取六合盒子列表") |
| | | @ApiOperationSupport(order = 2) |
| | | @GetMapping("/getBoxList") |
| | | public AjaxResult getBoxList() { |
| | | List<BoxInfoReceiver> BoxList = tyService.getBoxList(); |
| | | return AjaxResult.success(BoxList); |
| | | List<BoxInfoReceiver> boxList = tyService.getBoxList(); |
| | | return AjaxResult.success(boxList); |
| | | } |
| | | |
| | | |
| | | @ApiOperation("获取飞行历史") |
| | | @ApiOperationSupport(order = 3) |
| | |
| | | } |
| | | |
| | | @ApiOperation("修改云盒设置") |
| | | @ApiOperationSupport(order = 6) |
| | | @PostMapping("/updateBoxSettings") |
| | | public AjaxResult updateBoxSettings(@RequestBody BoxSettingsDTO boxSettingsDTO) { |
| | | Boolean state = tyService.updateBoxSettings(boxSettingsDTO); |
| | | return AjaxResult.success(state); |
| | | } |
| | | |
| | | @ApiOperation("根据boxSn获取六合盒子列表") |
| | | @ApiOperationSupport(order = 7) |
| | | @GetMapping("/getBoxSnToList") |
| | | public AjaxResult getBoxSnToList(String boxSn) { |
| | | List<BoxInfoReceiver> boxList = tyService.getBoxSnToList(boxSn); |
| | | return AjaxResult.success(boxList); |
| | | } |
| | | |
| | | } |