| | |
| | | package com.whyc.controller; |
| | | |
| | | import com.github.junrar.exception.RarException; |
| | | import com.whyc.dto.Response; |
| | | import com.whyc.service.ZipAndRarService; |
| | | import io.swagger.annotations.Api; |
| | |
| | | |
| | | @ApiOperation("解压") |
| | | @GetMapping("decompress") |
| | | public Response decompress(@RequestParam String compressedFileUrl) throws ArchiveException, IOException, RarException { |
| | | public Response decompress(@RequestParam String compressedFileUrl) throws ArchiveException, IOException, InterruptedException { |
| | | return service.decompress(compressedFileUrl); |
| | | } |
| | | |