From 8dfb8feb32bb5e4e460e23dcde42612a26fa2bcb Mon Sep 17 00:00:00 2001 From: zhangqian <zhangqian@123.com> Date: 星期日, 27 八月 2023 01:11:28 +0800 Subject: [PATCH] fix --- 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