All checks were successful
构建并部署到测试环境(无 SSH) / build-and-deploy (push) Successful in 8m52s
- 受控配置新增代理在线自充允许范围(仅微信/仅支付宝/同时支持),读侧与创建侧取允许范围与可用商户池交集,两侧失败关闭 - 新增允许范围查询与修改端点,读限代理与平台账号、写限超级管理员,复用受控配置写服务留痕 - tb_agent_recharge_record 新增交易流水号、线下收款方式三列快照与其他凭证列(成对迁移 000213) - 线下申请校验启用的收款方式字典项与必填交易流水号,交易流水号独立于在线渠道交易号、不参与去重 - 扩展 offline_recharge_approval 场景可映射字段白名单与字典引用保护 - 新增付款凭证识别能力与交易流水号预填接口,识别不落库、日志不记录载荷
49 lines
2.5 KiB
Go
49 lines
2.5 KiB
Go
package constants
|
|
|
|
import (
|
|
"fmt"
|
|
"time"
|
|
)
|
|
|
|
const (
|
|
// SystemConfigTypeString 表示字符串配置。
|
|
SystemConfigTypeString = "string"
|
|
// SystemConfigTypeInt 表示整数配置。
|
|
SystemConfigTypeInt = "int"
|
|
// SystemConfigTypeBool 表示布尔配置。
|
|
SystemConfigTypeBool = "bool"
|
|
// SystemConfigTypeJSON 表示 JSON 配置。
|
|
SystemConfigTypeJSON = "json"
|
|
// SystemConfigCacheTTL 是系统配置默认缓存时长。
|
|
SystemConfigCacheTTL = 5 * time.Minute
|
|
// SystemConfigModuleCarrierCallback 是运营商回调配置模块。
|
|
SystemConfigModuleCarrierCallback = "carrier_callback"
|
|
// SystemConfigModulePayment 是 C 端支付方式配置模块。
|
|
SystemConfigModulePayment = "c2b.payment"
|
|
// SystemConfigPaymentAllowedCard 定义卡资产允许的支付方式集合。
|
|
SystemConfigPaymentAllowedCard = "c2b.payment.card_allowed_methods"
|
|
// SystemConfigPaymentAllowedDevice 定义设备资产允许的支付方式集合。
|
|
SystemConfigPaymentAllowedDevice = "c2b.payment.device_allowed_methods"
|
|
// SystemConfigAgentSelfRechargeAllowedMethods 定义代理在线自充允许范围配置 Key。
|
|
SystemConfigAgentSelfRechargeAllowedMethods = "agent.self_recharge.allowed_methods"
|
|
// AgentSelfRechargeAllowedWechatOnly 表示代理在线自充仅允许微信。
|
|
AgentSelfRechargeAllowedWechatOnly = "wechat_only"
|
|
// AgentSelfRechargeAllowedAlipayOnly 表示代理在线自充仅允许支付宝。
|
|
AgentSelfRechargeAllowedAlipayOnly = "alipay_only"
|
|
// AgentSelfRechargeAllowedBoth 表示代理在线自充同时允许微信和支付宝。
|
|
AgentSelfRechargeAllowedBoth = "both"
|
|
// SystemConfigCarrierCallbackCTCCRealnameEnabled 控制电信实名回调是否执行业务处理。
|
|
SystemConfigCarrierCallbackCTCCRealnameEnabled = "carrier_callback.ctcc_realname.enabled"
|
|
// SystemConfigCarrierCallbackCMCCRealnameEnabled 控制移动实名回调是否执行业务处理。
|
|
SystemConfigCarrierCallbackCMCCRealnameEnabled = "carrier_callback.cmcc_realname.enabled"
|
|
// SystemConfigCarrierCallbackCUCCRealnameEnabled 控制联通实名成功回调是否执行业务处理。
|
|
SystemConfigCarrierCallbackCUCCRealnameEnabled = "carrier_callback.cucc_realname.enabled"
|
|
// SystemConfigCarrierCallbackCUCCRealnameRemovalEnabled 控制联通解除实名回调是否执行业务处理。
|
|
SystemConfigCarrierCallbackCUCCRealnameRemovalEnabled = "carrier_callback.cucc_realname_removal.enabled"
|
|
)
|
|
|
|
// RedisSystemConfigKey 生成单个系统配置的 Redis 缓存键。
|
|
func RedisSystemConfigKey(configKey string) string {
|
|
return fmt.Sprintf("system_config:value:%s", configKey)
|
|
}
|