From 66db1d15cf5d4b51a346a42b66f0505bd7f31ce0 Mon Sep 17 00:00:00 2001
From: whycxzp <glperry@163.com>
Date: 星期三, 03 一月 2024 15:23:47 +0800
Subject: [PATCH] 解压

---
 src/main/java/com/whyc/controller/ProductSoftwareController.java |   24 +++++++++++++++++++++++-
 1 files changed, 23 insertions(+), 1 deletions(-)

diff --git a/src/main/java/com/whyc/controller/ProductSoftwareController.java b/src/main/java/com/whyc/controller/ProductSoftwareController.java
index 55b1f84..8a9bb7d 100644
--- a/src/main/java/com/whyc/controller/ProductSoftwareController.java
+++ b/src/main/java/com/whyc/controller/ProductSoftwareController.java
@@ -1,12 +1,34 @@
 package com.whyc.controller;
 
+import com.whyc.dto.Response;
+import com.whyc.service.ProductSoftwareService;
 import io.swagger.annotations.Api;
+import io.swagger.annotations.ApiOperation;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.web.bind.annotation.GetMapping;
 import org.springframework.web.bind.annotation.RequestMapping;
+import org.springframework.web.bind.annotation.RequestParam;
 import org.springframework.web.bind.annotation.RestController;
 
-@Api(tags = "鏂囨。鍘嗗彶淇℃伅绠$悊")
+import javax.servlet.http.HttpServletRequest;
+import javax.servlet.http.HttpServletResponse;
+
+@Api(tags = "杞欢绠$悊")
 @RestController
 @RequestMapping("productSoftware")
 public class ProductSoftwareController {
+    @Autowired
+    private ProductSoftwareService service;
 
+    @ApiOperation(value = "鏌ヨ杞欢鐨勪俊鎭�")
+    @GetMapping("getAllSoftware")
+    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);
+    }
 }

--
Gitblit v1.9.1