dhcp.go 1.3 KB

123456789101112131415161718
  1. package model
  2. type DHCP struct {
  3. Id int `json:"id" gorm:"id"` // ID
  4. MACAddress string `json:"mac_address" gorm:"mac_address"` // MAC地址
  5. IPAddress string `json:"ip_address" gorm:"ip_address"` // IP地址
  6. SubnetMask string `json:"subnet_mask" gorm:"subnet_mask"` // 子网掩码
  7. DefaultGateway string `json:"default_gateway" gorm:"default_gateway"` // 默认网关
  8. NameServers []string `json:"name_servers" gorm:"name_servers"` // DNS服务器
  9. DomainName string `json:"domain_name" gorm:"domain_name"` // 域名
  10. BroadcastAddress string `json:"broadcast_address" gorm:"broadcast_address"` // 广播地址
  11. NTPServers []string `json:"ntp_servers" gorm:"ntp_servers"` // NTP服务器
  12. VLANID string `json:"vlan_id" gorm:"vlan_id"` // VLAN ID
  13. LeaseTime uint32 `json:"lease_time" gorm:"lease_time"` // 租约
  14. DomainSearch []string `json:"domain_search" gorm:"domain_search"` // 域名搜索
  15. ServerIP string `json:"server_ip" gorm:"server_ip"` // 服务器IP
  16. Interface string `json:"interface" gorm:"interface"` // 网卡
  17. }