Files
jh-zz/model/city.go

21 lines
578 B
Go
Raw Permalink Normal View History

2025-08-05 10:51:35 +08:00
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"
}