feat: 增强令牌管理与客户端仓库集成

新增 ClientRepository 接口,用于管理客户端相关操作。
更新 Token 模型,加入版本号和过期时间字段,以提升令牌管理能力。
将 ClientRepo 集成到容器中,支持依赖注入。
重构 TokenService,采用 JWT 以增强安全性。
更新 Docker 配置,并清理多个文件中的空白字符。
This commit is contained in:
lan
2025-12-03 14:43:38 +08:00
parent e873c58af9
commit 4824a997dd
12 changed files with 1394 additions and 17 deletions

View File

@@ -12,7 +12,6 @@ var (
// once 确保只初始化一次
once sync.Once
// initError 初始化错误
initError error
)
// Init 初始化JWT服务线程安全只会执行一次
@@ -39,8 +38,3 @@ func MustGetJWTService() *JWTService {
}
return service
}