| | |
| | | package com.xinquan.user.controller.client; |
| | | |
| | | |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.xinquan.common.core.domain.R; |
| | | import com.xinquan.common.core.utils.page.PageDTO; |
| | | import com.xinquan.common.core.web.domain.BaseModel; |
| | | import com.xinquan.common.security.service.TokenService; |
| | | import com.xinquan.common.security.utils.SecurityUtils; |
| | | import com.xinquan.course.api.domain.OrderCourseVO; |
| | | import com.xinquan.meditation.api.domain.Meditation; |
| | | import com.xinquan.system.api.domain.AppUser; |
| | | import com.xinquan.system.api.domain.AppUserTree; |
| | | import com.xinquan.system.api.domain.AppUserViewingHistory; |
| | |
| | | private AppUserTreeService appUserTreeService; |
| | | @Resource |
| | | private AppUserService appUserService; |
| | | |
| | | |
| | | @PostMapping("/lookHistory") |
| | | @ApiOperation(value = "观看历史") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "state", value = "1冥想 2课程", dataType = "Integer", required = true), |
| | | @ApiImplicitParam(name = "pageCurr", value = "分页参数,当前页码", dataType = "Integer", required = true), |
| | | @ApiImplicitParam(name = "pageSize", value = "分页参数,每页数量", dataType = "Integer", required = true) |
| | | }) |
| | | public R<PageDTO<OrderCourseVO>> lookHistory(Integer state, Integer pageCurr, Integer pageSize) { |
| | | Long userId = SecurityUtils.getUserId(); |
| | | if (userId == 0)return R.tokenError("登录失效"); |
| | | switch (state){ |
| | | case 1: |
| | | break; |
| | | case 2: |
| | | |
| | | break; |
| | | } |
| | | return R.ok(); |
| | | } |
| | | /** |
| | | * 记录用户观看记录 |
| | | * |