This commit is contained in:
@@ -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 "未知"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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 生成函数 ==========
|
||||
|
||||
Reference in New Issue
Block a user