| | |
| | | import org.springframework.validation.annotation.Validated; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * @Author liuhaonan |
| | | * @Date 2021/12/21 13:58 |
| | |
| | | return ResponseUtil.success(playPlanNvService.updatePlan(planId, param)); |
| | | } |
| | | |
| | | @PostMapping("/delete/{plianId}") |
| | | public ResponseVO<Object> deleteLEDPlan(@PathVariable Long plianId) { |
| | | return ResponseUtil.success(playPlanNvService.deletePlan(plianId)); |
| | | @PostMapping("/delete") |
| | | public ResponseVO<Object> deleteLEDPlan(@RequestBody List<Long> plianIds) { |
| | | return ResponseUtil.success(playPlanNvService.deletePlan(plianIds)); |
| | | } |
| | | |
| | | @PostMapping("/push/{plianId}") |
| | | public ResponseVO<Object> pushToLed(@PathVariable Long plianId) { |
| | | return ResponseUtil.success(playPlanNvService.pushToLed(plianId)); |
| | | public ResponseVO<Object> pushToLed(@PathVariable Long plianId,@RequestBody List<String> playerIds) { |
| | | return ResponseUtil.success(playPlanNvService.pushToLed(plianId,playerIds)); |
| | | } |
| | | @GetMapping("/listPlan") |
| | | public ResponseVO<Object> list(BaseConditionVO baseConditionVO, @RequestParam(value = "keyword", required = false) String keyword) { |