| | |
| | | appUserService.updateById(appUser); |
| | | return R.ok(); |
| | | } |
| | | // @ApiOperation(value = "个人中心信息", tags = {"小程序-个人中心"}) |
| | | // @PostMapping(value = "/user/info") |
| | | // public R info() { |
| | | // Long userId = 1L; |
| | | // TAppUser byId = appUserService.getById(userId); |
| | | // |
| | | // |
| | | // } |
| | | |
| | | |
| | | @ApiOperation(value = "赠送会员", tags = {"用户管理-用户列表"}) |
| | |
| | | |
| | | int plusDay = 0; |
| | | if (giveVipDto.getType() == 1) { |
| | | plusDay = 31; |
| | | plusDay = 1; |
| | | } else if (giveVipDto.getType() == 2) { |
| | | plusDay = 93; |
| | | plusDay = 3; |
| | | } else if (giveVipDto.getType() == 3) { |
| | | plusDay = 365; |
| | | plusDay = 12; |
| | | } |
| | | //增加vipDetail |
| | | giveVipUtil.sendVip(nowUser, giveVipDto.getVipId(),plusDay); |