建立仓库
This commit is contained in:
19
model/edge.go
Normal file
19
model/edge.go
Normal 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"
|
||||
}
|
||||
Reference in New Issue
Block a user