From d2a5e511df47d2e3f5577c201eac3d8e76d17dd8 Mon Sep 17 00:00:00 2001 From: lyfO_o <764716047@qq.com> Date: 星期五, 01 七月 2022 19:17:38 +0800 Subject: [PATCH] 调整 --- 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