From 4ebde55db4eb994cf71b0f1a0505842018163818 Mon Sep 17 00:00:00 2001 From: zhangqian <zhangqian@123.com> Date: 星期六, 19 八月 2023 20:32:38 +0800 Subject: [PATCH] 更新readme --- model/device_plc.go | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/model/device_plc.go b/model/device_plc.go index 9fe1119..ae1e43c 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"` -- Gitblit v1.8.0