| | |
| | | /** |
| | | * |
| | | * @param file |
| | | * @param softwareStr 必传序列号,SN编码,版本号 |
| | | * @param id 软件id |
| | | * @return |
| | | * @throws IOException |
| | | */ |
| | | @ApiOperation("上传") |
| | | @PostMapping("upload") |
| | | public Response upload(@RequestParam MultipartFile file,@RequestParam String softwareStr) throws IOException { |
| | | Software software = ActionUtil.getGson().fromJson(softwareStr,Software.class); |
| | | return service.upload(file,software); |
| | | public Response upload(@RequestParam MultipartFile file,@RequestParam int id) throws IOException { |
| | | return service.upload(file,id); |
| | | } |
| | | |
| | | @GetMapping("getPage") |