whyclxw
2025-06-16 31f95f2aaf83857dc53a9b43dc45762689df4d2c
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("解压")
    @GetMapping("decompress")
    public Response decompress(@RequestParam String compressedFileUrl){
    public Response decompress(@RequestParam String compressedFileUrl) throws ArchiveException, IOException, InterruptedException {
        return service.decompress(compressedFileUrl);
    }