| | |
| | | import org.springframework.validation.annotation.Validated; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * @Author liuhaonan |
| | | * @Date 2021/12/21 11:35 |
| | |
| | | return ResponseUtil.success(ledProgramFileService.addProgramFile(param)); |
| | | } |
| | | |
| | | @PostMapping("/delete/{fileId}") |
| | | public ResponseVO<Object> deleteLEDProgram(@PathVariable Long fileId) { |
| | | @PostMapping("/delete") |
| | | public ResponseVO<Object> deleteLEDProgram(@RequestBody List<Long> fileIds) { |
| | | if (!permissionConfig.check(MenuEnum.LED_FILE_N_DELETE.getCode())) { |
| | | return ResponseUtil.fail("缺少对应用户权限"); |
| | | } |
| | | return ResponseUtil.success(ledProgramFileService.deleteFile(fileId)); |
| | | return ResponseUtil.success(ledProgramFileService.deleteFile(fileIds)); |
| | | } |
| | | |
| | | @GetMapping("/list") |