using AIK.Models.SystemSettings; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace AIK.Service.IService { public interface IConfigurationService { string Environment { get; } ApiSettings ApiSettings { get; } CacheSettings CacheSettings { get; } T GetSection(string sectionName) where T : new(); string GetConnectionString(string name); // 新增方法 Task UpdateLanguageAsync(string languageCode); Task UpdateApiSettingsAsync(Action updateAction); Task UpdateCacheSettingsAsync(Action updateAction); Task SaveConfigurationAsync(); Task ReloadConfigurationAsync(); } }