mirror of https://gitee.com/stylefeng/roses
【7.3.0】更新配置刷新的回调,刷新主题缓存信息
parent
511ac5680c
commit
8076ceae65
|
@ -12,6 +12,7 @@ import cn.stylefeng.roses.kernel.file.api.FileInfoApi;
|
||||||
import cn.stylefeng.roses.kernel.file.api.pojo.AntdvFileInfo;
|
import cn.stylefeng.roses.kernel.file.api.pojo.AntdvFileInfo;
|
||||||
import cn.stylefeng.roses.kernel.file.api.pojo.request.SysFileInfoRequest;
|
import cn.stylefeng.roses.kernel.file.api.pojo.request.SysFileInfoRequest;
|
||||||
import cn.stylefeng.roses.kernel.file.modular.service.SysFileInfoService;
|
import cn.stylefeng.roses.kernel.file.modular.service.SysFileInfoService;
|
||||||
|
import cn.stylefeng.roses.kernel.rule.callback.ConfigUpdateCallback;
|
||||||
import cn.stylefeng.roses.kernel.rule.enums.YesOrNotEnum;
|
import cn.stylefeng.roses.kernel.rule.enums.YesOrNotEnum;
|
||||||
import cn.stylefeng.roses.kernel.system.api.ThemeServiceApi;
|
import cn.stylefeng.roses.kernel.system.api.ThemeServiceApi;
|
||||||
import cn.stylefeng.roses.kernel.system.api.constants.SystemConstants;
|
import cn.stylefeng.roses.kernel.system.api.constants.SystemConstants;
|
||||||
|
@ -56,7 +57,7 @@ import java.util.stream.Collectors;
|
||||||
*/
|
*/
|
||||||
@Service
|
@Service
|
||||||
@Slf4j
|
@Slf4j
|
||||||
public class SysThemeServiceImpl extends ServiceImpl<SysThemeMapper, SysTheme> implements SysThemeService, ThemeServiceApi {
|
public class SysThemeServiceImpl extends ServiceImpl<SysThemeMapper, SysTheme> implements SysThemeService, ThemeServiceApi, ConfigUpdateCallback {
|
||||||
|
|
||||||
@Resource
|
@Resource
|
||||||
private SysThemeTemplateService sysThemeTemplateService;
|
private SysThemeTemplateService sysThemeTemplateService;
|
||||||
|
@ -251,6 +252,11 @@ public class SysThemeServiceImpl extends ServiceImpl<SysThemeMapper, SysTheme> i
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void configUpdate(String code, String value) {
|
||||||
|
clearThemeCache();
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 查询单个系统主题
|
* 查询单个系统主题
|
||||||
*
|
*
|
||||||
|
|
Loading…
Reference in New Issue