|
@@ -6,6 +6,8 @@ import java.util.Arrays;
|
|
|
import com.zhongzheng.modules.course.bo.CourseSectionAddBo;
|
|
|
import com.zhongzheng.modules.course.bo.CourseSectionEditBo;
|
|
|
import com.zhongzheng.modules.course.bo.CourseSectionQueryBo;
|
|
|
+import com.zhongzheng.modules.course.domain.CourseSectionBusiness;
|
|
|
+import com.zhongzheng.modules.course.service.ICourseSectionBusinessService;
|
|
|
import com.zhongzheng.modules.course.service.ICourseSectionService;
|
|
|
import com.zhongzheng.modules.course.vo.CourseSectionVo;
|
|
|
import lombok.RequiredArgsConstructor;
|
|
@@ -37,11 +39,13 @@ import io.swagger.annotations.ApiOperation;
|
|
|
@Api(value = "课程小节控制器", tags = {"课程小节管理"})
|
|
|
@RequiredArgsConstructor(onConstructor_ = @Autowired)
|
|
|
@RestController
|
|
|
-@RequestMapping("/system/section")
|
|
|
+@RequestMapping("/course/section")
|
|
|
public class CourseSectionController extends BaseController {
|
|
|
|
|
|
private final ICourseSectionService iCourseSectionService;
|
|
|
|
|
|
+ private final ICourseSectionBusinessService iCourseSectionBusinessService;
|
|
|
+
|
|
|
/**
|
|
|
* 查询课程小节列表
|
|
|
*/
|
|
@@ -109,4 +113,15 @@ public class CourseSectionController extends BaseController {
|
|
|
public AjaxResult<Void> remove(@PathVariable Long[] sectionIds) {
|
|
|
return toAjax(iCourseSectionService.deleteWithValidByIds(Arrays.asList(sectionIds), true) ? 1 : 0);
|
|
|
}*/
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 获取课程小节详细信息
|
|
|
+ */
|
|
|
+ @ApiOperation("获取课程小节业务层次列表")
|
|
|
+ @PreAuthorize("@ss.hasPermi('system:section:query')")
|
|
|
+ @GetMapping("/business/{sectionId}")
|
|
|
+ public AjaxResult<List<CourseSectionBusiness>> getBusinessList(@PathVariable("sectionId" ) Long sectionId) {
|
|
|
+ List<CourseSectionBusiness> list = iCourseSectionBusinessService.getListById(sectionId);
|
|
|
+ return AjaxResult.success(list);
|
|
|
+ }
|
|
|
}
|