From ef7d02ce56e98e8cbc5ed6ec746ea39bf0b8c9e2 Mon Sep 17 00:00:00 2001 From: zhangqian <zhangqian@123.com> Date: 星期六, 16 九月 2023 22:44:58 +0800 Subject: [PATCH] 增加实时获取生产进度接口 --- model/device_plc.go | 13 +++++++++---- 1 files changed, 9 insertions(+), 4 deletions(-) diff --git a/model/device_plc.go b/model/device_plc.go index 785ab8e..d2690ea 100644 --- a/model/device_plc.go +++ b/model/device_plc.go @@ -26,13 +26,18 @@ Detail string `gorm:"type:varchar(2048);comment:鏁版嵁璇︽儏" json:"-"` Details []*DevicePlcAddress `gorm:"-" json:"details"` + + MaxTryTimes int `gorm:"-" json:"-"` //鏈�澶у啓鍏ラ噸璇曟鏁� + CurrentTryTimes int `gorm:"-" json:"-"` //褰撳墠鍐欏叆閲嶈瘯娆℃暟 + CurrentErr error `gorm:"-" json:"-"` //褰撳墠鎶ラ敊 } DevicePlcAddress struct { - StartAddress int `json:"startAddress"` // 鏁版嵁璧峰鍦板潃 - Length int `json:"length"` // 鏁版嵁闀垮害 - Type string `json:"type"` // 鏁版嵁绫诲瀷 - FieldName int `json:"fieldName"` // 瀵瑰簲绯荤粺瀛楁 + Position int `json:"position"` // 鏁版嵁璧峰鍦板潃 + StartAddress int `json:"startAddress"` // 鏁版嵁璧峰鍦板潃 + Length int `json:"length"` // 鏁版嵁闀垮害 + Type constvar.PlcStartAddressValueType `json:"type"` // 鏁版嵁绫诲瀷 + FieldName constvar.PlcStartAddressType `json:"fieldName"` // 瀵瑰簲绯荤粺瀛楁 } DevicePlcSearch struct { -- Gitblit v1.8.0