| | |
| | | @ApiImplicitParam(name = "filePathName", value = "文件夹名称", required = true, dataType = "String", paramType = "query", example = "upload", dataTypeClass = String.class) |
| | | @PostMapping("/uploadMultipleFiles") |
| | | public ResponseEntity<String> uploadMultipleFiles(List<MultipartFile> files, @RequestParam("filePathName") String filePathName) throws IOException { |
| | | if (files.isEmpty()) { |
| | | return ResponseEntity.status(HttpStatus.BAD_REQUEST).body("文件不能为空"); |
| | | } |
| | | // 判断 filePathName 是否为空 |
| | | if (filePathName == null || filePathName.isEmpty()) { |
| | | // return ResponseEntity.status(HttpStatus.BAD_REQUEST).body("文件夹名称不能为空"); |