|
@@ -2,6 +2,8 @@ package com.yonge.cooleshow.student.controller;
|
|
|
|
|
|
import com.yonge.cooleshow.biz.dal.dto.CheckCourseTimeDto;
|
|
|
import com.yonge.cooleshow.biz.dal.entity.CourseTimeEntity;
|
|
|
+import com.yonge.cooleshow.biz.dal.enums.YesOrNoEnum;
|
|
|
+import com.yonge.cooleshow.biz.dal.service.AppVersionInfoService;
|
|
|
import com.yonge.cooleshow.biz.dal.service.CourseGroupService;
|
|
|
import com.yonge.cooleshow.biz.dal.vo.CourseGroupVo;
|
|
|
import com.yonge.cooleshow.biz.dal.vo.LiveCourseInfoVo;
|
|
@@ -9,6 +11,7 @@ import com.yonge.cooleshow.common.controller.BaseController;
|
|
|
import com.yonge.cooleshow.common.entity.HttpResponseResult;
|
|
|
import com.yonge.toolset.base.page.PageInfo;
|
|
|
import io.swagger.annotations.*;
|
|
|
+import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.web.bind.annotation.*;
|
|
|
|
|
|
import javax.annotation.Resource;
|
|
@@ -31,6 +34,9 @@ public class StudentCourseGroupController extends BaseController {
|
|
|
@Resource
|
|
|
private CourseGroupService courseGroupService;
|
|
|
|
|
|
+ @Autowired
|
|
|
+ private AppVersionInfoService appVersionInfoService;
|
|
|
+
|
|
|
@ApiOperation("直播课详情")
|
|
|
@GetMapping("/queryLiveCourseInfo")
|
|
|
public HttpResponseResult<LiveCourseInfoVo> queryLiveCourseInfo(@ApiParam(value = "课程组id", required = true) @RequestParam(value = "groupId") Long groupId) {
|
|
@@ -43,11 +49,18 @@ public class StudentCourseGroupController extends BaseController {
|
|
|
@ApiImplicitParam(name = "groupStatus", dataType = "String", value = "课程组状态 ING(进行中) NOT_SALE(未开售,未上架) APPLY(报名中,销售中) COMPLETE(已完成)"),
|
|
|
@ApiImplicitParam(name = "page", dataType = "Integer", value = "页数"),
|
|
|
@ApiImplicitParam(name = "rows", dataType = "Integer", value = "每页数量"),
|
|
|
+ @ApiImplicitParam(name = "version", dataType = "String", value = "版本"),
|
|
|
+ @ApiImplicitParam(name = "platform", dataType = "Integer", value = "平台"),
|
|
|
})
|
|
|
@ApiOperation("分页查询直播课课程组列表")
|
|
|
@PostMapping("/queryPageCourseGroup")
|
|
|
public HttpResponseResult<PageInfo<CourseGroupVo>> queryPageLiveCourseGroup(@RequestBody Map<String, Object> param) {
|
|
|
param.put("os","student");
|
|
|
+ YesOrNoEnum auditVersion = YesOrNoEnum.NO;
|
|
|
+ if (param.get("platform") != null && param.get("version") != null) {
|
|
|
+ auditVersion = appVersionInfoService.getAppAuditVersion(param.get("platform").toString(),param.get("version").toString());
|
|
|
+ }
|
|
|
+ param.put("auditVersion",auditVersion);
|
|
|
return succeed(courseGroupService.queryPageLiveCourseGroup(param));
|
|
|
}
|
|
|
|