From f92783da5430037bf80cf28a5cf7091cdecefbb7 Mon Sep 17 00:00:00 2001 From: whycxzp <glperry@163.com> Date: 星期五, 09 五月 2025 09:23:51 +0800 Subject: [PATCH] 追加用户邮件备注 --- src/main/java/com/whyc/controller/ZipAndRarController.java | 5 ++++- 1 files changed, 4 insertions(+), 1 deletions(-) diff --git a/src/main/java/com/whyc/controller/ZipAndRarController.java b/src/main/java/com/whyc/controller/ZipAndRarController.java index ee1b006..efbd5b0 100644 --- a/src/main/java/com/whyc/controller/ZipAndRarController.java +++ b/src/main/java/com/whyc/controller/ZipAndRarController.java @@ -4,11 +4,14 @@ import com.whyc.service.ZipAndRarService; import io.swagger.annotations.Api; import io.swagger.annotations.ApiOperation; +import org.apache.commons.compress.archivers.ArchiveException; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestParam; import org.springframework.web.bind.annotation.RestController; + +import java.io.IOException; @Api(tags = "鍘嬬缉鍖�") @RestController @@ -25,7 +28,7 @@ @ApiOperation("瑙e帇") @GetMapping("decompress") - public Response decompress(@RequestParam String compressedFileUrl){ + public Response decompress(@RequestParam String compressedFileUrl) throws ArchiveException, IOException, InterruptedException { return service.decompress(compressedFileUrl); } -- Gitblit v1.9.1