| | |
| | | import io.swagger.annotations.ApiOperation; |
| | | import org.apache.poi.openxml4j.exceptions.InvalidFormatException; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.web.bind.annotation.PostMapping; |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | | import org.springframework.web.bind.annotation.RequestParam; |
| | | import org.springframework.web.bind.annotation.RestController; |
| | | import org.springframework.web.bind.annotation.*; |
| | | import org.springframework.web.multipart.MultipartFile; |
| | | |
| | | import java.io.IOException; |
| | |
| | | |
| | | @PostMapping("zipParse") |
| | | @ApiOperation("zip解析") |
| | | public Response zipParse(@RequestParam("file") MultipartFile file) throws IOException { |
| | | public Response zipParse(@RequestParam("file") MultipartFile file) throws IOException, InvalidFormatException { |
| | | return service.zipParse(file); |
| | | } |
| | | |
| | | @GetMapping("dwgReview") |
| | | @ApiOperation("dwg文件预览") |
| | | public Response dwgReview(@RequestParam String dwgUrl) throws IOException { |
| | | return service.dwgReview(dwgUrl); |
| | | } |
| | | |
| | | } |