Files
iotlcm/openapi/internal/consts/bcache.go
T

13 lines
848 B
Go

// Package consts 定义缓存键模板。
package consts
const (
KeySysAuthToken = "login:%d:%s" // 系统认证token缓存 login:{userId}:{uuid}
KeySysAuthTokenReject = "login_reject:%d:%s:" // 系统认证token拒绝缓存 login_reject:{userId}:{uuid}
KeyApiAuthToken = "api:auth:token:%s" // 接口认证长令牌缓存 api:auth:token:{uuid}
KeyApiAuthActiveToken = "api:auth:active:%d" // 接口认证当前令牌索引 api:auth:active:{deptId}
KeyLoginScanWechat = "login:scan:wechat:%d" // 系统二维码登录缓存 hash Key:SceneId field:tempUserId value:QrcodeCacheModel
KeyUserBindWechat = "user:bind:wechat:%d" // 系统二维码绑定缓存 hash Key:SceneId field:userId value:QrcodeCacheModel
KeyUserMfaCode = "user:mfa:%d" // 用户mfa验证码缓存 user:mfa:{uuid}
)