From 5a686b969e6e217a0c6ce4f8c694955fde1e81f6 Mon Sep 17 00:00:00 2001
From: lyfO_o <764716047@qq.com>
Date: 星期二, 28 六月 2022 12:19:15 +0800
Subject: [PATCH] up

---
 safePlatfrom-out-web/src/main/java/com/gkhy/safePlatform/accountController/MenuController.java |    6 ++----
 1 files changed, 2 insertions(+), 4 deletions(-)

diff --git a/safePlatfrom-out-web/src/main/java/com/gkhy/safePlatform/accountController/MenuController.java b/safePlatfrom-out-web/src/main/java/com/gkhy/safePlatform/accountController/MenuController.java
index ccc7f7d..6bd9dd2 100644
--- a/safePlatfrom-out-web/src/main/java/com/gkhy/safePlatform/accountController/MenuController.java
+++ b/safePlatfrom-out-web/src/main/java/com/gkhy/safePlatform/accountController/MenuController.java
@@ -27,8 +27,7 @@
     @RequestMapping(value = "/add",method = RequestMethod.POST)
     public ResultVO<String> addMenu(Principal principal, @RequestBody MenuAddRPCReqDTO menuAddDto) {
         String userId = principal.getName();
-        userAccountService.addMenu(Long.valueOf(userId), menuAddDto);
-        return new ResultVO<>(ResultCodes.OK);
+        return userAccountService.addMenu(Long.valueOf(userId), menuAddDto);
     }
 
 
@@ -38,8 +37,7 @@
     @RequestMapping(value = "/mod",method = RequestMethod.POST)
     public ResultVO<String> addMenu(Principal principal, @RequestBody MenuModRPCReqDTO menuModDto) {
         String userId = principal.getName();
-        userAccountService.modMenu(Long.valueOf(userId), menuModDto);
-        return new ResultVO<>(ResultCodes.OK);
+        return userAccountService.modMenu(Long.valueOf(userId), menuModDto);
     }
 
 }

--
Gitblit v1.9.2