From f8c25d1fab78aa4e0a6bdb10f91e61698af434c4 Mon Sep 17 00:00:00 2001
From: lyfO_o <764716047@qq.com>
Date: Fri, 01 Jul 2022 14:34:19 +0800
Subject: [PATCH] Merge remote-tracking branch 'origin/master' into master
---
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