临时添加混拨配置创建功能
This commit is contained in:
@@ -39,3 +39,20 @@ type ConfigUpdate struct {
|
||||
func (ConfigUpdate) TableName() string {
|
||||
return "gateway"
|
||||
}
|
||||
|
||||
type ConfigCreate struct {
|
||||
GatewayMac *string `gorm:"column:macaddr"`
|
||||
Table *string `gorm:"column:table"`
|
||||
EdgeMac *string `gorm:"column:edge"`
|
||||
Network *string `gorm:"column:network"`
|
||||
Cityhash *string `gorm:"column:cityhash"`
|
||||
CityLabel *string `gorm:"column:label"`
|
||||
User *string `gorm:"column:user"`
|
||||
InnerIp *string `gorm:"column:inner_ip"`
|
||||
IsChange *int `gorm:"column:ischange"`
|
||||
IsOnline *int `gorm:"column:isonline"`
|
||||
}
|
||||
|
||||
func (ConfigCreate) TableName() string {
|
||||
return "gateway"
|
||||
}
|
||||
Reference in New Issue
Block a user