@xingjs@20241224@添加解析CSV文件相关实体类、方法;添加文件上传配置;添加开发文件上传相关工具类
| | |
| | | @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("文件夹名称不能为空"); |