This commit is contained in:
守护自己的云 2024-08-08 14:53:20 +08:00
parent d2303e1658
commit d31e958210
2 changed files with 34 additions and 1 deletions

View File

@ -124,7 +124,7 @@ func (p *purchase) Info(ctx context.Context, purchaseId int64) (reply ReplyPurch
type ArgsPurchaseEdit struct { type ArgsPurchaseEdit struct {
PurchaseId int64 // 采购合同id PurchaseId int64 // 采购合同id
Po string // po PoSerial string // PoSerial
OrderDate *time.Time // 下单日期 OrderDate *time.Time // 下单日期
FactoryAddress string // 工厂地址 FactoryAddress string // 工厂地址
FactoryContact string // 工厂联系人 FactoryContact string // 工厂联系人

View File

@ -82,3 +82,36 @@ func (w *workflow) Info(ctx context.Context, args ArgsWorkflowInfo) (reply Reply
err = xClient.Call(ctx, "Info", args, &reply) err = xClient.Call(ctx, "Info", args, &reply)
return return
} }
type ArgsWorkflowAdopt struct {
StaffId int64 // 审核人
WorkflowId int64 // 工作流
}
// Adopt @TITLE 审核通过
func (w *workflow) Adopt(ctx context.Context, args ArgsWorkflowAdopt) (err error) {
xClient, err := client.GetClient(w)
if err != nil {
return
}
reply := 0
err = xClient.Call(ctx, "Adopt", args, &reply)
return
}
type ArgsWorkflowReject struct {
StaffId int64 // 审核人
WorkflowId int64 // 工作流
Reason string // 审核结果
}
// Reject @TITLE 审核驳回
func (w *workflow) Reject(ctx context.Context, args ArgsWorkflowReject) (err error) {
xClient, err := client.GetClient(w)
if err != nil {
return
}
reply := 0
err = xClient.Call(ctx, "Reject", args, &reply)
return
}