From 11c811d68e0c097aefecb504a5b65502fd33fc61 Mon Sep 17 00:00:00 2001 From: kanade Date: Tue, 10 Jan 2023 11:47:23 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E9=92=B1=E5=8C=85=E8=AE=B0?= =?UTF-8?q?=E5=BD=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- customer/user/wallet.go | 26 +++++++++++++++----------- 1 file changed, 15 insertions(+), 11 deletions(-) diff --git a/customer/user/wallet.go b/customer/user/wallet.go index 89f1ae8..41682d5 100644 --- a/customer/user/wallet.go +++ b/customer/user/wallet.go @@ -21,11 +21,13 @@ const ( ) type ArgsWalletDirect struct { - UserId uint // 客户id - WalletType walletType // 收支类型 - Amount decimal.Decimal // 金额 正数 - ServiceId uint // 服务id - Remark string // 备注信息 + UserId uint // 客户id + WalletType walletType // 收支类型 + Amount decimal.Decimal // 金额 正数 + ServiceId uint // 服务id + TradeChannel string // 交易渠道 + TradeSerialSn string // 交易渠道流水号 + Remark string // 备注信息 } // Direct @Title 直接消费 @@ -39,12 +41,14 @@ func (w *wallet) Direct(ctx context.Context, args ArgsWalletDirect) error { } type ArgsWalletCreate struct { - UserId uint // 客户id - WalletType walletType // 收支类型 - Amount decimal.Decimal // 金额 正数 - ServiceId uint // 服务id - Remark string // 备注信息 - CancelSecond int64 // 自动取消秒 + UserId uint // 客户id + WalletType walletType // 收支类型 + Amount decimal.Decimal // 金额 正数 + ServiceId uint // 服务id + TradeChannel string // 交易渠道 + TradeSerialSn string // 交易渠道流水号 + Remark string // 备注信息 + CancelSecond int64 // 自动取消秒 } // Create @Title 创建消费