chore: 并入 iotlcm-openapi 历史到 openapi/(原提交 3b05d5a)

This commit is contained in:
MiFaZhan
2026-11-02 13:28:02 +08:00
484 changed files with 34732 additions and 0 deletions
+12
View File
@@ -0,0 +1,12 @@
// 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}
)