| | |
| | | |
| | | import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; |
| | | import com.baomidou.mybatisplus.core.toolkit.Wrappers; |
| | | import com.baomidou.mybatisplus.extension.api.R; |
| | | import com.github.pagehelper.PageHelper; |
| | | import com.sandu.common.domain.ResponseVO; |
| | | import com.sandu.common.object.BaseConditionVO; |
| | |
| | | @PostMapping("/screenShot") |
| | | public ResponseVO<Object> screenShot(@RequestBody VnnoxParam vnnoxWebRequest) { |
| | | Map<String, String> map = vnnoxService.getScreenShotUrl(vnnoxWebRequest.getId()); |
| | | if(map.get("code").equals("500")) { |
| | | return ResponseUtil.fail(map.get("msg")); |
| | | if (map.get("code").equals("500")) { |
| | | return ResponseUtil.fail(map.get("msg")); |
| | | } |
| | | return ResponseUtil.success(map.get("url")); |
| | | } |
| | |
| | | * @param vnnoxWebRequest |
| | | * @return |
| | | */ |
| | | @GetMapping("/reboot") |
| | | @PostMapping("/reboot") |
| | | public ResponseVO<Object> reboot(@RequestBody VnnoxParam vnnoxWebRequest) { |
| | | VnnoxResult vnnoxResult = vnnoxService.reboot(vnnoxWebRequest.getPlayerList()); |
| | | return ResponseUtil.success(vnnoxResult); |
| | |
| | | |
| | | /** |
| | | * @param vnnoxWebRequest |
| | | * @return 开关屏幕 |
| | | * @return 开关屏幕 |
| | | */ |
| | | @GetMapping("/screenStatusChange") |
| | | @PostMapping("/screenStatusChange") |
| | | public ResponseVO<Object> screenStatusChange(@RequestBody VnnoxParam vnnoxWebRequest) { |
| | | VnnoxResult vnnoxResult = vnnoxService.screenStatusChange(vnnoxWebRequest.getPlayerList(), vnnoxWebRequest.getScreenStatus()); |
| | | return ResponseUtil.success(vnnoxResult); |
| | |
| | | * @param vnnoxWebRequest |
| | | * @return |
| | | */ |
| | | @GetMapping("/volChange") |
| | | @PostMapping("/volChange") |
| | | public ResponseVO<Object> volChange(@RequestBody VnnoxParam vnnoxWebRequest) { |
| | | VnnoxResult vnnoxResult = vnnoxService.volChange(vnnoxWebRequest.getPlayerList(), vnnoxWebRequest.getVol()); |
| | | return ResponseUtil.success(vnnoxResult); |
| | |
| | | * @param vnnoxWebRequest |
| | | * @return |
| | | */ |
| | | @GetMapping("/brightnessChange") |
| | | @PostMapping("/brightnessChange") |
| | | public ResponseVO<Object> brightnessChange(@RequestBody VnnoxParam vnnoxWebRequest) { |
| | | VnnoxResult vnnoxResult = vnnoxService.brightnessChange(vnnoxWebRequest.getPlayerList(), vnnoxWebRequest.getBrightness()); |
| | | return ResponseUtil.success(vnnoxResult); |
| | |
| | | } else { |
| | | wrapper.like(LedPlayerEntity::getPlayerName, keyword) |
| | | .or( |
| | | querywrapper->{ |
| | | querywrapper -> { |
| | | querywrapper.like(LedPlayerEntity::getName, keyword); |
| | | } |
| | | ); |