From f05f4cca1340f0ddec7261d4dbe65dd331224423 Mon Sep 17 00:00:00 2001 From: zhangqian <zhangqian@123.com> Date: 星期四, 28 九月 2023 15:59:30 +0800 Subject: [PATCH] 接收设备信息改变 --- model/common/common.go | 11 +++++++++++ 1 files changed, 11 insertions(+), 0 deletions(-) diff --git a/model/common/common.go b/model/common/common.go index f169626..2b3e2c9 100644 --- a/model/common/common.go +++ b/model/common/common.go @@ -126,3 +126,14 @@ IsProcessing bool //鏄惁澶勭悊涓� IsFinish bool //鏄惁瀹屾垚 } + +type Device 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"` +} +type DeviceProcedureAttr struct { + ProcedureID string `gorm:"index;type:varchar(191);comment:宸ュ簭ID" json:"procedureId"` + ProcedureName string `gorm:"type:varchar(191);comment:宸ュ簭鍚嶇О" json:"procedureName"` + DeviceID string `gorm:"index;type:varchar(191);not null;comment:璁惧ID" json:"deviceId"` +} -- Gitblit v1.8.0