|
|
@ -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) |
|
|
|
@RequestMapping(value="uploadHead",method = RequestMethod.POST) |
|
|
|
@ResponseBody |
|
|
|
@ResponseBody |
|
|
|
@ApiOperation(value = "头像上传") |
|
|
|
@ApiOperation(value = "头像上传") |
|
|
|