finance
黄伟 2 years ago
parent 73de605aff
commit 530cb98653

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

Loading…
Cancel
Save