From d4243f398b84a8b8cdcd27c35ace72f6a30a6452 Mon Sep 17 00:00:00 2001 From: zhangqian <zhangqian@123.com> Date: 星期日, 08 十月 2023 10:45:09 +0800 Subject: [PATCH] 是否可以开始增加开始时间判断,考虑进程退出和断电情况 --- model/request/task.go | 25 +++++++++++++++++++++++++ 1 files changed, 25 insertions(+), 0 deletions(-) diff --git a/model/request/task.go b/model/request/task.go index 68b9357..b1054ea 100644 --- a/model/request/task.go +++ b/model/request/task.go @@ -1,5 +1,7 @@ package request +import "apsClient/constvar" + // TaskInfo 浠诲姟寮�鍚�氱煡璇锋眰鍙傛暟 type TaskInfo struct { OrderId string `json:"orderId"` // 璁㈠崟鍙� @@ -8,3 +10,26 @@ WorkOrder string `json:"workOrder"` // 宸ュ崟 Device string `json:"device"` // 璁惧 } + +// TaskList 浠诲姟鍒楄〃璇锋眰鍙傛暟 +type TaskList struct { + PageInfo + TaskMode constvar.TaskMode `json:"taskMode" form:"taskMode"` +} + +type SendProcessParams struct { + ProcedureId int `json:"procedureId" binding:"required"` + Channel int32 `json:"channel"` +} + +type GetProductProgress struct { + ProcedureId int `json:"procedureId" binding:"required"` + Channel int32 `json:"channel"` +} + +// ProcessModelList 宸ヨ壓鍙傛暟鍒楄〃璇锋眰鍙傛暟 +type ProcessModelList struct { + PageInfo + ProcedureId int `json:"procedureId" form:"procedureId" binding:"required"` //褰撳墠鐨勫伐搴廼d + Number string `json:"number" form:"number" binding:"required"` //褰撳墠姝e湪浣跨敤鐨勫伐鑹哄弬鏁扮紪鍙� +} -- Gitblit v1.8.0