This commit is contained in:
@@ -5,6 +5,7 @@ import (
|
||||
|
||||
"github.com/break/junhong_cmp_fiber/internal/model/dto"
|
||||
"github.com/break/junhong_cmp_fiber/internal/store/postgres"
|
||||
"github.com/break/junhong_cmp_fiber/pkg/constants"
|
||||
"github.com/break/junhong_cmp_fiber/pkg/errors"
|
||||
"gorm.io/gorm"
|
||||
)
|
||||
@@ -145,12 +146,14 @@ func walletStatusText(status int) string {
|
||||
// transactionTypeText 翻译交易类型文本
|
||||
func transactionTypeText(transactionType string) string {
|
||||
switch transactionType {
|
||||
case "recharge":
|
||||
case constants.AssetTransactionTypeRecharge:
|
||||
return "充值"
|
||||
case "deduct":
|
||||
case constants.AssetTransactionTypeDeduct:
|
||||
return "扣款"
|
||||
case "refund":
|
||||
case constants.AssetTransactionTypeRefund:
|
||||
return "退款"
|
||||
case constants.AssetTransactionTypeExchange:
|
||||
return "换货迁移"
|
||||
default:
|
||||
return transactionType
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user