wip: 临时提交

This commit is contained in:
Ray.Hao
2025-03-07 21:39:51 +08:00
parent a84f2b9988
commit e01b784a97
13 changed files with 288 additions and 175 deletions

View File

@@ -14,16 +14,21 @@ public interface RedisConstants {
interface RateLimiter {
String IP = "rate_limiter:ip:{}"; // IP限流示例rate_limiter:ip:192.168.1.1
}
/**
* 分布式锁相关键
*/
interface Lock {
String RESUBMIT = "lock:resubmit:{}:{}"; // 防重复提交示例lock:resubmit:methodName:md5Hash
String RESUBMIT = "lock:resubmit:{}:{}"; // 防重复提交示例lock:resubmit:userIdentifier:requestIdentifier
}
/**
* 认证模块
*/
interface Auth {
String ACCESS_TOKEN = "auth:token:access:{}"; // 访问Token
String REFRESH_TOKEN = "auth:token:refresh:{}"; // 刷新Token
String BLACKLIST_TOKEN = "auth:token:blacklist:{}"; // 黑名单Token
}