建立仓库

This commit is contained in:
2025-08-05 10:51:35 +08:00
commit 4bbc05fe1f
36 changed files with 1946 additions and 0 deletions

19
model/edge.go Normal file
View File

@@ -0,0 +1,19 @@
package model
type Edge struct {
Id int `gorm:"column:id;primaryKey"`
CityId int `gorm:"column:city_id"`
Macaddr string `gorm:"column:macaddr"`
Public string `gorm:"column:public"`
Isp string `gorm:"column:isp"`
Single int `gorm:"column:single"`
Sole bool `gorm:"column:sole"`
Arch int `gorm:"column:arch"`
Online int `gorm:"column:online"`
Active bool `gorm:"column:active"`
}
func (Edge) TableName() string {
return "edge"
}