添加项目文件。
This commit is contained in:
26
Services/IThemeService.cs
Normal file
26
Services/IThemeService.cs
Normal 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);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user