|
@@ -6,6 +6,9 @@ import java.util.Arrays;
|
|
|
import com.zhongzheng.modules.course.bo.CourseModuleAddBo;
|
|
|
import com.zhongzheng.modules.course.bo.CourseModuleEditBo;
|
|
|
import com.zhongzheng.modules.course.bo.CourseModuleQueryBo;
|
|
|
+import com.zhongzheng.modules.course.domain.CourseChapterBusiness;
|
|
|
+import com.zhongzheng.modules.course.domain.CourseModuleBusiness;
|
|
|
+import com.zhongzheng.modules.course.service.ICourseModuleBusinessService;
|
|
|
import com.zhongzheng.modules.course.service.ICourseModuleService;
|
|
|
import com.zhongzheng.modules.course.vo.CourseModuleVo;
|
|
|
import lombok.RequiredArgsConstructor;
|
|
@@ -42,6 +45,8 @@ public class CourseModuleController extends BaseController {
|
|
|
|
|
|
private final ICourseModuleService iCourseModuleService;
|
|
|
|
|
|
+ private final ICourseModuleBusinessService iCourseModuleBusinessService;
|
|
|
+
|
|
|
/**
|
|
|
* 查询课程模块列表
|
|
|
*/
|
|
@@ -109,4 +114,15 @@ public class CourseModuleController extends BaseController {
|
|
|
public AjaxResult<Void> remove(@PathVariable Long[] moduleIds) {
|
|
|
return toAjax(iCourseModuleService.deleteWithValidByIds(Arrays.asList(moduleIds), true) ? 1 : 0);
|
|
|
}*/
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 获取课程小节业务层次列表
|
|
|
+ */
|
|
|
+ @ApiOperation("获取课程模块业务层次列表")
|
|
|
+ @PreAuthorize("@ss.hasPermi('system:section:query')")
|
|
|
+ @GetMapping("/business/{moduleId}")
|
|
|
+ public AjaxResult<List<CourseModuleBusiness>> getBusinessList(@PathVariable("moduleId" ) Long moduleId) {
|
|
|
+ List<CourseModuleBusiness> list = iCourseModuleBusinessService.getListById(moduleId);
|
|
|
+ return AjaxResult.success(list);
|
|
|
+ }
|
|
|
}
|