| | |
| | | } |
| | | |
| | | @GetMapping("/task/download") |
| | | @Operation(summary = "下载二维码导出产物(下载完成后系统立即删除临时文件)") |
| | | @Operation(summary = "下载二维码导出产物(支持 Range 分段下载)") |
| | | @Parameter(name = "id", description = "任务编号", required = true, example = "1024") |
| | | @PreAuthorize(ANY_EXPORT_PERMISSION) |
| | | public void download(@RequestParam("id") Long id, HttpServletResponse response) throws IOException { |
| | | taskService.download(id, response); |
| | | public void download(@RequestParam("id") Long id, |
| | | @RequestHeader(value = "Range", required = false) String range, |
| | | HttpServletResponse response) throws IOException { |
| | | taskService.download(id, range, response); |
| | | } |
| | | |
| | | // ==================== 私有方法 ==================== |