whycxzp
2025-04-29 375ef5f888a8bc33d9505fef3922895213d5f8b5
src/main/java/com/whyc/controller/SoftwareController.java
@@ -32,15 +32,14 @@
    /**
     *
     * @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")