From 3e72a10e4e596451efdfebf6b0b3105a0e6da39b Mon Sep 17 00:00:00 2001
From: zhangqian <zhangqian@123.com>
Date: 星期五, 27 十月 2023 16:05:53 +0800
Subject: [PATCH] add log
---
model/response/common.go | 22 +++++++++++++++++++++-
1 files changed, 21 insertions(+), 1 deletions(-)
diff --git a/model/response/common.go b/model/response/common.go
index ff33efc..dae30ae 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 {
@@ -21,7 +23,19 @@
type TaskData struct {
Order *model.Order
Procedure *model.Procedures
- Config
+
+ Channel int32 //褰撳墠浠诲姟鍦ㄨ澶囩鍑犱釜閫氶亾
+ AllProcedures []string
+ CurrentProcedureIndex int
+ CanStarted bool //鏄惁鍙互寮�濮嬬敓浜�
+}
+
+type TaskResponse struct {
+ Tasks []*TaskData //浠诲姟鍒楄〃
+ TaskCount int64 //浠诲姟鏁伴噺
+ Workers []*common.ProcedureWorker `json:"workers"` // 浜哄憳鍒楄〃
+ Prompt conf.Prompt //鎻愮ず璇�
+ ChannelAmount int //閫氶亾鏁伴噺
}
type Config struct {
@@ -42,6 +56,7 @@
type ProductProgress struct {
FinishNumber int `json:"finishNumber"`
TotalNumber int `json:"totalNumber"`
+ PlcStatus int `json:"plcStatus"`
}
type TaskCountdown struct {
@@ -49,3 +64,8 @@
CountDownMinute int64 //鍊掕鏃� 鍒�
ShowCountDown bool //鏄惁灞曠ず鍊掕鏃�
}
+
+type Message struct {
+ Event string
+ Data interface{}
+}
--
Gitblit v1.8.0