From 392b41b8ce3c73cbfaf8235fbd8969709eb066cf Mon Sep 17 00:00:00 2001 From: SZH <szh_hello@163.com> Date: 星期三, 29 六月 2022 14:50:30 +0800 Subject: [PATCH] Merge remote-tracking branch 'origin/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