first commit

This commit is contained in:
2026-09-11 01:47:20 +08:00
commit 303207d3cc
74 changed files with 8348 additions and 0 deletions
+8
View File
@@ -0,0 +1,8 @@
package redismodel
// 认证模块:管理员 token 会话的 Redis key。
const (
KeyAuthAccess = RedisPrefix + "auth:access:%s" // access_token -> admin_id(String)
KeyAuthRefresh = RedisPrefix + "auth:refresh:%s" // refresh_token -> admin_id(String)
KeyAuthUserTokens = RedisPrefix + "auth:admin:tokens:%d" // admin_id -> token 集合(Set,支持多端登录)
)