修改节点分配方式

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

View File

@@ -1,16 +0,0 @@
package model
import "time"
type ChangeCity struct {
Id int `gorm:"column:id;primaryKey"`
Time time.Time `gorm:"column:time"`
CityId int `gorm:"column:city_id"`
Count int `gorm:"column:count"`
OffsetOld int `gorm:"column:offset_old"`
OffsetNew int `gorm:"column:offset_new"`
}
func (ChangeCity) TableName() string {
return "change_city"
}

View File

@@ -2,7 +2,7 @@ package model
import "time"
type ChangeEdge struct {
type Change struct {
Id int `gorm:"column:id;primaryKey"`
Time time.Time `gorm:"column:time"`
CityId int `gorm:"column:city"`
@@ -13,6 +13,6 @@ type ChangeEdge struct {
Info string `gorm:"column:info"`
}
func (ChangeEdge) TableName() string {
func (Change) TableName() string {
return "change"
}