feat: 增加系统配置

增加系统配置功能
This commit is contained in:
胡少翔
2024-07-30 16:21:10 +08:00
parent 01c1c0807e
commit 5677a6bba0
9 changed files with 166 additions and 21 deletions

View File

@@ -29,6 +29,14 @@ public interface SysConfigService extends IService<SysConfig> {
*/
boolean save(ConfigForm sysConfigForm);
/**
* 获取系统配置表单数据
*
* @param id 系统配置ID
* @return
*/
ConfigForm getConfigFormData(Long id);
/**
* 编辑系统配置
* @param id 系统配置ID
@@ -44,4 +52,18 @@ public interface SysConfigService extends IService<SysConfig> {
*/
boolean delete(Long ids);
/**
* 刷新系统配置缓存
* @return 是否刷新成功
*/
boolean refreshCache();
/**
* 获取系统配置
* @param key 配置key
* @return 配置value
*/
Object getSystemConfig(String key);
}