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 | 5 +++++ 1 files changed, 5 insertions(+), 0 deletions(-) diff --git a/model/device_plc.go b/model/device_plc.go index 0057c46..d2690ea 100644 --- a/model/device_plc.go +++ b/model/device_plc.go @@ -26,9 +26,14 @@ 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 { + Position int `json:"position"` // 鏁版嵁璧峰鍦板潃 StartAddress int `json:"startAddress"` // 鏁版嵁璧峰鍦板潃 Length int `json:"length"` // 鏁版嵁闀垮害 Type constvar.PlcStartAddressValueType `json:"type"` // 鏁版嵁绫诲瀷 -- Gitblit v1.8.0