123456789101112131415161718 |
- package model
- type DHCP struct {
- Id int `json:"id" gorm:"id"` // ID
- MACAddress string `json:"mac_address" gorm:"mac_address"` // MAC地址
- IPAddress string `json:"ip_address" gorm:"ip_address"` // IP地址
- SubnetMask string `json:"subnet_mask" gorm:"subnet_mask"` // 子网掩码
- DefaultGateway string `json:"default_gateway" gorm:"default_gateway"` // 默认网关
- NameServers []string `json:"name_servers" gorm:"name_servers"` // DNS服务器
- DomainName string `json:"domain_name" gorm:"domain_name"` // 域名
- BroadcastAddress string `json:"broadcast_address" gorm:"broadcast_address"` // 广播地址
- NTPServers []string `json:"ntp_servers" gorm:"ntp_servers"` // NTP服务器
- VLANID string `json:"vlan_id" gorm:"vlan_id"` // VLAN ID
- LeaseTime uint32 `json:"lease_time" gorm:"lease_time"` // 租约
- DomainSearch []string `json:"domain_search" gorm:"domain_search"` // 域名搜索
- ServerIP string `json:"server_ip" gorm:"server_ip"` // 服务器IP
- Interface string `json:"interface" gorm:"interface"` // 网卡
- }
|