| | |
| | | import com.ruoyi.study.api.vo.VipOrderVO; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.stereotype.Controller; |
| | | import org.springframework.web.bind.annotation.*; |
| | | import org.springframework.web.bind.annotation.PostMapping; |
| | | import org.springframework.web.bind.annotation.RequestBody; |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | | import org.springframework.web.bind.annotation.RestController; |
| | | |
| | | import java.util.List; |
| | | |
| | |
| | | |
| | | @Autowired |
| | | private StudyClient studyClient; |
| | | |
| | | @PostMapping("/userList") |
| | | @ApiOperation(value = "用户列表", tags = {"用户管理"}) |
| | | public AjaxResult<PageInfo<AppUserVO>> couponReceive(AppUserQuery query) { |
| | |
| | | |
| | | return AjaxResult.success(data); |
| | | } |
| | | |
| | | @PostMapping("/freeze") |
| | | @ApiOperation(value = "冻结/解冻", tags = {"用户管理"}) |
| | | public AjaxResult freeze(Integer id) { |
| | |
| | | return AjaxResult.success("解冻成功"); |
| | | } |
| | | } |
| | | |
| | | @PostMapping("/getVipSet") |
| | | @ApiOperation(value = "获取会员设置", tags = {"用户管理"}) |
| | | public AjaxResult<List<TVipSet>> getVipSet() { |
| | | List<TVipSet> list = vipSetService.list(new QueryWrapper<TVipSet>().orderByAsc("amount")); |
| | | return AjaxResult.success(list); |
| | | } |
| | | |
| | | @PostMapping("/getVipSet1") |
| | | @ApiOperation(value = "获取会员设置", tags = {"家长端"}) |
| | | public R<List<TVipSet>> getVipSet1() { |
| | | List<TVipSet> list = vipSetService.list(new QueryWrapper<TVipSet>().orderByAsc("amount")); |
| | | return R.ok(list); |
| | | } |
| | | |
| | | @PostMapping("/setVipSet") |
| | | @ApiOperation(value = "保存会员设置", tags = {"用户管理"}) |
| | | public AjaxResult setVipSet(@RequestBody VipSetVO vo) { |
| | |
| | | } |
| | | return AjaxResult.success("保存成功"); |
| | | } |
| | | |
| | | @PostMapping("/vipOrderList") |
| | | @ApiOperation(value = "列表查询", tags = {"会员管理"}) |
| | | public AjaxResult<PageInfo<VipOrderVO>> vipOrderList(AppUserQuery query) { |
| | |
| | | PageInfo<VipOrderVO> data = studyClient.vipOrderList(query).getData(); |
| | | return AjaxResult.success(data); |
| | | } |
| | | |
| | | @PostMapping("/vipBack") |
| | | @ApiOperation(value = "会员退款", tags = {"会员管理"}) |
| | | public AjaxResult vipOrderList(Integer id) { |
| | | studyClient.vipBack(id); |
| | | return AjaxResult.success(); |
| | | } |
| | | |
| | | } |
| | | |