From cf9a5039e6db9d1d5963e3fe1a37d00169ec2ef7 Mon Sep 17 00:00:00 2001 From: whyclxw <810412026@qq.com> Date: 星期三, 25 六月 2025 11:18:22 +0800 Subject: [PATCH] 验收报告修改 --- src/main/java/com/whyc/controller/ZipAndRarController.java | 10 ++++++++++ 1 files changed, 10 insertions(+), 0 deletions(-) diff --git a/src/main/java/com/whyc/controller/ZipAndRarController.java b/src/main/java/com/whyc/controller/ZipAndRarController.java index e7edbc9..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 @@ -22,4 +25,11 @@ public Response getzipAndRarInfo(@RequestParam String fileUrl){ return service.getzipAndRarInfo(fileUrl); } + + @ApiOperation("瑙e帇") + @GetMapping("decompress") + public Response decompress(@RequestParam String compressedFileUrl) throws ArchiveException, IOException, InterruptedException { + return service.decompress(compressedFileUrl); + } + } -- Gitblit v1.9.1