lxw
2023-02-17 0a3669ee2ab2aa24cfd5be040daca06ca37b6634
src/main/java/com/whyc/controller/ProductSoftwareController.java
@@ -10,6 +10,9 @@
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
@Api(tags = "软件管理")
@RestController
@RequestMapping("productSoftware")
@@ -22,4 +25,10 @@
    public Response getAllSoftware(@RequestParam(required = false) String parentModel,@RequestParam(required = false) String softwareName,@RequestParam int pageCurr,@RequestParam int pageSize ){
        return service.getAllSoftware(parentModel,softwareName,pageCurr,pageSize);
    }
    @ApiOperation(value = "根据软件名称实现软件下载")
    @GetMapping("downLoadSoftware")
    public void downLoadSoftware(HttpServletRequest req, HttpServletResponse resp,@RequestParam String softwareName){
         service.downLoadSoftware(req,resp,softwareName);
    }
}