提交代码
This commit is contained in:
@@ -0,0 +1,25 @@
|
||||
using HardwareControl.Core.SystemSetting;
|
||||
|
||||
namespace HardwareControl.Core.HardwareServiceImpl.HardwareService
|
||||
{
|
||||
/// <summary>
|
||||
/// 系统参数配置服务:对上层提供增删改查能力,屏蔽本地存储细节。
|
||||
/// </summary>
|
||||
public interface ISystemConfigService
|
||||
{
|
||||
/// <summary>读取全部配置,可按关键字过滤(分类、名称、值、描述)。</summary>
|
||||
IReadOnlyList<SystemConfig> GetAll(string? keyword = null);
|
||||
|
||||
/// <summary>按主键读取单条配置;不存在时返回 null。</summary>
|
||||
SystemConfig? GetById(int id);
|
||||
|
||||
/// <summary>新增配置,返回带主键的实体。</summary>
|
||||
SystemConfig Create(SystemConfig config);
|
||||
|
||||
/// <summary>更新配置;主键不存在时抛出 <see cref="HardwareException"/>。</summary>
|
||||
SystemConfig Update(SystemConfig config);
|
||||
|
||||
/// <summary>删除配置;返回是否成功删除。</summary>
|
||||
bool Delete(int id);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user