| | |
| | | |
| | | import com.ks.app.entity.SystemEnum; |
| | | import com.ks.app.entity.config.SystemConfigKey; |
| | | import com.ks.app.entity.config.SystemConfigType; |
| | | import org.yeshi.utils.bean.BeanUtil; |
| | | |
| | | import java.util.List; |
| | | |
| | | import com.ks.app.entity.config.SystemConfig; |
| | | import com.ks.app.service.inter.config.SystemConfigService; |
| | | import com.ks.app.service.query.config.SystemConfigQuery; |
| | |
| | | public interface SystemConfigService { |
| | | |
| | | |
| | | /** |
| | | * @author hxh |
| | | * @description 获取缓存值 |
| | | * @date 11:50 2021/11/16 |
| | | * @param: system |
| | | * @param: key |
| | | * @return java.lang.String |
| | | **/ |
| | | public String getValueCache(SystemEnum system, SystemConfigKey key); |
| | | |
| | | |
| | | /** |
| | | * @return java.lang.String |
| | | * @author hxh |
| | | * @description 获取缓存值 |
| | | * @date 11:50 2021/11/16 |
| | | * @param: system |
| | | * @param: key |
| | | **/ |
| | | public String getValueCache(SystemEnum system, SystemConfigKey key); |
| | | |
| | | |
| | | /** |
| | | * 获取列表 |
| | | * @param systemConfigQuery |
| | | * @param page |
| | | * @param pageSize |
| | | * @return |
| | | */ |
| | | public List<SystemConfig> list(SystemConfigQuery systemConfigQuery, int page, int pageSize) ; |
| | | * @return java.lang.String |
| | | * @author hxh |
| | | * @description 根据Key值获取对象 |
| | | * @date 11:50 2021/11/16 |
| | | * @param: system |
| | | * @param: key |
| | | **/ |
| | | public SystemConfig getByKey(SystemEnum system, SystemConfigKey key); |
| | | |
| | | |
| | | /** |
| | | * |
| | | */ |
| | | public long count(SystemConfigQuery systemConfigQuery) ; |
| | | * 获取列表 |
| | | * |
| | | * @param systemConfigQuery |
| | | * @param page |
| | | * @param pageSize |
| | | * @return |
| | | */ |
| | | public List<SystemConfig> list(SystemConfigQuery systemConfigQuery, int page, int pageSize); |
| | | |
| | | |
| | | /** |
| | | * |
| | | */ |
| | | public SystemConfig get(String id) ; |
| | | * |
| | | */ |
| | | public long count(SystemConfigQuery systemConfigQuery); |
| | | |
| | | |
| | | public List<SystemConfig> listByType(SystemConfigType type); |
| | | |
| | | |
| | | /** |
| | | * |
| | | */ |
| | | public void add(SystemConfig systemConfig) throws Exception; |
| | | |
| | | public void save(SystemConfig config); |
| | | * |
| | | */ |
| | | public SystemConfig get(String id); |
| | | |
| | | /** |
| | | * |
| | | */ |
| | | public void update(SystemConfig systemConfig) ; |
| | | * |
| | | */ |
| | | public void add(SystemConfig systemConfig) throws Exception; |
| | | |
| | | public void save(SystemConfig config); |
| | | |
| | | /** |
| | | * |
| | | */ |
| | | public void delete(List<String> idList) ; |
| | | * |
| | | */ |
| | | public void update(SystemConfig systemConfig); |
| | | |
| | | |
| | | /** |
| | | * |
| | | */ |
| | | public void delete(List<String> idList); |
| | | |
| | | |
| | | } |