添加供应商接口

finance
黄伟 2 years ago
parent 4b723a6e3b
commit 8ade6e1f4c

@ -53,13 +53,14 @@ type ReplySupplierLists struct {
}
type SupplierItem struct {
Id uint
SupplierName string // 供应商名称
Status uint // 状态
Prepayment decimal.Decimal // 预付款余额
WarnStatus uint // 预警状态
ApplyUserId uint // 创建人
CreatedAt int64 // 创建时间
Id uint
SupplierName string // 供应商名称
Status uint // 状态
Prepayment decimal.Decimal // 预付款余额
WarnStatus uint // 预警状态
ApplyUserId uint // 创建人Id
ApplyUserName string // 创建人名称
CreatedAt int64 // 创建时间
}
// Lists @Title 供应商列表

@ -47,11 +47,14 @@ func (s *supplierApply) Lists(ctx context.Context, args ArgsSupplierApplyLists)
type ReplySupplierApplyInfo struct {
AuditStatus uint
SupplierName string
Account string
Liaison string
Phone string
Annex string
SupplierName string // 供应商名称
Account string // 账户
Liaison string // 联系人
Phone string // 手机号
Annex string // 附件
Reason string // 驳回原因
AuditUserId uint // 审核人id
AuditTime int64 // 审核时间
}
// Info @Title 审核详情
@ -94,3 +97,23 @@ func (s *supplierApply) Reject(ctx context.Context, args ArgsSupplierApplyReject
reply := 0
return xClient.Call(ctx, "Reject", args, &reply)
}
type ArgsSupplierApplyReAudit struct {
ApplyId uint
SupplierName string // 供应商名称
Account string // 账户
Password string // 密码
Liaison string // 联系人
Phone string // 手机号
Annex string // 附件
}
// ReAudit @Title 重新审核
func (s *supplierApply) ReAudit(ctx context.Context, args ArgsSupplierApplyReAudit) error {
xClient, err := client.GetClient(s)
if err != nil {
return err
}
reply := 0
return xClient.Call(ctx, "ReAudit", args, &reply)
}

Loading…
Cancel
Save