using HardwareControl.Core.SystemSetting;
namespace HardwareControl.Core.HardwareServiceImpl.HardwareService
{
///
/// 系统参数配置服务:对上层提供增删改查能力,屏蔽本地存储细节。
///
public interface ISystemConfigService
{
/// 读取全部配置,可按关键字过滤(分类、名称、值、描述)。
IReadOnlyList GetAll(string? keyword = null);
/// 按主键读取单条配置;不存在时返回 null。
SystemConfig? GetById(int id);
/// 新增配置,返回带主键的实体。
SystemConfig Create(SystemConfig config);
/// 更新配置;主键不存在时抛出 。
SystemConfig Update(SystemConfig config);
/// 删除配置;返回是否成功删除。
bool Delete(int id);
}
}