feat: 添加配置管理模块
This commit is contained in:
@@ -0,0 +1,26 @@
|
||||
using System.Collections.Generic;
|
||||
using System.Threading.Tasks;
|
||||
using Volo.Abp.DependencyInjection;
|
||||
using Volo.Abp.Settings;
|
||||
|
||||
namespace Yi.Framework.SettingManagement.Domain;
|
||||
|
||||
public class SettingStore : ISettingStore, ITransientDependency
|
||||
{
|
||||
protected ISettingManagementStore ManagementStore { get; }
|
||||
|
||||
public SettingStore(ISettingManagementStore managementStore)
|
||||
{
|
||||
ManagementStore = managementStore;
|
||||
}
|
||||
|
||||
public virtual Task<string> GetOrNullAsync(string name, string providerName, string providerKey)
|
||||
{
|
||||
return ManagementStore.GetOrNullAsync(name, providerName, providerKey);
|
||||
}
|
||||
|
||||
public virtual Task<List<SettingValue>> GetAllAsync(string[] names, string providerName, string providerKey)
|
||||
{
|
||||
return ManagementStore.GetListAsync(names, providerName, providerKey);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user