kongzy
2024-06-26 daf7acb4f107a427e4a83ba1eb26e5e6012cbdaf
exam-admin/src/main/java/com/gkhy/exam/admin/web/ExCourseChapterController.java
@@ -2,6 +2,7 @@
import com.gkhy.exam.common.annotation.Log;
import com.gkhy.exam.common.annotation.RepeatSubmit;
import com.gkhy.exam.common.api.CommonResult;
import com.gkhy.exam.common.enums.BusinessType;
import com.gkhy.exam.system.domain.ExCourseChapter;
@@ -47,7 +48,7 @@
        return CommonResult.success(courseChapterService.selectChapterById(chapterId));
    }
    @RepeatSubmit
    @Log(title = "课程章节管理", businessType = BusinessType.INSERT)
    @ApiOperation(value = "新增章节")
    @PostMapping
@@ -55,6 +56,7 @@
        return CommonResult.success(courseChapterService.insertChapter(courseChapter));
    }
    @RepeatSubmit
    @Log(title = "课程章节管理", businessType = BusinessType.UPDATE)
    @ApiOperation(value = "编辑章节")
    @PutMapping
@@ -62,6 +64,7 @@
        return CommonResult.success(courseChapterService.updateChapter(courseChapter));
    }
    @RepeatSubmit
    @Log(title = "课程章节管理", businessType = BusinessType.UPDATE)
    @ApiOperation(value = "删除章节")
    @DeleteMapping(value = { "/{chapterId}" })