| | |
| | | package com.yeshi.fanli.service.inter.config;
|
| | |
|
| | | import com.yeshi.fanli.entity.system.BusinessSystem;
|
| | | import com.yeshi.fanli.exception.NotExistObjectException;
|
| | |
|
| | | public interface SystemConfigService {
|
| | | |
| | | public String get(String key) throws NotExistObjectException;
|
| | | |
| | | public String get(String key, BusinessSystem system);
|
| | |
|
| | | }
|
| | | package com.yeshi.fanli.service.inter.config; |
| | | |
| | | import com.ks.lib.common.exception.ParamsException; |
| | | import com.yeshi.fanli.entity.SystemEnum; |
| | | import com.yeshi.fanli.entity.config.SystemConfigKeyEnum; |
| | | import com.yeshi.fanli.entity.system.SystemConfig; |
| | | |
| | | /** |
| | | * 系统配置信息(后台可见,不输出给前端) |
| | | */ |
| | | public interface SystemConfigService { |
| | | |
| | | public void save(SystemConfig systemConfig) throws ParamsException; |
| | | |
| | | public SystemConfig getConfig(SystemConfigKeyEnum key, SystemEnum system); |
| | | |
| | | public SystemConfig getConfigCache(SystemConfigKeyEnum key, SystemEnum system); |
| | | |
| | | public String getValueCache(SystemConfigKeyEnum key, SystemEnum system); |
| | | |
| | | } |