|
|
|
@ -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("文件上传")
|
|
|
|
|