kongzy
2024-06-26 daf7acb4f107a427e4a83ba1eb26e5e6012cbdaf
exam-admin/src/main/java/com/gkhy/exam/admin/system/SysDictTypeController.java
@@ -1,6 +1,7 @@
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;
@@ -33,6 +34,7 @@
        return CommonResult.success(dictTypeService.selectDictTypeById(dictId));
    }
    @RepeatSubmit
    @PreAuthorize("hasAnyAuthority('train:exam:system')")
    @Log(title = "字典类型", businessType = BusinessType.INSERT)
    @ApiOperation(value = "新增字典类型")
@@ -41,6 +43,7 @@
        return CommonResult.success(dictTypeService.insertDictType(dictType));
    }
    @RepeatSubmit
    @PreAuthorize("hasAnyAuthority('train:exam:system')")
    @Log(title = "字典类型", businessType = BusinessType.UPDATE)
    @ApiOperation(value = "编辑字典类型")
@@ -49,6 +52,7 @@
        return CommonResult.success(dictTypeService.updateDictType(dictType));
    }
    @RepeatSubmit
    @PreAuthorize("hasAnyAuthority('train:exam:system')")
    @Log(title = "字典类型", businessType = BusinessType.DELETE)
    @ApiOperation(value = "删除字典类型")
@@ -58,6 +62,7 @@
        return CommonResult.success();
    }
    @RepeatSubmit
    @Log(title = "字典类型", businessType = BusinessType.CLEAN)
    @ApiOperation(value = "刷新缓存")
    @DeleteMapping("/refreshCache")