From 14821e28286d773ad5ff2c13510e39c5eb117daf Mon Sep 17 00:00:00 2001
From: kongzy <kongzy>
Date: Fri, 05 Jul 2024 13:46:32 +0800
Subject: [PATCH] update
---
exam-admin/src/main/java/com/gkhy/exam/admin/web/ExCourseController.java | 11 +++++++++--
1 files changed, 9 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 eb0ee03..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
@@ -87,7 +87,7 @@
}
@RepeatSubmit
- @Log(title = "课程管理", businessType = BusinessType.UPDATE)
+ @Log(title = "课程管理", businessType = BusinessType.DELETE)
@ApiOperation(value = "删除课程")
@DeleteMapping(value = { "/{courseId}" })
public CommonResult delete(@PathVariable(value = "courseId", required = true) Long courseId){
@@ -102,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