gomod引用

This commit is contained in:
2025-12-18 16:46:02 +08:00
parent 7f1f096fa5
commit bdb356f300
5 changed files with 11 additions and 15 deletions

View File

@@ -1,12 +1,5 @@
package consts
// Redis键前缀
const (
AdRequestLimitKeyPrefix = "ad_request_limit:" // 广告请求限流键前缀
RateLimitKeyPrefix = "rate_limit:" // 通用限流键前缀
SessionCacheKeyPrefix = "session_cache:" // 会话缓存键前缀
)
// 广告源状态
const (
AdSourceStatusActive = "active" // 活跃

View File

@@ -1,6 +1,10 @@
package consts
// 广告系统Redis键定义
const (
AdRequestLimitKeyPrefix = "ad_request_limit:" // 广告请求限流键前缀
RateLimitKeyPrefix = "rate_limit:" // 通用限流键前缀
SessionCacheKeyPrefix = "session_cache:" // 会话缓存键前缀
)
// 广告缓存键
const (