| | |
| | | import com.sandu.common.domain.ResponseVO; |
| | | import com.sandu.common.util.ResponseUtil; |
| | | import com.sandu.ximon.admin.param.LEDProgramFileParam; |
| | | import com.sandu.ximon.admin.security.SecurityUtils; |
| | | import com.sandu.ximon.admin.service.LEDProgramFileService; |
| | | import lombok.AllArgsConstructor; |
| | | import org.springframework.validation.annotation.Validated; |
| | |
| | | return ResponseUtil.success(ledProgramFileService.addProgramFile(param)); |
| | | } |
| | | |
| | | @PostMapping("/delete{fileId}") |
| | | @PostMapping("/delete/{fileId}") |
| | | public ResponseVO<Object> addLEDProgram(@PathVariable Long fileId) { |
| | | return ResponseUtil.success(ledProgramFileService.deleteFile(fileId)); |
| | | } |
| | | |
| | | @GetMapping("/list") |
| | | public ResponseVO<Object> listfile() { |
| | | return ResponseUtil.success(ledProgramFileService.list(ledProgramFileService.listFile())); |
| | | } |
| | | |
| | | } |