From 530cb98653f90b4be3c53f7d09e08e3ba462fa48 Mon Sep 17 00:00:00 2001 From: sian Date: Wed, 29 Mar 2023 09:27:26 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- customer/user/cash.go | 31 ++++++++++++++++++++++++++++--- 1 file changed, 28 insertions(+), 3 deletions(-) diff --git a/customer/user/cash.go b/customer/user/cash.go index 5e5dac9..80975eb 100644 --- a/customer/user/cash.go +++ b/customer/user/cash.go @@ -9,9 +9,9 @@ import ( type cash struct { } -type ArgsCashList struct { +type ArgsCashLists struct { Search CashSearch - bean.Page + Page bean.Page } type CashSearch struct { @@ -38,7 +38,7 @@ type ReplyCashLists struct { } // Lists @Title 列表 -func (cash *cash) Lists(ctx context.Context, args ArgsCashList) (reply ReplyCashLists, err error) { +func (cash *cash) Lists(ctx context.Context, args ArgsCashLists) (reply ReplyCashLists, err error) { xClient, err := client.GetClient(cash) if err != nil { return @@ -47,6 +47,31 @@ func (cash *cash) Lists(ctx context.Context, args ArgsCashList) (reply ReplyCash return } +type ArgsCashAdopt struct { + CashId uint // 提款id +} + // Adopt @Title 审核通过 +func (cash *cash) Adopt(ctx context.Context, args ArgsCashAdopt) error { + xClient, err := client.GetClient(cash) + if err != nil { + return err + } + reply := 0 + return xClient.Call(ctx, "Adopt", args, &reply) +} + +type ArgsCashReject struct { + CashId uint // 提款id + Reason string +} // Reject @Title 审核驳回 +func (cash *cash) Reject(ctx context.Context, args ArgsCashReject) error { + xClient, err := client.GetClient(cash) + if err != nil { + return err + } + reply := 0 + return xClient.Call(ctx, "Reject", args, &reply) +}