| | |
| | | package com.gkhy.exam.admin.system; |
| | | |
| | | 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.domain.entity.SysDictType; |
| | | import com.gkhy.exam.common.enums.BusinessType; |
| | |
| | | return CommonResult.success(dictTypeService.selectDictTypeById(dictId)); |
| | | } |
| | | |
| | | @RepeatSubmit |
| | | @PreAuthorize("hasAnyAuthority('train:exam:system')") |
| | | @Log(title = "字典类型", businessType = BusinessType.INSERT) |
| | | @ApiOperation(value = "新增字典类型") |
| | |
| | | return CommonResult.success(dictTypeService.insertDictType(dictType)); |
| | | } |
| | | |
| | | @RepeatSubmit |
| | | @PreAuthorize("hasAnyAuthority('train:exam:system')") |
| | | @Log(title = "字典类型", businessType = BusinessType.UPDATE) |
| | | @ApiOperation(value = "编辑字典类型") |
| | |
| | | return CommonResult.success(dictTypeService.updateDictType(dictType)); |
| | | } |
| | | |
| | | @RepeatSubmit |
| | | @PreAuthorize("hasAnyAuthority('train:exam:system')") |
| | | @Log(title = "字典类型", businessType = BusinessType.DELETE) |
| | | @ApiOperation(value = "删除字典类型") |
| | |
| | | return CommonResult.success(); |
| | | } |
| | | |
| | | @RepeatSubmit |
| | | @Log(title = "字典类型", businessType = BusinessType.CLEAN) |
| | | @ApiOperation(value = "刷新缓存") |
| | | @DeleteMapping("/refreshCache") |