修改节点分配方式

This commit is contained in:
2025-09-10 18:26:59 +08:00
parent 7e7d706f84
commit 1900f5e82d
13 changed files with 191 additions and 239 deletions

18
model/change.go Normal file
View File

@@ -0,0 +1,18 @@
package model
import "time"
type Change struct {
Id int `gorm:"column:id;primaryKey"`
Time time.Time `gorm:"column:time"`
CityId int `gorm:"column:city"`
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"
}