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,4 +0,0 @@
package service
// provider.go: tokenProvider 接口已移除JWT 被服务端 Session 替换。
// 本文件保留占位,后续清理。

View File

@ -12,11 +12,6 @@ type userAuthStore interface {
ExistsByUsername(username string) (bool, error)
}
// userTokenStore 已废弃JWT 替换为 Session保留占位
type userTokenStore interface {
FindByIDForAuth(userID uint) (*model.User, error)
}
// userAdminStore AdminService 所需的最小仓储接口ISP7 个方法)
type userAdminStore interface {
CountSearchUsers(keyword, role, status string) (int64, error)

View File

@ -1,3 +0,0 @@
package service
// token_service.go: JWT 签发与刷新逻辑已被服务端 Session 替换,本文件保留占位,后续清理。