| | |
| | | import com.ruoyi.common.core.domain.R; |
| | | import com.ruoyi.common.core.web.domain.AjaxResult; |
| | | import com.ruoyi.common.core.web.page.PageInfo; |
| | | import com.ruoyi.management.api.feignClient.ManagementClient; |
| | | import com.ruoyi.management.api.model.TPage; |
| | | import com.ruoyi.study.domain.TUser; |
| | | import com.ruoyi.study.dto.AppUserQuery; |
| | | import com.ruoyi.study.dto.UserInfoQuery; |
| | |
| | | |
| | | @Autowired |
| | | private IVipOrderService vipOrderService; |
| | | @Autowired |
| | | private ManagementClient managementClient; |
| | | @PostMapping("/getPage") |
| | | @ApiOperation(value = "获取注意事项", tags = {"家长端-注意事项"}) |
| | | public AjaxResult<TPage> getPage() { |
| | | List<TPage> data = managementClient.getPage1().getData(); |
| | | for (TPage datum : data) { |
| | | if (datum.getType() == 4){ |
| | | return AjaxResult.success(datum); |
| | | } |
| | | } |
| | | return AjaxResult.success(); |
| | | } |
| | | @PostMapping("/updateUserInfo") |
| | | @ApiOperation(value = "修改个人资料", tags = {"家长端-个人中心"}) |
| | | |
| | | public AjaxResult updateUserInfo() { |
| | | |
| | | return AjaxResult.success("修改成功"); |
| | | } |
| | | @PostMapping("/userList") |
| | | @ApiOperation(value = "用户列表", tags = {"用户管理"}) |
| | | @ApiOperation(value = "用户列表", tags = {"管理后台-用户管理"}) |
| | | public R<PageInfo<AppUserVO>> couponReceive(AppUserQuery query) { |
| | | PageInfo<AppUserVO> res = new PageInfo<>(query.getPageNumber(), query.getPageSize()); |
| | | List<AppUserVO> list = userService.listAll(query); |
| | |
| | | } |
| | | |
| | | @PostMapping("/getUserInfo") |
| | | @ApiOperation(value = "查看用户详情", tags = {"用户管理"}) |
| | | @ApiOperation(value = "查看用户详情", tags = {"管理后台-用户管理"}) |
| | | public R<UserInfoVO> getUserInfo(UserInfoQuery dto) { |
| | | SimpleDateFormat format = new SimpleDateFormat("yyyy.MM.dd"); |
| | | UserInfoVO res = new UserInfoVO(); |
| | |
| | | return R.ok(res); |
| | | } |
| | | @PostMapping("/freeze") |
| | | @ApiOperation(value = "冻结/解冻", tags = {"用户管理"}) |
| | | @ApiOperation(value = "冻结/解冻", tags = {"管理后台-用户管理"}) |
| | | public R freeze(Integer id) { |
| | | TUser byId = userService.getById(id); |
| | | if (byId.getState() == 1) { |
| | |
| | | |
| | | |
| | | @PostMapping("/vipOrderList") |
| | | @ApiOperation(value = "列表查询", tags = {"会员管理"}) |
| | | @ApiOperation(value = "列表查询", tags = {"管理后台-会员管理"}) |
| | | public R<PageInfo<VipOrderVO>> vipOrderList(AppUserQuery query) { |
| | | PageInfo<VipOrderVO> res = new PageInfo<>(query.getPageNumber(), query.getPageSize()); |
| | | List<VipOrderVO> list = vipOrderService.listAll(query); |