|
@@ -54,6 +54,15 @@ public class CourseModuleChapterController extends BaseController {
|
|
|
return getDataTable(list);
|
|
|
}
|
|
|
|
|
|
+ @ApiOperation("查询模块与章关系列表")
|
|
|
+ @PreAuthorize("@ss.hasPermi('system:chapter:list')")
|
|
|
+ @GetMapping("/allList")
|
|
|
+ public TableDataInfo<CourseModuleChapterVo> all_list(CourseModuleChapterQueryBo bo) {
|
|
|
+ startPage();
|
|
|
+ List<CourseModuleChapterVo> list = iCourseModuleChapterService.queryList(bo);
|
|
|
+ return getDataTable(list);
|
|
|
+ }
|
|
|
+
|
|
|
/**
|
|
|
* 导出模块与章关系列表
|
|
|
*/
|
|
@@ -70,43 +79,43 @@ public class CourseModuleChapterController extends BaseController {
|
|
|
/**
|
|
|
* 获取模块与章关系详细信息
|
|
|
*/
|
|
|
- @ApiOperation("获取模块与章关系详细信息")
|
|
|
+ /* @ApiOperation("获取模块与章关系详细信息")
|
|
|
@PreAuthorize("@ss.hasPermi('system:chapter:query')")
|
|
|
@GetMapping("/{id}")
|
|
|
public AjaxResult<CourseModuleChapterVo> getInfo(@PathVariable("id" ) Long id) {
|
|
|
return AjaxResult.success(iCourseModuleChapterService.queryById(id));
|
|
|
- }
|
|
|
+ }*/
|
|
|
|
|
|
/**
|
|
|
* 新增模块与章关系
|
|
|
*/
|
|
|
- @ApiOperation("新增模块与章关系")
|
|
|
+ /*@ApiOperation("新增模块与章关系")
|
|
|
@PreAuthorize("@ss.hasPermi('system:chapter:add')")
|
|
|
@Log(title = "模块与章关系", businessType = BusinessType.INSERT)
|
|
|
@PostMapping()
|
|
|
public AjaxResult<Void> add(@RequestBody CourseModuleChapterAddBo bo) {
|
|
|
return toAjax(iCourseModuleChapterService.insertByAddBo(bo) ? 1 : 0);
|
|
|
- }
|
|
|
+ }*/
|
|
|
|
|
|
/**
|
|
|
* 修改模块与章关系
|
|
|
*/
|
|
|
- @ApiOperation("修改模块与章关系")
|
|
|
+ /* @ApiOperation("修改模块与章关系")
|
|
|
@PreAuthorize("@ss.hasPermi('system:chapter:edit')")
|
|
|
@Log(title = "模块与章关系", businessType = BusinessType.UPDATE)
|
|
|
@PostMapping("/edit")
|
|
|
public AjaxResult<Void> edit(@RequestBody CourseModuleChapterEditBo bo) {
|
|
|
return toAjax(iCourseModuleChapterService.updateByEditBo(bo) ? 1 : 0);
|
|
|
- }
|
|
|
+ }*/
|
|
|
|
|
|
/**
|
|
|
* 删除模块与章关系
|
|
|
*/
|
|
|
- @ApiOperation("删除模块与章关系")
|
|
|
+ /* @ApiOperation("删除模块与章关系")
|
|
|
@PreAuthorize("@ss.hasPermi('system:chapter:remove')")
|
|
|
@Log(title = "模块与章关系" , businessType = BusinessType.DELETE)
|
|
|
@PostMapping("/del/{ids}")
|
|
|
public AjaxResult<Void> remove(@PathVariable Long[] ids) {
|
|
|
return toAjax(iCourseModuleChapterService.deleteWithValidByIds(Arrays.asList(ids), true) ? 1 : 0);
|
|
|
- }
|
|
|
+ }*/
|
|
|
}
|