查询邀请人信息

master
胡锐 2 weeks ago
parent ef722e04b1
commit 0a8d91d374
  1. 15
      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) @RequestMapping(value="uploadHead",method = RequestMethod.POST)
@ResponseBody @ResponseBody
@ApiOperation(value = "头像上传") @ApiOperation(value = "头像上传")

Loading…
Cancel
Save