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) +}