修复节点更新问题

This commit is contained in:
2025-09-11 00:08:11 +08:00
parent 1900f5e82d
commit 140235d069
2 changed files with 17 additions and 14 deletions

View File

@@ -4,7 +4,7 @@ type Config struct {
Id int `gorm:"column:id;primaryKey"`
GatewayMac string `gorm:"column:macaddr"`
Table string `gorm:"column:table"`
Macaddr string `gorm:"column:edge"`
EdgeMac string `gorm:"column:edge"`
Network string `gorm:"column:network"`
Cityhash string `gorm:"column:cityhash"`
CityLabel string `gorm:"column:label"`
@@ -25,7 +25,7 @@ type ConfigUpdate struct {
Id int `gorm:"column:id;primaryKey"`
GatewayMac *string `gorm:"column:macaddr"`
Table *string `gorm:"column:table"`
Macaddr *string `gorm:"column:edge"`
EdgeMac *string `gorm:"column:edge"`
Network *string `gorm:"column:network"`
Cityhash *string `gorm:"column:cityhash"`
CityLabel *string `gorm:"column:label"`