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 f906b6c0..f4c62ae1 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 R user(@PathVariable Integer id) { - return new R<>(userService.selectUserVoById(id)); + public UserVo user(@PathVariable Integer id) { + return userService.selectUserVoById(id); } /**