feat: 添加用户认证模块
- main.go: 初始化 User/Role 模型、UserRepository、AuthService 和 AuthHandler - 添加 /auth/register、/auth/login、/auth/me 路由 - auth_handler.go: 新增 GetCurrentUser 接口获取当前用户信息 - .gitignore: 添加 .bitfun/ 目录忽略 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
3
.gitignore
vendored
3
.gitignore
vendored
@@ -214,3 +214,6 @@ test/
|
||||
hs_err_pid*
|
||||
replay_pid*
|
||||
|
||||
|
||||
# BitFun snapshot data - auto managed
|
||||
.bitfun/
|
||||
|
||||
Reference in New Issue
Block a user