FengChaoYu 1 mês atrás
pai
commit
ce052dc811

+ 10 - 1
mall-server-api/src/main/java/com/gree/mall/manager/controller/member/UserLevelController.java

@@ -75,10 +75,19 @@ public class UserLevelController {
 
     @PostMapping("/add/user")
     @ApiOperation(value = "添加会员")
-    public ResponseHelper add(
+    public ResponseHelper addUser(
             @ApiParam(value = "object",required = true) @RequestBody UserLevelBean userLevel
     ) throws RemoteServiceException {
         userLevelLogic.addUser(userLevel);
         return ResponseHelper.success();
     }
+
+    @PostMapping("/add/goods")
+    @ApiOperation(value = "添加商品")
+    public ResponseHelper addGoods(
+            @ApiParam(value = "object",required = true) @RequestBody UserLevelBean userLevel
+    ) throws RemoteServiceException {
+        userLevelLogic.addGoods(userLevel);
+        return ResponseHelper.success();
+    }
 }

+ 4 - 0
mall-server-api/src/main/java/com/gree/mall/manager/logic/user/UserLevelLogic.java

@@ -172,4 +172,8 @@ public class UserLevelLogic {
         }
 
     }
+
+    @Transactional
+    public void addGoods(UserLevelBean userLevel) {
+    }
 }