新增文件下载

segment2.0
linrf 2 years ago
parent 6ae33d3f5d
commit 3113551d99

@ -28,17 +28,17 @@ import javax.servlet.http.HttpServletResponse;
public interface FileApi {
@ApiOperation("文件下载")
@GetMapping("/download")
@GetMapping("/download0")
void downLoadFromUrl(@RequestParam(value = "urlStr") String urlStr,
@RequestParam(value = "fileName") String fileName,
@RequestParam(value = "savePath") String savePath) throws Exception;
@ApiOperation("文件下载")
@GetMapping("/download")
@GetMapping("/download1")
ResponseEntity<ByteArrayResource> downloadFile(@RequestParam(value = "filePath") String filePath) throws Exception;
@ApiOperation("文件下载")
@GetMapping("/download")
@GetMapping("/download2")
void downloadFile(@RequestParam(value = "filePath") String filePath, HttpServletResponse response) throws Exception;
@ApiOperation("文件上传")

Loading…
Cancel
Save