From 83b652cd2f1be2375d33a67366a7c359cf6e22c0 Mon Sep 17 00:00:00 2001 From: zhangqian <zhangqian@123.com> Date: 星期一, 18 九月 2023 14:56:09 +0800 Subject: [PATCH] 支持几个配置,支持按配置选择plc驱动包 --- model/response/common.go | 25 +++++++++++++++++++------ 1 files changed, 19 insertions(+), 6 deletions(-) diff --git a/model/response/common.go b/model/response/common.go index 8a25c70..788dd40 100644 --- a/model/response/common.go +++ b/model/response/common.go @@ -2,6 +2,7 @@ import ( "apsClient/model" + "apsClient/model/common" ) type PageResult struct { @@ -21,7 +22,16 @@ type TaskData struct { Order *model.Order Procedure *model.Procedures - Config + + Position int //褰撳墠浠诲姟鍦ㄨ澶囩鍑犱釜浣嶇疆 + AllProcedures []string + CurrentProcedureIndex int +} + +type TaskResponse struct { + Tasks []*TaskData + TaskCount int64 + Workers []*common.ProcedureWorker `json:"workers"` // 浜哄憳鍒楄〃 } type Config struct { @@ -39,11 +49,14 @@ 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 ProductProgress struct { - FinishNumber int +type TaskCountdown struct { + CountDownHour int64 //鍊掕鏃� 鏃� + CountDownMinute int64 //鍊掕鏃� 鍒� + ShowCountDown bool //鏄惁灞曠ず鍊掕鏃� } -- Gitblit v1.8.0