修改节点分配方式
This commit is contained in:
@@ -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"
|
||||
}
|
||||
@@ -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"
|
||||
}
|
||||
Reference in New Issue
Block a user