From 14821e28286d773ad5ff2c13510e39c5eb117daf Mon Sep 17 00:00:00 2001 From: kongzy <kongzy> Date: 星期五, 05 七月 2024 13:46:32 +0800 Subject: [PATCH] update --- exam-admin/src/main/java/com/gkhy/exam/admin/web/ExCourseController.java | 16 ++++++++++++++-- 1 files changed, 14 insertions(+), 2 deletions(-) diff --git a/exam-admin/src/main/java/com/gkhy/exam/admin/web/ExCourseController.java b/exam-admin/src/main/java/com/gkhy/exam/admin/web/ExCourseController.java index 0a39f3d..c88e15f 100644 --- a/exam-admin/src/main/java/com/gkhy/exam/admin/web/ExCourseController.java +++ b/exam-admin/src/main/java/com/gkhy/exam/admin/web/ExCourseController.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.ExCourse; @@ -50,6 +51,7 @@ return CommonResult.success(courseService.selectApproveCourseList(course)); } + @RepeatSubmit @ApiOperation(value = "课程审批") @ApiImplicitParams({ @ApiImplicitParam(paramType = "body", name = "id", dataType = "long", required = true, value = "课程id"), @@ -68,6 +70,7 @@ return CommonResult.success(courseService.selectCourseById(courseId)); } + @RepeatSubmit @Log(title = "课程管理", businessType = BusinessType.INSERT) @ApiOperation(value = "新增课程") @PostMapping @@ -75,6 +78,7 @@ return CommonResult.success(courseService.insertCourse(course)); } + @RepeatSubmit @Log(title = "课程管理", businessType = BusinessType.UPDATE) @ApiOperation(value = "编辑课程") @PutMapping @@ -82,7 +86,8 @@ return CommonResult.success(courseService.updateCourse(course)); } - @Log(title = "课程管理", businessType = BusinessType.UPDATE) + @RepeatSubmit + @Log(title = "课程管理", businessType = BusinessType.DELETE) @ApiOperation(value = "删除课程") @DeleteMapping(value = { "/{courseId}" }) public CommonResult delete(@PathVariable(value = "courseId", required = true) Long courseId){ @@ -97,5 +102,12 @@ } - + @RepeatSubmit + @Log(title = "课程管理", businessType = BusinessType.UPDATE) + @ApiOperation(value = "修改课程状态") + @PutMapping(value = "/changeStatus") + public CommonResult changeStatus(@RequestBody ExCourse course){ + courseService.changeStatus(course); + return CommonResult.success(); + } } -- Gitblit v1.9.2