You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gymnasium/src/main/java/com/service/ConfigService.java

40 lines
1.6 KiB

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

package com.service; // 定义包路径为com.service表示该接口属于服务层
import java.util.Map; // 导入Map接口用于参数传递
import com.baomidou.mybatisplus.service.IService; // 导入MyBatis-Plus服务接口
import com.entity.ConfigEntity; // 导入系统配置实体类
import com.utils.PageUtils; // 导入分页工具类
// 系统配置服务接口
//继承MyBatis-Plus的IService接口提供系统配置相关业务方法
// @author yangliyuan
//@date 2019年10月10日 上午9:18:20
public interface ConfigService extends IService<ConfigEntity> {
// 分页查询系统配置信息
//@param params 查询参数Map包含以下常用键值
// - page当前页码从1开始
// - limit每页记录数
// - paramKey配置键模糊查询
// - paramValue配置值模糊查询
// - configType配置类型
// - status状态1-启用0-禁用)
//@return PageUtils分页对象包含
// - list当前页配置数据列表
// - totalCount总记录数
// - pageSize每页条数
// - totalPage总页数
// - currPage当前页码
PageUtils queryPage(Map<String, Object> params);
// 可扩展的业务方法示例:
// String getConfigValueByKey(String paramKey); // 根据配置键获取配置值
// boolean updateConfigByKey(String paramKey, String paramValue); // 根据配置键更新配置值
// Map<String, String> getAllEnabledConfigs(); // 获取所有启用的配置项
// boolean refreshConfigCache(); // 刷新配置缓存
}