using JetBrains.Annotations; using Volo.Abp.Settings; namespace NPin.Framework.SettingManagement.Domain.Provider; public interface ISettingManagementProvider { string Name { get; } /// /// 获取配置项 /// /// /// /// Task GetOrNullAsync(SettingDefinition setting, string? providerKey); /// /// 通过前缀获取配置列表 /// /// /// /// Task> GetByPrefixAsync(string prefix, string? providerKey); /// /// 设置配置数据 /// /// /// /// /// Task SetAsync(SettingDefinition setting, string value, string? providerKey); /// /// 清除配置项 /// /// /// /// Task ClearAsync(SettingDefinition setting, string? providerKey); }