feat: 技术债务清理(支付配置动态化、API文档补全、轮询常量提取、废弃代码清理)
All checks were successful
构建并部署到测试环境(无 SSH) / build-and-deploy (push) Successful in 7m13s
All checks were successful
构建并部署到测试环境(无 SSH) / build-and-deploy (push) Successful in 7m13s
This commit is contained in:
@@ -427,3 +427,15 @@ func RedisPollingShardQueueKey(shardID int, taskType string) string {
|
||||
func RedisPollingDeviceOpLockKey(deviceID uint) string {
|
||||
return fmt.Sprintf("polling:device:op_lock:%d", deviceID)
|
||||
}
|
||||
|
||||
// ========================================
|
||||
// 支付配置缓存 Redis Key
|
||||
// ========================================
|
||||
|
||||
// RedisPaymentConfigKey 支付配置缓存 Key
|
||||
// 用途:缓存 WechatConfig 数据(JSON 格式),避免每次支付时重复查询数据库
|
||||
// 格式:payment:config:{configID}
|
||||
// TTL:1 小时
|
||||
func RedisPaymentConfigKey(configID uint) string {
|
||||
return fmt.Sprintf("payment:config:%d", configID)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user