From 14fc2f577e2c0b7b146c1a430e9438f317ad5b0c Mon Sep 17 00:00:00 2001 From: zhangqian <zhangqian@123.com> Date: 星期六, 23 九月 2023 14:14:27 +0800 Subject: [PATCH] 任务接收增加channel字段,postion字段改为channel --- model/response/common.go | 38 +++++++++++++++++++++++++++++++------- 1 files changed, 31 insertions(+), 7 deletions(-) diff --git a/model/response/common.go b/model/response/common.go index f162e49..ee3ff27 100644 --- a/model/response/common.go +++ b/model/response/common.go @@ -1,7 +1,9 @@ package response import ( + "apsClient/conf" "apsClient/model" + "apsClient/model/common" ) type PageResult struct { @@ -19,10 +21,20 @@ } type TaskData struct { - Order *model.Order - Procedure *model.Procedures - NextProcedure *model.Procedures - Config + Order *model.Order + Procedure *model.Procedures + + Channel int32 //褰撳墠浠诲姟鍦ㄨ澶囩鍑犱釜閫氶亾 + AllProcedures []string + CurrentProcedureIndex int + CanStarted bool //鏄惁鍙互寮�濮嬬敓浜� +} + +type TaskResponse struct { + Tasks []*TaskData + TaskCount int64 + Workers []*common.ProcedureWorker `json:"workers"` // 浜哄憳鍒楄〃 + Prompt conf.Prompt } type Config struct { @@ -30,12 +42,24 @@ DeviceStatus string } +type ProcessParamsResponse struct { + Number string + Params []ProcessParams +} + type ProcessParams struct { Key string Value interface{} } -type NetConfig struct { - DeviceName string - DeviceStatus string +type ProductProgress struct { + FinishNumber int `json:"finishNumber"` + TotalNumber int `json:"totalNumber"` + PlcStatus int `json:"plcStatus"` +} + +type TaskCountdown struct { + CountDownHour int64 //鍊掕鏃� 鏃� + CountDownMinute int64 //鍊掕鏃� 鍒� + ShowCountDown bool //鏄惁灞曠ず鍊掕鏃� } -- Gitblit v1.8.0