| | |
| | | User user = userService.selectById(getCurrentUser().getId()); |
| | | modelMapper.map(model, user); |
| | | user.setModifyTime(new Date()); |
| | | user.setPassword(user.getPassword() != null ? authenticationService.pwdEncode(user.getPassword()) : null); |
| | | userService.updateByIdFilter(user); |
| | | UserEventLog userEventLog = new UserEventLog(user.getId(), user.getUserName(), user.getRealName(), new Date()); |
| | | userEventLog.setContent(user.getUserName() + " 更新了个人资料"); |
| | |
| | | return RestResponse.ok(); |
| | | } |
| | | |
| | | @RequestMapping(value = "/connect", method = RequestMethod.GET) |
| | | public RestResponse connect() { |
| | | return RestResponse.ok(); |
| | | } |
| | | |
| | | } |