| | |
| | | return ResponseUtil.success(playPlanNvService.deletePlan(plianIds)); |
| | | } |
| | | |
| | | @PostMapping(value = "/push/{plianId}", produces = "application/json;charset=UTF-8") |
| | | public ResponseVO<Object> pushToLed(@PathVariable Long plianId, @RequestBody List<NovaPushResultVO> playerIds) { |
| | | /** |
| | | * 定时节目 |
| | | * |
| | | * @param planId |
| | | * @param playerIds |
| | | * @return |
| | | */ |
| | | @PostMapping(value = "/push/{planId}", produces = "application/json;charset=UTF-8") |
| | | public ResponseVO<Object> pushToLed(@PathVariable Long planId, @RequestBody List<NovaPushResultVO> playerIds) { |
| | | if (!permissionConfig.check(MenuEnum.LED_N_PLAY_PLAN_PUSH.getCode())) { |
| | | return ResponseUtil.fail("缺少对应用户权限"); |
| | | } |
| | | return ResponseUtil.success(playPlanNvService.pushToLed(plianId, playerIds)); |
| | | return ResponseUtil.success(playPlanNvService.pushToLed(planId, playerIds)); |
| | | } |
| | | |
| | | |
| | |
| | | } |
| | | |
| | | |
| | | /** |
| | | * 实时节目 |
| | | * |
| | | * @param pid |
| | | * @param playerIds |
| | | * @return |
| | | */ |
| | | @PostMapping(value = "/pushProgram/{pid}", produces = "application/json;charset=UTF-8") |
| | | public ResponseVO<Object> pushProgram(@PathVariable Long pid, @RequestBody List<NovaPushResultVO> playerIds) { |
| | | if (!permissionConfig.check(MenuEnum.LED_N_PLAY_PLAN_PUSH.getCode())) { |
| | |
| | | return ResponseUtil.success(playPlanNvService.pushProgram(pid, playerIds)); |
| | | } |
| | | |
| | | @PostMapping(value = "/pushWeather/{pid}", produces = "application/json;charset=UTF-8") |
| | | public ResponseVO<Object> pushWeather(@PathVariable Long pid, @RequestBody List<NovaPushResultVO> playerIds) { |
| | | if (!permissionConfig.check(MenuEnum.LED_N_PLAY_PLAN_PUSH.getCode())) { |
| | | return ResponseUtil.fail("缺少对应用户权限"); |
| | | } |
| | | return ResponseUtil.success(playPlanNvService.pushProgram(pid, playerIds)); |
| | | } |
| | | |
| | | @PostMapping(value = "/pushWeatherPlan/{id}", produces = "application/json;charset=UTF-8") |
| | | public ResponseVO<Object> pushWeatherPlan(@PathVariable Long id, @RequestBody List<NovaPushResultVO> playerIds) { |
| | | if (!permissionConfig.check(MenuEnum.LED_N_PLAY_PLAN_PUSH.getCode())) { |
| | | return ResponseUtil.fail("缺少对应用户权限"); |
| | | } |
| | | return ResponseUtil.success(playPlanNvService.pushWeatherToLed(id, playerIds)); |
| | | } |
| | | |
| | | @GetMapping("/listPlan") |
| | | public ResponseVO<Object> list(BaseConditionVO baseConditionVO, |