From e3e5b224ff6576e0266e63728dff5870d7c8877d Mon Sep 17 00:00:00 2001
From: zhangqian <zhangqian@123.com>
Date: 星期二, 07 十一月 2023 09:46:55 +0800
Subject: [PATCH] 设备信息增加设备名称字段

---
 model/common/common.go |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/model/common/common.go b/model/common/common.go
index c84e16d..628054e 100644
--- a/model/common/common.go
+++ b/model/common/common.go
@@ -132,7 +132,8 @@
 	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"`
-	DeviceMac           string                 `gorm:"type:varchar(191);comment:璁惧MAC" json:"deviceMac"`
+	DeviceName          string                 `json:"deviceName"`
+	DeviceMac           string                 `json:"deviceMac"`
 	PlcAddressList      []*PlcAddress
 	PlcConfig           *PlcConfig
 }

--
Gitblit v1.8.0