【7.3.0】更新配置刷新的回调,刷新主题缓存信息

pull/40/MERGE
fengshuonan 2022-10-22 21:45:14 +08:00
parent 511ac5680c
commit 8076ceae65
1 changed files with 7 additions and 1 deletions

View File

@ -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();
}
/** /**
* *
* *