From 252ad9f55e8828bcacb8ddef28c8e9ff0a62f8d6 Mon Sep 17 00:00:00 2001
From: zhangqian <zhangqian@123.com>
Date: 星期一, 27 十一月 2023 15:41:39 +0800
Subject: [PATCH] 计算工时,生产条形码

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

diff --git a/model/common/common.go b/model/common/common.go
index c84e16d..e47b1fd 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
 }
@@ -167,3 +168,9 @@
 	StopBit    int             `gorm:"type:int(11)"  json:"stopBit"` //鍋滄浣嶏紝method = modbusRTU 鐢�
 	Parity     constvar.Parity `gorm:"type:int(11)"  json:"parity"`  //鏍¢獙鏂瑰紡锛宮ethod = modbusRTU 鐢�
 }
+
+// MsgReportData 鏁版嵁涓婃姤
+type MsgReportData struct {
+	ReportType constvar.ReportType `json:"reportType"` //涓婃姤绫诲瀷
+	Content    string              `json:"Content"`
+}

--
Gitblit v1.8.0