|
@@ -9,6 +9,8 @@ import com.zhongzheng.modules.course.bo.CourseMenuQueryBo;
|
|
import com.zhongzheng.modules.course.vo.CourseUserMenuVo;
|
|
import com.zhongzheng.modules.course.vo.CourseUserMenuVo;
|
|
import com.zhongzheng.modules.grade.domain.UserPeriodStatus;
|
|
import com.zhongzheng.modules.grade.domain.UserPeriodStatus;
|
|
import com.zhongzheng.modules.grade.vo.ClassPeriodVo;
|
|
import com.zhongzheng.modules.grade.vo.ClassPeriodVo;
|
|
|
|
+import com.zhongzheng.modules.polyv.bo.PolyvLiveQueryBo;
|
|
|
|
+import com.zhongzheng.modules.polyv.service.IPolyvLiveService;
|
|
import com.zhongzheng.modules.user.bo.UserStudyRecordAddBo;
|
|
import com.zhongzheng.modules.user.bo.UserStudyRecordAddBo;
|
|
import com.zhongzheng.modules.user.bo.UserStudyRecordEditBo;
|
|
import com.zhongzheng.modules.user.bo.UserStudyRecordEditBo;
|
|
import com.zhongzheng.modules.user.bo.UserStudyRecordQueryBo;
|
|
import com.zhongzheng.modules.user.bo.UserStudyRecordQueryBo;
|
|
@@ -18,6 +20,7 @@ import com.zhongzheng.modules.user.service.IUserStudyRecordService;
|
|
import com.zhongzheng.modules.user.vo.SectionStudyRecordVo;
|
|
import com.zhongzheng.modules.user.vo.SectionStudyRecordVo;
|
|
import com.zhongzheng.modules.user.vo.UserStudyRecordVo;
|
|
import com.zhongzheng.modules.user.vo.UserStudyRecordVo;
|
|
import lombok.RequiredArgsConstructor;
|
|
import lombok.RequiredArgsConstructor;
|
|
|
|
+import net.polyv.live.v1.entity.channel.operate.LiveChannelBasicInfoResponse;
|
|
import org.springframework.security.access.prepost.PreAuthorize;
|
|
import org.springframework.security.access.prepost.PreAuthorize;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
import org.springframework.web.bind.annotation.GetMapping;
|
|
import org.springframework.web.bind.annotation.GetMapping;
|
|
@@ -53,6 +56,9 @@ public class UserStudyRecordController extends BaseController {
|
|
|
|
|
|
private final WxTokenService wxTokenService;
|
|
private final WxTokenService wxTokenService;
|
|
|
|
|
|
|
|
+ @Autowired
|
|
|
|
+ private IPolyvLiveService iPolyvLiveService;
|
|
|
|
+
|
|
/**
|
|
/**
|
|
* 查询用户学习记录列表
|
|
* 查询用户学习记录列表
|
|
*/
|
|
*/
|
|
@@ -143,6 +149,12 @@ public class UserStudyRecordController extends BaseController {
|
|
return AjaxResult.success(iUserStudyRecordService.getLastLive(bo));
|
|
return AjaxResult.success(iUserStudyRecordService.getLastLive(bo));
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ @ApiOperation("查询保利威直播间的播放状态")
|
|
|
|
+ @GetMapping("/getChannelBasicInfo")
|
|
|
|
+ public AjaxResult<LiveChannelBasicInfoResponse> getChannelBasicInfo(PolyvLiveQueryBo bo) throws Exception {
|
|
|
|
+ return AjaxResult.success(iPolyvLiveService.GetChannelBasicInfo(bo));
|
|
|
|
+ }
|
|
|
|
+
|
|
@ApiOperation("查询用户最后一次看的直播节的信息")
|
|
@ApiOperation("查询用户最后一次看的直播节的信息")
|
|
@GetMapping("/queryLiveLast")
|
|
@GetMapping("/queryLiveLast")
|
|
public AjaxResult<UserStudyRecordVo> queryLiveLast(UserStudyRecordQueryBo bo) throws Exception {
|
|
public AjaxResult<UserStudyRecordVo> queryLiveLast(UserStudyRecordQueryBo bo) throws Exception {
|