diff --git a/.vscode/settings.json b/.vscode/settings.json
index 1cb80bb..7c24122 100644
--- a/.vscode/settings.json
+++ b/.vscode/settings.json
@@ -1,6 +1,7 @@
{
"chat.tools.terminal.autoApprove": {
"ForEach-Object": true,
- "dotnet list": true
+ "dotnet list": true,
+ "dotnet build": true
}
}
\ No newline at end of file
diff --git a/Avalonia-API/Authentication/ApiAuthEndpointService.cs b/Avalonia-API/Authentication/ApiAuthEndpointService.cs
index a319352..8c97530 100644
--- a/Avalonia-API/Authentication/ApiAuthEndpointService.cs
+++ b/Avalonia-API/Authentication/ApiAuthEndpointService.cs
@@ -8,6 +8,10 @@ using System.Text.Json;
namespace Avalonia_API.Authentication
{
+ ///
+ /// API 鉴权端点服务,实现 ,
+ /// 处理登录、刷新 Token 和登出操作,使用 JWT 与 Refresh Token 机制。
+ ///
public sealed class ApiAuthEndpointService(
AppDataContext db,
JwtTokenService jwtTokenService,
@@ -18,6 +22,12 @@ namespace Avalonia_API.Authentication
PropertyNameCaseInsensitive = true,
};
+ ///
+ /// 处理用户登录请求。根据账号(邮箱或用户名)查找或创建用户,
+ /// 生成 JWT Access Token 和 Refresh Token 并返回。
+ ///
+ /// 服务端点上下文,包含请求体、请求头等信息。
+ /// 包含 AccessToken、RefreshToken 及过期时间的认证响应。
public async Task