From 302c591ca77dd4fb2b6e373d9912b91ee88f89f5 Mon Sep 17 00:00:00 2001
From: zhangqian <zhangqian@123.com>
Date: 星期三, 23 八月 2023 12:58:56 +0800
Subject: [PATCH] 下发工艺参数时使用nsq获取工艺参数
---
model/device_plc.go | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/model/device_plc.go b/model/device_plc.go
index 9fe1119..e37a718 100644
--- a/model/device_plc.go
+++ b/model/device_plc.go
@@ -12,7 +12,7 @@
// DevicePlc 璁惧鐨凱LC閰嶇疆
DevicePlc struct {
gorm.Model `json:"-"`
- Id int `gorm:"primarykey;type:int;"`
+ Id int `gorm:"primarykey;type:int;" json:"id"`
Brand string `gorm:"type:varchar(191);comment:PLC鍝佺墝" json:"brand"`
Method string `gorm:"type:varchar(191);comment:鎺ュ彛鏂瑰紡" json:"method"`
PortName string `gorm:"type:varchar(191);comment:绔彛鍚嶇О" json:"portName"`
@@ -29,7 +29,7 @@
StartAddress int `json:"startAddress"` // 鏁版嵁璧峰鍦板潃
Length int `json:"length"` // 鏁版嵁闀垮害
Type string `json:"type"` // 鏁版嵁绫诲瀷
- FieldName string `json:"fieldName"` // 瀵瑰簲绯荤粺瀛楁
+ FieldName int `json:"fieldName"` // 瀵瑰簲绯荤粺瀛楁
}
DevicePlcSearch struct {
--
Gitblit v1.8.0