From 302c591ca77dd4fb2b6e373d9912b91ee88f89f5 Mon Sep 17 00:00:00 2001
From: zhangqian <zhangqian@123.com>
Date: 星期三, 23 八月 2023 12:58:56 +0800
Subject: [PATCH] 下发工艺参数时使用nsq获取工艺参数
---
model/common/common.go | 31 +++++++++++++++++++++++++++++++
1 files changed, 31 insertions(+), 0 deletions(-)
diff --git a/model/common/common.go b/model/common/common.go
index 4bbc606..c329eec 100644
--- a/model/common/common.go
+++ b/model/common/common.go
@@ -54,3 +54,34 @@
Procedures []*ProductProcedure `json:"procedures"` // 宸ュ簭鍒楄〃
}
)
+
+// PLC鍐欏叆鍦板潃
+type (
+ RequestPlcAddress struct {
+ DeviceId string
+ }
+ ResponsePlcAddress struct {
+ KeyData []byte
+ AddressData []byte
+ }
+)
+
+// 宸ヨ壓鍙傛暟
+type (
+ RequestProcessParams struct {
+ WorkOrder string `json:"workOrder,omitempty" form:"workOrder"` //宸ュ簭缂栧彿
+ OrderId string `json:"orderId"` // 璁㈠崟鍙�
+ Product string `json:"password"` // 浜у搧
+ Procedure string `json:"procedure"` // 宸ュ簭
+ Device string `json:"device"` // 璁惧
+ }
+ ResponseProcessParams struct {
+ Number string `json:"number"` //宸ヨ壓妯″瀷缂栧彿
+ OrderId string `json:"orderId"` //璁㈠崟id
+ Product string `json:"product"` //浜у搧鍚嶇О
+ Procedure string `json:"procedure"` //宸ュ簭
+ WorkOrder string `json:"workOrder"` //宸ュ崟
+ Device string `json:"device"` //璁惧
+ ParamsMap map[string]interface{} `json:"paramsMap"`
+ }
+)
--
Gitblit v1.8.0