| | |
| | | study.setPair(Constants.BURDEN_ONE); |
| | | userStudyService.save(study); |
| | | } |
| | | map.put("lookVideo", tUser1.getLookVideo()==null?0:tUser1.getLookVideo()); |
| | | return R.ok(map); |
| | | } |
| | | |
| | |
| | | } |
| | | return R.ok(byId); |
| | | } |
| | | @PostMapping("/lookVideo") |
| | | @ApiOperation(value = "看完操作视频调用", tags = {"家长端-登录"}) |
| | | public R<TUser> lookVideo() { |
| | | LoginUserParent loginUserStudy = tokenService.getLoginUser1(); |
| | | if (null == loginUserStudy) { |
| | | return R.tokenError("登录失效!"); |
| | | } |
| | | TUser byId = userService.getById(loginUserStudy.getUserid()); |
| | | byId.setLookVideo(1); |
| | | userService.updateById(byId); |
| | | return R.ok(); |
| | | } |
| | | |
| | | @PostMapping("/deleteUser") |
| | | @ApiOperation(value = "注销当前帐号", tags = {"家长端-个人中心"}) |