完善更新记录以排查IP分配重复问题

This commit is contained in:
2025-08-21 18:34:30 +08:00
parent e2c87cfa8b
commit 7e7d706f84
5 changed files with 52 additions and 18 deletions

View File

@@ -1,17 +0,0 @@
package model
import "time"
type Change struct {
Id int `gorm:"column:id;primaryKey"`
Time time.Time `gorm:"column:time"`
Gateway string `gorm:"column:macaddr"`
OldEdge string `gorm:"column:edge_old"`
NewEdge string `gorm:"column:edge_new"`
Network string `gorm:"column:network"`
Info string `gorm:"column:info"`
}
func (Change) TableName() string {
return "change"
}