| | |
| | | import com.whyc.fbo.FboDataHeadStart; |
| | | import com.whyc.fbo.FboDataHeadStop; |
| | | import com.whyc.fbo.FboDataInf; |
| | | import com.whyc.mcp.TestDataInfo; |
| | | import com.whyc.pojo.Response; |
| | | import com.whyc.res.RESDataInfo; |
| | | import com.whyc.service.ExcelExportService; |
| | | import com.whyc.service.FboDataInfService; |
| | | import com.whyc.service.RESDataInfoService; |
| | | import com.whyc.service.TestDataInfoService; |
| | | import com.whyc.util.*; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | |
| | | @Autowired |
| | | private ExcelExportService exportService; |
| | | |
| | | @Autowired |
| | | private RESDataInfoService resService; |
| | | |
| | | @Autowired |
| | | private TestDataInfoService testDataInfoService; |
| | | |
| | | @GetMapping("/hello") |
| | | public Response hello(){ |
| | | return new Response().set(1,"hello"); |
| | |
| | | String suffix=filePath.substring(filePath.lastIndexOf(".")+1).toLowerCase(Locale.ROOT); |
| | | Response response=new Response(); |
| | | switch (suffix){ |
| | | case "fbx":FboDataInf fboDataInf = fboService.readFboFile(filePath); |
| | | case "fbx": |
| | | FboDataInf fboDataInf = fboService.readFboFile(filePath); |
| | | response.set(1,fboDataInf,filePath); |
| | | break; |
| | | case "bres":response.set(1,filePath); |
| | | case "bres": |
| | | RESDataInfo resDataInfo =resService.readFileData(filePath); |
| | | response.set(1,resDataInfo,filePath); |
| | | break; |
| | | case "alm":response.set(1,filePath); |
| | | break; |
| | | case "mcp":response.set(1,filePath); |
| | | case "mcp": |
| | | TestDataInfo testDataInfoMcp=testDataInfoService.readFileData(filePath); |
| | | response.set(1,testDataInfoMcp,filePath); |
| | | break; |
| | | case "mch":response.set(1,filePath); |
| | | break; |
| | | case "mch":TestDataInfo testDataInfoMch=testDataInfoService.readFileData(filePath); |
| | | response.set(1,testDataInfoMch,filePath); |
| | | break; |
| | | default:response.set(1,false,filePath); |
| | | } |
| | | |