Browse Source

修改注解

zhoutg 6 years ago
parent
commit
d33f49c2c1

+ 2 - 3
diagbotman-service/src/main/java/com/diagbot/web/DiagLantoneProductController.java

@@ -14,7 +14,6 @@ import io.swagger.annotations.Api;
 import io.swagger.annotations.ApiOperation;
 import org.springframework.beans.factory.annotation.Autowired;
 import org.springframework.transaction.annotation.Transactional;
-import org.springframework.web.bind.annotation.GetMapping;
 import org.springframework.web.bind.annotation.PostMapping;
 import org.springframework.web.bind.annotation.RequestMapping;
 import org.springframework.web.bind.annotation.RestController;
@@ -50,7 +49,7 @@ public class DiagLantoneProductController {
     @ApiOperation(value = "分页查询查询产品线",
             notes = "name:添加后则根据产品名称查询,选填<br>"+
                     "根据每页显示条数,默认 10,和当前页<br>")
-    @GetMapping("/selectProduct")
+    @PostMapping("/selectProduct")
     @SysLogger("selectProduct")
     public RespDTO<LantoneProduct> selectProduct(Page page , String name){
         IPage<LantoneProduct> pages = lantoneProductFacade.selectProduct(page,name);
@@ -94,7 +93,7 @@ public class DiagLantoneProductController {
     }
 
     @ApiOperation(value = "根据用户id查询当前用户已开通产品")
-    @GetMapping("/opendedProductByCurrentUser")
+    @PostMapping("/opendedProductByCurrentUser")
     @SysLogger("opendedProductByCurrentUser")
     public RespDTO opendedProductByCurrentUser() {
         List<LantoneProductWrapper> list = lantoneProductFacade.opendedProductByCurrentUser();