From 61594c75b0ddca27fc3da006183836e8206d57cd Mon Sep 17 00:00:00 2001 From: kanade Date: Wed, 8 May 2024 16:44:36 +0800 Subject: [PATCH] =?UTF-8?q?=E7=94=A8=E6=88=B7=E4=BD=99=E9=A2=9D=E8=8E=B7?= =?UTF-8?q?=E5=8F=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- customer/user/wallet.go | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/customer/user/wallet.go b/customer/user/wallet.go index 1e66787..6336a7c 100644 --- a/customer/user/wallet.go +++ b/customer/user/wallet.go @@ -91,3 +91,13 @@ func (w *wallet) Fail(ctx context.Context, args ArgsWalletFail) error { } return xClient.Call(ctx, "Fail", args, &reply) } + +// Amount @Title 钱包余额 +func (w *wallet) Amount(ctx context.Context, userId int64) (amount decimal.Decimal, err error) { + xClient, err := client.GetClient(w) + if err != nil { + return + } + err = xClient.Call(ctx, "Amount", userId, &amount) + return +}