用户余额获取

master
杨赟 6 months ago
parent 8fd1ecd4e8
commit 61594c75b0

@ -91,3 +91,13 @@ func (w *wallet) Fail(ctx context.Context, args ArgsWalletFail) error {
} }
return xClient.Call(ctx, "Fail", args, &reply) 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
}

Loading…
Cancel
Save