mirror of
https://github.com/DrizzleTime/Foxel.git
synced 2026-09-05 07:36:53 +08:00
feat(config): add IsSecret property to Config
This commit is contained in:
@@ -5,19 +5,13 @@ namespace Foxel.Services.Configuration;
|
||||
public interface IConfigService
|
||||
{
|
||||
string this[string key] { get; }
|
||||
|
||||
Task<string?> GetValueAsync(string key);
|
||||
Task<T?> GetValueAsync<T>(string key, T? defaultValue = default);
|
||||
Task<Config?> GetConfigAsync(string key);
|
||||
Task<List<Config>> GetAllConfigsAsync();
|
||||
|
||||
Task<Config> SetConfigAsync(string key, string value, string? description = null);
|
||||
|
||||
Task<bool> DeleteConfigAsync(string key);
|
||||
|
||||
Task<bool> ExistsAsync(string key);
|
||||
|
||||
Task<Dictionary<string, string>> BackupConfigsAsync();
|
||||
|
||||
Task<bool> RestoreConfigsAsync(Dictionary<string, string> configBackup);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user