chore: 清理 JWT 向后兼容残留,移除全部死代码

- 删除 5 个空壳占位文件:auth_token.go/auth_parser.go/repository.go(middleware)/token_service.go/provider.go
- 移除 Config.JWT 字段、JWTConfig 结构体、JWT_SECRET 环境变量绑定
- 移除 config.yaml 中的 jwt 配置段
- 移除 model.User.TokenVersion 字段(session DestroyByUID 替代)
- 移除 service/repository.go 中已废弃的 userTokenStore 接口
This commit is contained in:
2026-05-30 23:42:27 +08:00
parent d9ba1cdf28
commit e3853071d6
9 changed files with 5 additions and 36 deletions

View File

@ -1,3 +0,0 @@
package middleware
// auth_parser.go: JWT 解析逻辑已被服务端 Session 替换,本文件保留占位,后续清理。

View File

@ -1,3 +0,0 @@
package middleware
// auth_token.go: JWT 解析逻辑已被服务端 Session 替换,本文件保留占位,后续清理。

View File

@ -1,3 +0,0 @@
package middleware
// repository.go: JWT tokenVersionStore 接口已随 Session 迁移移除,保留占位,后续清理。