finance
黄伟 2 years ago
parent 9e11d54f1f
commit 4b723a6e3b

@ -44,3 +44,53 @@ func (s *supplierApply) Lists(ctx context.Context, args ArgsSupplierApplyLists)
err = xClient.Call(ctx, "Lists", args, &reply) err = xClient.Call(ctx, "Lists", args, &reply)
return return
} }
type ReplySupplierApplyInfo struct {
AuditStatus uint
SupplierName string
Account string
Liaison string
Phone string
Annex string
}
// Info @Title 审核详情
func (s *supplierApply) Info(ctx context.Context, applyId uint) (reply ReplySupplierApplyInfo, err error) {
xClient, err := client.GetClient(s)
if err != nil {
return ReplySupplierApplyInfo{}, err
}
err = xClient.Call(ctx, "Info", applyId, &reply)
return
}
type ArgsSupplierApplyAdopt struct {
ApplyId uint
AuditUserId uint // 审核人Id
}
// Adopt @Title 审核通过
func (s *supplierApply) Adopt(ctx context.Context, args ArgsSupplierApplyAdopt) error {
xClient, err := client.GetClient(s)
if err != nil {
return err
}
reply := 0
return xClient.Call(ctx, "Adopt", args, &reply)
}
type ArgsSupplierApplyReject struct {
ApplyId uint
AuditUserId uint // 审核人Id
Reason string // 驳回原因
}
// Reject @Title 审核驳回
func (s *supplierApply) Reject(ctx context.Context, args ArgsSupplierApplyReject) error {
xClient, err := client.GetClient(s)
if err != nil {
return err
}
reply := 0
return xClient.Call(ctx, "Reject", args, &reply)
}

Loading…
Cancel
Save