修改参数

finance
杨赟 2 years ago
parent 25554c0c32
commit d1065c38b4

@ -62,13 +62,13 @@ type ArgsWalletSuccess struct {
} }
// Success @Title 成功 // Success @Title 成功
func (w *wallet) Success(ctx context.Context, args ArgsWalletSuccess) (walletId uint, err error) { func (w *wallet) Success(ctx context.Context, args ArgsWalletSuccess) error {
reply := 0
xClient, err := client.GetClient(w) xClient, err := client.GetClient(w)
if err != nil { if err != nil {
return return err
} }
err = xClient.Call(ctx, "Success", args, &walletId) return xClient.Call(ctx, "Success", args, &reply)
return
} }
type ArgsWalletFail struct { type ArgsWalletFail struct {
@ -77,11 +77,11 @@ type ArgsWalletFail struct {
} }
// Fail @Title 失败 // Fail @Title 失败
func (w *wallet) Fail(ctx context.Context, args ArgsWalletFail) (walletId uint, err error) { func (w *wallet) Fail(ctx context.Context, args ArgsWalletFail) error {
reply := 0
xClient, err := client.GetClient(w) xClient, err := client.GetClient(w)
if err != nil { if err != nil {
return return err
} }
err = xClient.Call(ctx, "Fail", args, &walletId) return xClient.Call(ctx, "Fail", args, &reply)
return
} }

Loading…
Cancel
Save