参数管理支持缓存操作

This commit is contained in:
RuoYi
2020-06-04 17:20:04 +08:00
parent b887f1f946
commit d5dd5b6b7a
10 changed files with 133 additions and 49 deletions

View File

@@ -48,7 +48,7 @@ public class SysConfigController extends BaseController
List<SysConfig> list = configService.selectConfigList(config);
return getDataTable(list);
}
@Log(title = "参数管理", businessType = BusinessType.EXPORT)
@PreAuthorize("@ss.hasPermi('system:config:export')")
@PostMapping("/export")
@@ -120,4 +120,16 @@ public class SysConfigController extends BaseController
{
return toAjax(configService.deleteConfigByIds(configIds));
}
/**
* 清空缓存
*/
@PreAuthorize("@ss.hasPermi('system:config:remove')")
@Log(title = "参数管理", businessType = BusinessType.CLEAN)
@DeleteMapping("/clearCache")
public AjaxResult clearCache()
{
configService.clearCache();
return AjaxResult.success();
}
}