From e4957d48bb364f7ee34bd672f53b71a66ca31e14 Mon Sep 17 00:00:00 2001 From: zhangqian <zhangqian@123.com> Date: 星期四, 26 十月 2023 09:46:56 +0800 Subject: [PATCH] 工序增加实际开始时间和实际结束时间 --- model/common/common.go | 6 +++++- 1 files changed, 5 insertions(+), 1 deletions(-) diff --git a/model/common/common.go b/model/common/common.go index 2bf3fcb..f92ae17 100644 --- a/model/common/common.go +++ b/model/common/common.go @@ -124,10 +124,13 @@ IsFinish bool //鏄惁瀹屾垚 } -type Device struct { +// DeviceMsg 涓嬪彂鍒扮粓绔殑璁惧淇℃伅 +type DeviceMsg struct { ID string `gorm:"comment:涓婚敭ID;primaryKey;type:varchar(191);" json:"id"` DeviceProcedureAttr []*DeviceProcedureAttr `json:"deviceProcedureAttr"` // 璁惧宸ュ簭灞炴�у垪琛� ExtChannelAmount int `gorm:"type:tinyint;comment:棰濆鐨勯�氶亾鏁伴噺;default:0;" json:"extChannelAmount"` + PlcAddressList []*PlcAddress + PlcConfig *PlcConfig } type DeviceProcedureAttr struct { ProcedureID string `gorm:"index;type:varchar(191);comment:宸ュ簭ID" json:"procedureId"` @@ -139,6 +142,7 @@ const ( PullDataTypeProcessModel = "process_model" + PullDataTypeDevice = "device" ) // MsgPullDataRequest 鎷夊彇浜戠鏁版嵁 -- Gitblit v1.8.0