| | |
| | | import org.springblade.modules.system.excel.*; |
| | | import org.springblade.modules.system.node.TreeNode; |
| | | import org.springblade.modules.system.service.*; |
| | | import org.springblade.modules.system.vo.UserInfoDetail; |
| | | import org.springblade.modules.system.vo.UserVO; |
| | | import org.springblade.modules.system.wrapper.UserWrapper; |
| | | import org.springblade.modules.training.entity.TrainingRegistration; |
| | |
| | | |
| | | //返回 |
| | | return R.success("成功"); |
| | | } |
| | | |
| | | /** |
| | | * 微信注册 |
| | | * @param user |
| | | * @return |
| | | */ |
| | | @PostMapping("/wxRegister") |
| | | public R wxRegister(User user){ |
| | | //密码加密 |
| | | if (Func.isNotEmpty(user.getPassword())) { |
| | | user.setPassword(DigestUtil.encrypt(user.getPassword())); |
| | | } |
| | | |
| | | Boolean result = userService.wxRegister(user); |
| | | return R.status(result); |
| | | } |
| | | |
| | | /** |
| | |
| | | public R dataHandler() { |
| | | return R.data(userService.dataHandler()); |
| | | } |
| | | |
| | | |
| | | //获取用户表和用户详情表的信息 |
| | | @GetMapping("/getUserInfoDetail") |
| | | public R getUserInfoDetail(String id){ |
| | | UserInfoDetail userInfoDetail = userService.getUserInfoDetail(id); |
| | | return R.data(userInfoDetail); |
| | | } |
| | | |
| | | } |