直接换货流程
All checks were successful
构建并部署到测试环境(无 SSH) / build-and-deploy (push) Successful in 8m28s

This commit is contained in:
Break
2026-06-03 16:55:32 +08:00
parent 46ede81aef
commit 5f57429fb0
13 changed files with 718 additions and 167 deletions

View File

@@ -386,6 +386,12 @@ const (
ExchangeStatusCancelled = 5 // 已取消
)
// 换货流程类型常量
const (
ExchangeFlowTypeShipping = "shipping" // 物流换货
ExchangeFlowTypeDirect = "direct" // 直接换货
)
// 换货资产类型常量
const (
ExchangeAssetTypeIotCard = "iot_card" // 物联网卡
@@ -472,3 +478,15 @@ func GetExchangeStatusName(status int) string {
return "未知"
}
}
// GetExchangeFlowTypeName 获取换货流程类型名称
func GetExchangeFlowTypeName(flowType string) string {
switch flowType {
case "", ExchangeFlowTypeShipping:
return "物流换货"
case ExchangeFlowTypeDirect:
return "直接换货"
default:
return "未知"
}
}

View File

@@ -68,6 +68,7 @@ const (
AssetTransactionTypeRecharge = "recharge" // 充值
AssetTransactionTypeDeduct = "deduct" // 扣款
AssetTransactionTypeRefund = "refund" // 退款
AssetTransactionTypeExchange = "exchange" // 换货迁移
)
// 资产充值订单号前缀
@@ -114,6 +115,7 @@ const (
ReferenceTypeWithdrawal = "withdrawal" // 提现
ReferenceTypeTopup = "topup" // 充值
ReferenceTypeRefund = "refund" // 退款
ReferenceTypeExchange = "exchange" // 换货
)
// ========== Redis Key 生成函数 ==========