| | |
| | | import com.sandu.common.file.FileUploadDto; |
| | | import com.sandu.common.file.impl.AliOssFileServiceImpl; |
| | | import com.sandu.common.object.BaseConditionVO; |
| | | import com.sandu.common.security.annotation.AnonymousAccess; |
| | | import com.sandu.common.util.ResponseUtil; |
| | | import com.sandu.ximon.admin.security.PermissionConfig; |
| | | import com.sandu.ximon.admin.service.FileOperationRecordService; |
| | |
| | | return ResponseUtil.fail("缺少对应用户权限"); |
| | | } |
| | | LambdaQueryWrapper<LedSFile> wrapper = ledProgramFileService.listFile(); |
| | | if (!keyword.isEmpty()) { |
| | | if (keyword != null && !keyword.isEmpty()) { |
| | | wrapper.like(LedSFile::getOriginName, keyword); |
| | | } |
| | | |
| | |
| | | return ResponseUtil.success(ledProgramFileService.list(wrapper)); |
| | | } |
| | | |
| | | @AnonymousAccess |
| | | @PostMapping("/uploading/{dateType}") |
| | | public ResponseVO<Object> uploadingFile(@RequestParam("file") MultipartFile file, @PathVariable Integer dateType) { |
| | | FileUploadDto fileUploadDto = aliOssFileService.uploadFile(file); |