feat: 新增 GET /api/v1/profile 用户信息查询接口,支持前端凭据查询当前用户

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
AskaEthandClaude Opus 4.7 committed 2026-05-24 14:00:35 +08:00
1 parent aab8e47d3e
commit 83e94d9e97
3 files changed
+104 -2

No files matched your search

@@ -71,6 +71,9 @@ func Setup(r *gin.Engine, hub *ws.Hub, cfg *config.Config, sessionStore *store.S
// Token刷新
protected.POST("/auth/refresh", authHandler.RefreshToken)
// 当前用户信息
protected.GET("/profile", authHandler.GetProfile)
// 会话管理
sessions := protected.Group("/sessions")
{