package com.whyc.controller; import com.whyc.dto.Response; import com.whyc.service.MaterialApprovingService; import io.swagger.annotations.Api; 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.*; import org.springframework.web.multipart.MultipartFile; import java.io.IOException; /** * 物料审批解析 */ @RestController @RequestMapping("materialApproving") @Api(tags = "物料审批解析") public class MaterialApprovingController { @Autowired private MaterialApprovingService service; @PostMapping("zipParse") @ApiOperation("zip解析") public Response zipParse(@RequestParam("file") MultipartFile file) throws IOException, InvalidFormatException { return service.zipParse(file); } }