From 4b723a6e3bbbade40ac5dd0e97bde7f9a20661fb Mon Sep 17 00:00:00 2001 From: sian Date: Thu, 1 Sep 2022 14:14:40 +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 --- supplier/supplierApply.go | 50 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 50 insertions(+) diff --git a/supplier/supplierApply.go b/supplier/supplierApply.go index 128bf66..34e0242 100644 --- a/supplier/supplierApply.go +++ b/supplier/supplierApply.go @@ -44,3 +44,53 @@ func (s *supplierApply) Lists(ctx context.Context, args ArgsSupplierApplyLists) err = xClient.Call(ctx, "Lists", args, &reply) 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) +}