diff --git a/customer/user/cash.go b/customer/user/cash.go new file mode 100644 index 0000000..5e5dac9 --- /dev/null +++ b/customer/user/cash.go @@ -0,0 +1,52 @@ +package user + +import ( + "git.oa00.com/supply-chain/service/client" + "git.oa00.com/supply-chain/service/lib/bean" + "golang.org/x/net/context" +) + +type cash struct { +} + +type ArgsCashList struct { + Search CashSearch + bean.Page +} + +type CashSearch struct { + Status uint // 状态 1=待审核 2=通过 3=驳回 + UserId uint // 客户id +} + +type CashItem struct { + Id uint + UserId uint // 客户id + UserName string // 客户名称 + BkName string // 银行名称 + BankCode string // 银行卡号 + BankName string // 银行账户名 + AuditUserId uint // 审核人 + Status uint // 审核状态 1=待审核 2=通过 3=驳回 + Reason string // 驳回原因 + CreatedAt int64 +} + +type ReplyCashLists struct { + Lists []CashItem + Total int64 +} + +// Lists @Title 列表 +func (cash *cash) Lists(ctx context.Context, args ArgsCashList) (reply ReplyCashLists, err error) { + xClient, err := client.GetClient(cash) + if err != nil { + return + } + err = xClient.Call(ctx, "Lists", args, &reply) + return +} + +// Adopt @Title 审核通过 + +// Reject @Title 审核驳回 diff --git a/customer/user/user.go b/customer/user/user.go index d77dbca..1e44fa5 100644 --- a/customer/user/user.go +++ b/customer/user/user.go @@ -4,4 +4,5 @@ type User struct { Deposit deposit // 充值 DepositAudit depositAudit // 充值审核 Wallet wallet // 钱包 + Cash cash // 余额提现 }