| | |
| | | package com.ruoyi.system.service; |
| | | |
| | | import com.ruoyi.common.core.page.IServicePlus; |
| | | import com.ruoyi.common.core.domain.PageQuery; |
| | | import com.ruoyi.common.core.page.TableDataInfo; |
| | | import com.ruoyi.system.domain.SysConfig; |
| | | |
| | |
| | | /** |
| | | * 参数配置 服务层 |
| | | * |
| | | * @author ruoyi |
| | | * @author Lion Li |
| | | */ |
| | | public interface ISysConfigService extends IServicePlus<SysConfig> { |
| | | public interface ISysConfigService { |
| | | |
| | | |
| | | TableDataInfo<SysConfig> selectPageConfigList(SysConfig config); |
| | | TableDataInfo<SysConfig> selectPageConfigList(SysConfig config, PageQuery pageQuery); |
| | | |
| | | /** |
| | | * 查询参数配置信息 |
| | |
| | | * @param configId 参数配置ID |
| | | * @return 参数配置信息 |
| | | */ |
| | | public SysConfig selectConfigById(Long configId); |
| | | SysConfig selectConfigById(Long configId); |
| | | |
| | | /** |
| | | * 根据键名查询参数配置信息 |
| | |
| | | * @param configKey 参数键名 |
| | | * @return 参数键值 |
| | | */ |
| | | public String selectConfigByKey(String configKey); |
| | | String selectConfigByKey(String configKey); |
| | | |
| | | /** |
| | | * 获取验证码开关 |
| | | * |
| | | * @return true开启,false关闭 |
| | | */ |
| | | boolean selectCaptchaOnOff(); |
| | | |
| | | /** |
| | | * 查询参数配置列表 |
| | |
| | | * @param config 参数配置信息 |
| | | * @return 参数配置集合 |
| | | */ |
| | | public List<SysConfig> selectConfigList(SysConfig config); |
| | | List<SysConfig> selectConfigList(SysConfig config); |
| | | |
| | | /** |
| | | * 新增参数配置 |
| | |
| | | * @param config 参数配置信息 |
| | | * @return 结果 |
| | | */ |
| | | public int insertConfig(SysConfig config); |
| | | int insertConfig(SysConfig config); |
| | | |
| | | /** |
| | | * 修改参数配置 |
| | |
| | | * @param config 参数配置信息 |
| | | * @return 结果 |
| | | */ |
| | | public int updateConfig(SysConfig config); |
| | | int updateConfig(SysConfig config); |
| | | |
| | | /** |
| | | * 批量删除参数信息 |
| | | * |
| | | * @param configIds 需要删除的参数ID |
| | | * @return 结果 |
| | | */ |
| | | public int deleteConfigByIds(Long[] configIds); |
| | | void deleteConfigByIds(Long[] configIds); |
| | | |
| | | /** |
| | | * 清空缓存数据 |
| | | * 加载参数缓存数据 |
| | | */ |
| | | public void clearCache(); |
| | | void loadingConfigCache(); |
| | | |
| | | /** |
| | | * 清空参数缓存数据 |
| | | */ |
| | | void clearConfigCache(); |
| | | |
| | | /** |
| | | * 重置参数缓存数据 |
| | | */ |
| | | void resetConfigCache(); |
| | | |
| | | /** |
| | | * 校验参数键名是否唯一 |
| | |
| | | * @param config 参数信息 |
| | | * @return 结果 |
| | | */ |
| | | public String checkConfigKeyUnique(SysConfig config); |
| | | String checkConfigKeyUnique(SysConfig config); |
| | | |
| | | SysConfig getOne(SysConfig config); |
| | | |
| | | } |