first commit
This commit is contained in:
@@ -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,支持多端登录)
|
||||
)
|
||||
Reference in New Issue
Block a user