|
@@ -90,33 +90,33 @@ public class CourseChapterSectionController extends BaseController {
|
|
/**
|
|
/**
|
|
* 新增章与节关系
|
|
* 新增章与节关系
|
|
*/
|
|
*/
|
|
- @ApiOperation("新增章与节关系")
|
|
|
|
|
|
+ /*@ApiOperation("新增章与节关系")
|
|
@PreAuthorize("@ss.hasPermi('system:section:add')")
|
|
@PreAuthorize("@ss.hasPermi('system:section:add')")
|
|
@Log(title = "章与节关系", businessType = BusinessType.INSERT)
|
|
@Log(title = "章与节关系", businessType = BusinessType.INSERT)
|
|
@PostMapping()
|
|
@PostMapping()
|
|
public AjaxResult<Void> add(@RequestBody CourseChapterSectionAddBo bo) {
|
|
public AjaxResult<Void> add(@RequestBody CourseChapterSectionAddBo bo) {
|
|
return toAjax(iCourseChapterSectionService.insertByAddBo(bo) ? 1 : 0);
|
|
return toAjax(iCourseChapterSectionService.insertByAddBo(bo) ? 1 : 0);
|
|
- }
|
|
|
|
|
|
+ }*/
|
|
|
|
|
|
/**
|
|
/**
|
|
* 修改章与节关系
|
|
* 修改章与节关系
|
|
*/
|
|
*/
|
|
- @ApiOperation("修改章与节关系")
|
|
|
|
|
|
+ /* @ApiOperation("修改章与节关系")
|
|
@PreAuthorize("@ss.hasPermi('system:section:edit')")
|
|
@PreAuthorize("@ss.hasPermi('system:section:edit')")
|
|
@Log(title = "章与节关系", businessType = BusinessType.UPDATE)
|
|
@Log(title = "章与节关系", businessType = BusinessType.UPDATE)
|
|
@PostMapping("/edit")
|
|
@PostMapping("/edit")
|
|
public AjaxResult<Void> edit(@RequestBody CourseChapterSectionEditBo bo) {
|
|
public AjaxResult<Void> edit(@RequestBody CourseChapterSectionEditBo bo) {
|
|
return toAjax(iCourseChapterSectionService.updateByEditBo(bo) ? 1 : 0);
|
|
return toAjax(iCourseChapterSectionService.updateByEditBo(bo) ? 1 : 0);
|
|
- }
|
|
|
|
|
|
+ }*/
|
|
|
|
|
|
/**
|
|
/**
|
|
* 删除章与节关系
|
|
* 删除章与节关系
|
|
*/
|
|
*/
|
|
- @ApiOperation("删除章与节关系")
|
|
|
|
|
|
+ /* @ApiOperation("删除章与节关系")
|
|
@PreAuthorize("@ss.hasPermi('system:section:remove')")
|
|
@PreAuthorize("@ss.hasPermi('system:section:remove')")
|
|
@Log(title = "章与节关系" , businessType = BusinessType.DELETE)
|
|
@Log(title = "章与节关系" , businessType = BusinessType.DELETE)
|
|
@PostMapping("/del/{ids}")
|
|
@PostMapping("/del/{ids}")
|
|
public AjaxResult<Void> remove(@PathVariable Long[] ids) {
|
|
public AjaxResult<Void> remove(@PathVariable Long[] ids) {
|
|
return toAjax(iCourseChapterSectionService.deleteWithValidByIds(Arrays.asList(ids), true) ? 1 : 0);
|
|
return toAjax(iCourseChapterSectionService.deleteWithValidByIds(Arrays.asList(ids), true) ? 1 : 0);
|
|
- }
|
|
|
|
|
|
+ }*/
|
|
}
|
|
}
|