|
@@ -1,5 +1,7 @@
|
|
|
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.service.CourseGroupService;
|
|
|
import com.yonge.cooleshow.biz.dal.vo.CourseGroupVo;
|
|
|
import com.yonge.cooleshow.biz.dal.vo.LiveCourseInfoVo;
|
|
@@ -10,6 +12,7 @@ import io.swagger.annotations.*;
|
|
|
import org.springframework.web.bind.annotation.*;
|
|
|
|
|
|
import javax.annotation.Resource;
|
|
|
+import java.util.List;
|
|
|
import java.util.Map;
|
|
|
|
|
|
/**
|
|
@@ -47,5 +50,18 @@ public class StudentCourseGroupController extends BaseController {
|
|
|
return succeed(courseGroupService.queryPageLiveCourseGroup(param));
|
|
|
}
|
|
|
|
|
|
+ @ApiOperation("创建直播课程组-锁定课程时间-将课时写到缓存当作锁定的时间")
|
|
|
+ @PostMapping("/lockCourseToCache")
|
|
|
+ public HttpResponseResult<List<CourseTimeEntity>> lockCourseToCache(@RequestBody CheckCourseTimeDto dto) {
|
|
|
+ return succeed(courseGroupService.lockCourseToCache(dto));
|
|
|
+ }
|
|
|
+
|
|
|
+ @ApiOperation("创建直播课程组-解除锁定课程时间-删除写到缓存当作锁定的课时")
|
|
|
+ @GetMapping("/unlockCourseToCache")
|
|
|
+ public HttpResponseResult<Object> unlockCourseToCache(@RequestParam("teacherId") Long teacherId) {
|
|
|
+ courseGroupService.unlockCourseToCache(teacherId);
|
|
|
+ return succeed();
|
|
|
+ }
|
|
|
+
|
|
|
}
|
|
|
|