| | |
| | | import org.springframework.validation.annotation.Validated; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * LED节目处理 |
| | | */ |
| | |
| | | } |
| | | |
| | | |
| | | @PostMapping("/delete/{pid}") |
| | | public ResponseVO<Object> deleteLEDProgram(@PathVariable Long pid) { |
| | | @PostMapping("/delete") |
| | | public ResponseVO<Object> deleteLEDProgram(@RequestBody List<Long> pids) { |
| | | if (!permissionConfig.check(MenuEnum.LED_N_DELETE.getCode())) { |
| | | return ResponseUtil.fail("缺少对应用户权限"); |
| | | } |
| | | return ResponseUtil.success(ledProgramService.deleteProgram(pid)); |
| | | return ResponseUtil.success(ledProgramService.deleteProgram(pids)); |
| | | } |
| | | |
| | | |