| | |
| | | private final PlayPlanNvService playPlanNvService; |
| | | private PermissionConfig permissionConfig; |
| | | |
| | | @AnonymousAccess |
| | | @PostMapping("/add") |
| | | public ResponseVO<Object> addLEDPlan(@RequestBody @Validated PlayPlanParam param) { |
| | | if (!permissionConfig.check(MenuEnum.LED_N_PLAY_PLAN_ADD.getCode())) { |
| | |
| | | return ResponseUtil.success(playPlanNvService.addPlan(param)); |
| | | } |
| | | |
| | | @AnonymousAccess |
| | | @GetMapping("/getByPlanId/{planId}") |
| | | public ResponseVO<Object> getPlan(@PathVariable Long planId) { |
| | | if (!permissionConfig.check(MenuEnum.LED_N_PLAY_PLAN_DETAIL.getCode())) { |
| | |
| | | return ResponseUtil.success(playPlanNvService.deletePlan(plianIds)); |
| | | } |
| | | |
| | | @AnonymousAccess |
| | | @PostMapping(value = "/push/{plianId}", produces = "application/json;charset=UTF-8") |
| | | public ResponseVO<Object> pushToLed(@PathVariable Long plianId, @RequestBody List<NovaPushResultVO> playerIds) { |
| | | if (!permissionConfig.check(MenuEnum.LED_N_PLAY_PLAN_PUSH.getCode())) { |
| | |
| | | } |
| | | |
| | | |
| | | @AnonymousAccess |
| | | @PostMapping(value = "/pushSchedule/{planId}", produces = "application/json;charset=UTF-8") |
| | | public ResponseVO<Object> pushSchedule(@PathVariable Long planId, @RequestBody List<NovaPushResultVO> playerIds) { |
| | | if (!permissionConfig.check(MenuEnum.LED_N_PLAY_PLAN_PUSH_SCHEDULE.getCode())) { |
| | |
| | | return ResponseUtil.success(playPlanNvService.pushSchedule(planId, playerIds)); |
| | | } |
| | | |
| | | @AnonymousAccess |
| | | @GetMapping("/listPlan") |
| | | public ResponseVO<Object> list(BaseConditionVO baseConditionVO, @RequestParam(value = "keyword", required = false) String keyword) { |
| | | if (!permissionConfig.check(MenuEnum.PLAYPLAN_LIST.getCode())) { |