保存更改记录;优化同步作业日志级别
This commit is contained in:
17
model/change.go
Normal file
17
model/change.go
Normal file
@@ -0,0 +1,17 @@
|
||||
package model
|
||||
|
||||
import "time"
|
||||
|
||||
type Change struct {
|
||||
Id int `gorm:"column:id;primaryKey"`
|
||||
Time time.Time `gorm:"column:time"`
|
||||
Gateway string `gorm:"column:macaddr"`
|
||||
OldEdge string `gorm:"column:edge_old"`
|
||||
NewEdge string `gorm:"column:edge_new"`
|
||||
Network string `gorm:"column:network"`
|
||||
Info string `gorm:"column:info"`
|
||||
}
|
||||
|
||||
func (Change) TableName() string {
|
||||
return "change"
|
||||
}
|
||||
Reference in New Issue
Block a user