From 6b8312737df00fd3063c8f46cf0a50509a87e069 Mon Sep 17 00:00:00 2001 From: guod Date: Tue, 6 Feb 2018 10:08:12 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8E=A5=E5=8F=A3=E7=BB=9F=E4=B8=80=E8=BF=94?= =?UTF-8?q?=E5=9B=9ER=E6=95=B0=E6=8D=AE=E6=A0=BC=E5=BC=8F=E4=BC=98?= =?UTF-8?q?=E5=8C=96=EF=BC=88=E5=AE=8C=E6=88=90=E4=B8=AD=EF=BC=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/com/github/pig/admin/controller/UserController.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pig-modules/pig-upms-service/src/main/java/com/github/pig/admin/controller/UserController.java b/pig-modules/pig-upms-service/src/main/java/com/github/pig/admin/controller/UserController.java index f4c62ae1..f906b6c0 100644 --- a/pig-modules/pig-upms-service/src/main/java/com/github/pig/admin/controller/UserController.java +++ b/pig-modules/pig-upms-service/src/main/java/com/github/pig/admin/controller/UserController.java @@ -62,8 +62,8 @@ public class UserController extends BaseController { * @return 用户信息 */ @GetMapping("/{id}") - public UserVo user(@PathVariable Integer id) { - return userService.selectUserVoById(id); + public R user(@PathVariable Integer id) { + return new R<>(userService.selectUserVoById(id)); } /**