21 lines
578 B
Go
21 lines
578 B
Go
package model
|
|
|
|
type City struct {
|
|
Id int `gorm:"column:id;primaryKey"`
|
|
Macaddr string `gorm:"column:macaddr"`
|
|
Name string `gorm:"column:city"`
|
|
Num int `gorm:"column:num"`
|
|
Hash string `gorm:"column:hash"`
|
|
Label string `gorm:"column:label"`
|
|
Count int `gorm:"column:count"`
|
|
Offset int `gorm:"column:offset"`
|
|
CreateTime string `gorm:"column:createtime"`
|
|
UpdateTime string `gorm:"column:updatetime"`
|
|
|
|
EdgesCount int // 用于查询时统计边缘节点数量
|
|
}
|
|
|
|
func (City) TableName() string {
|
|
return "cityhash"
|
|
}
|