|
|
|
@ -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
|
|
|
|
|
}
|
|
|
|
|