feat: 添加配置管理模块

This commit is contained in:
陈淳
2024-04-01 14:29:33 +08:00
parent c2c92ab196
commit 11443beb22
32 changed files with 1217 additions and 3 deletions

View File

@@ -0,0 +1,15 @@
using System.Collections.Generic;
using System.Threading.Tasks;
using JetBrains.Annotations;
using Volo.Abp.Settings;
namespace Yi.Framework.SettingManagement.Domain;
public interface ISettingManager
{
Task<string> GetOrNullAsync([NotNull] string name, [NotNull] string providerName, [CanBeNull] string providerKey, bool fallback = true);
Task<List<SettingValue>> GetAllAsync([NotNull] string providerName, [CanBeNull] string providerKey, bool fallback = true);
Task SetAsync([NotNull] string name, [CanBeNull] string value, [NotNull] string providerName, [CanBeNull] string providerKey, bool forceToSet = false);
}