| | |
| | | type ( |
| | | NetConfig struct { |
| | | gorm.Model |
| | | NetworkCard string `gorm:"type:varchar(100);not null;default '';comment:网卡" json:"networkCard" binding:"required"` //网卡 |
| | | IP string `gorm:"type:varchar(100);not null;default '';comment:本机ip" json:"ip" binding:"required"` //本机ip |
| | | MASK string `gorm:"type:varchar(100);not null;default '';comment:子网掩码" json:"mask" binding:"required"` //子网掩码 |
| | | Gateway string `gorm:"type:varchar(100);not null;default '';comment:网关" json:"gateway" binding:"required"` //网关 |
| | | DNS string `gorm:"type:varchar(100);not null;default '';comment:DNS" json:"dns"` //dns |
| | | Status NetConfigStatus `gorm:"type:tinyint;not null;default 0;comment:状态(1启动2禁用)" json:"status"` //状态(1启用2禁用) |
| | | NetworkCard string `gorm:"type:varchar(100);not null;default ''" json:"networkCard" binding:"required"` //网卡 |
| | | IP string `gorm:"type:varchar(100);not null;default ''" json:"ip" binding:"required"` //本机ip |
| | | MASK string `gorm:"type:varchar(100);not null;default ''" json:"mask" binding:"required"` //子网掩码 |
| | | Gateway string `gorm:"type:varchar(100);not null;default ''" json:"gateway" binding:"required"` //网关 |
| | | DNS string `gorm:"type:varchar(100);not null;default ''" json:"dns"` //dns |
| | | Status NetConfigStatus `gorm:"type:tinyint;not null;default 0" json:"status"` //状态(1启用2禁用) |
| | | } |
| | | |
| | | NetConfigSearch struct { |