添加项目文件。

This commit is contained in:
2026-04-25 10:21:34 +08:00
parent c04cb001fb
commit 2e763dd1c3
98 changed files with 89974 additions and 0 deletions

26
Services/IThemeService.cs Normal file
View File

@@ -0,0 +1,26 @@
using System.Threading.Tasks;
namespace AcdiuTools.Services
{
/// <summary>
/// 主题服务接口
/// 负责处理用户主题偏好的获取与持久化
/// </summary>
public interface IThemeService
{
/// <summary>
/// 获取当前用户的主题配置
/// 如果用户未登录或未设置,返回默认主题
/// </summary>
/// <returns>主题名称 (如 "light", "dark")</returns>
Task<string> GetUserThemeAsync();
/// <summary>
/// 保存用户的主题偏好
/// </summary>
/// <param name="userId">用户ID</param>
/// <param name="theme">主题名称</param>
/// <returns>是否保存成功</returns>
Task<bool> SaveUserThemeAsync(string userId, string theme);
}
}