From 0a8d91d3746674ea0a625f18c55d4fc240198646 Mon Sep 17 00:00:00 2001 From: hu177768073 <177768073@qq.com> Date: Fri, 8 Nov 2024 17:36:02 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9F=A5=E8=AF=A2=E9=82=80=E8=AF=B7=E4=BA=BA?= =?UTF-8?q?=E4=BF=A1=E6=81=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/com/hfkj/controller/UserController.java | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/cweb/src/main/java/com/hfkj/controller/UserController.java b/cweb/src/main/java/com/hfkj/controller/UserController.java index 1aae6f1..fcc7a64 100644 --- a/cweb/src/main/java/com/hfkj/controller/UserController.java +++ b/cweb/src/main/java/com/hfkj/controller/UserController.java @@ -75,6 +75,21 @@ public class UserController { } } + @RequestMapping(value = "/getInviteUser", method = RequestMethod.GET) + @ResponseBody + @ApiOperation(value = "查询邀请人信息") + public ResponseData getInviteUser() { + try { + UserSessionObject userSessionObject = userCenter.getSessionModel(UserSessionObject.class); + if (userSessionObject.getUser().getInviteUserId() != null) { + return ResponseMsgUtil.success(userService.getUser(userSessionObject.getUser().getInviteUserId())); + } + return ResponseMsgUtil.success(null); + } catch (Exception e) { + return ResponseMsgUtil.exception(e); + } + } + @RequestMapping(value="uploadHead",method = RequestMethod.POST) @ResponseBody @ApiOperation(value = "头像上传")