|
@@ -59,6 +59,26 @@ public class CourseGroupController extends BaseController {
|
|
|
return succeed(PageUtil.pageInfo(liveCourseGroupVoIPage));
|
|
|
}
|
|
|
|
|
|
+ @ApiOperation(value = "直播课详情")
|
|
|
+ @PostMapping(value="/detail/{courseGroupId}")
|
|
|
+ public HttpResponseResult<LiveCourseGroupVo> detail(@ApiParam(value = "课程组编号ID", required = true)
|
|
|
+ @PathVariable("courseGroupId") Long courseGroupId) {
|
|
|
+ SysUser sysUser = sysUserFeignService.queryUserInfo();
|
|
|
+ if (sysUser == null || sysUser.getId() == null) {
|
|
|
+ return failed("用户信息获取失败");
|
|
|
+ }
|
|
|
+ if (courseGroupId == null) {
|
|
|
+ return failed("课程组id不能为空");
|
|
|
+ }
|
|
|
+
|
|
|
+ LiveCourseGroupVo liveCourseGroupVo = courseGroupService.detail(courseGroupId);
|
|
|
+ if (liveCourseGroupVo == null) {
|
|
|
+ return failed("没找到课程组信息");
|
|
|
+ }
|
|
|
+ return succeed(liveCourseGroupVo);
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
@ApiOperation(value = "直播课购买学员信息", httpMethod="POST", consumes="application/json", produces="application/json")
|
|
|
@PostMapping(value="/live/student", consumes="application/json", produces="application/json")
|
|
|
public HttpResponseResult<PageInfo<LiveCourseGroupStudentVo>> student(@Valid @RequestBody LiveCourseGroupStudentSearch query) {
|