| | |
| | | |
| | | |
| | | 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.SysCategory; |
| | |
| | | return CommonResult.success(categoryService.selectCategoryById(categoryId)); |
| | | } |
| | | |
| | | @RepeatSubmit |
| | | @Log(title = "课程分类管理", businessType = BusinessType.INSERT) |
| | | @ApiOperation(value = "新增课程分类") |
| | | @PostMapping |
| | |
| | | return CommonResult.success(categoryService.insertCategory(category)); |
| | | } |
| | | |
| | | @RepeatSubmit |
| | | @Log(title = "课程分类管理", businessType = BusinessType.UPDATE) |
| | | @ApiOperation(value = "编辑课程分类") |
| | | @PutMapping |
| | |
| | | return CommonResult.success(categoryService.updateCategory(category)); |
| | | } |
| | | |
| | | @RepeatSubmit |
| | | @Log(title = "课程分类管理", businessType = BusinessType.UPDATE) |
| | | @ApiOperation(value = "删除课程分类") |
| | | @DeleteMapping(value = { "/{categoryId}" }) |