| | |
| | | return service.zipParse(file,baseProduct); |
| | | } |
| | | |
| | | /** |
| | | * 这个接口是进行产品新增,产品bom新增的接口. |
| | | * 新增方式有很多,有直接从zip解析新增产品,也可以基于原有产品复制进行定制等.需要注意兼容! |
| | | * @param product 产品新增,bom新增,产品版本更新 |
| | | * @return |
| | | * @throws IOException |
| | | */ |
| | | @PostMapping |
| | | @ApiOperation(value = "新增",notes = "解析时返回的绝对路径,需要回传到字段fileUrl") |
| | | public Response add(@RequestBody Product product) throws IOException { |
| | |
| | | public Response getFkProduct(){ |
| | | return service.getFkProduct(); |
| | | } |
| | | |
| | | @ApiOperation(value = "产品对比下拉选中") |
| | | @GetMapping("getCompareProduct") |
| | | public Response getCompareProduct(){ |
| | | return service.getCompareProduct(); |
| | | } |
| | | } |