代码拉取完成,页面将自动刷新
package model
import "net"
type Login struct {
Debug bool `json:"debug"` // 是否开启Debug
IPS IP `json:"ips"` // 从云端查询到的IP信息
RecordId int `json:"recordId"` // 记录id
RecordId4 int `json:"recordId4"` // 记录id
RecordId6 int `json:"recordId6"` // 记录id
Value string `json:"value"` // 解析值
Exists bool `json:"exists"` // 是否存在记录
Err error `json:"err"` // 错误信息
Url string `json:"url"` // 拼接域名后的完整地址
SubList []string `json:"subList"` // 子域名解析列表
DomainInfoList []DomainInfo `json:"domainInfoList"` // 域名信息
Pids Pid `json:"Pids"` // PID信息
Domain *DomainConfig `json:"Domain"` // 域名配置
ConfigFile string `json:"configFile"` // 配置文件路径
}
type EthInfo struct {
Name string `json:"name"` // 网卡名称
IP net.IP `json:"ip"` // 网卡IP
}
type Pid struct {
File string `json:"file"` // 文件路径
Write bool `json:"write"` // 是否写入
}
type DomainInfo struct {
Sub string // 子域名
Ip string // 解析值
RecordId int // RecordId
Type string // 解析类型
DomainId int // 域名ID
}
// IP 定义对应的结构体
type IP struct {
Ip string `json:"ip"` // 本次需要更新的本机IP
IpType string `json:"ip_type"` // ip类型
Debug bool `json:"debug"` // 是否开启Debug
Err error `json:"err"` // 错误信息
Out string `json:"out"` // 命令行输出
Pre string `json:"pre"` //
IP4 string `json:"IP4"` // ipv4
IP6 string `json:"IP6"` // ipv6
SetV6 bool `json:"setV6"` // 是否设置ipv6
SetV4 bool `json:"setV4"` // 是否设置ipv4
Ip6Exists bool `json:"ip6Exists"` // 是否存在IP6网络
Ip4Exists bool `json:"ip4Exists"` // 是否存在IP4网络
UrlIp6Api string `json:"urlIp6Api"` // 设置IPV6接口获取地址
SpecifyNetworkCard bool `json:"specifyNetworkCard"` // 是否指定网卡
SpecifyNetworkCardName string `json:"specifyNetworkCardName"` // 指定网卡名称
}
// Response 定义对应的结构体
type Response struct {
Response struct {
RecordList []struct {
RecordId int `json:"RecordId"`
} `json:"RecordList"`
} `json:"Response"`
}
// AutoGenerated 定义对应的结构体
type AutoGenerated struct {
Response struct {
RecordCountInfo struct {
SubdomainCount int `json:"SubdomainCount"`
ListCount int `json:"ListCount"`
TotalCount int `json:"TotalCount"`
} `json:"RecordCountInfo"`
RecordList []struct {
RecordID int `json:"RecordId"`
Value string `json:"Value"`
Status string `json:"Status"`
UpdatedOn string `json:"UpdatedOn"`
Name string `json:"Name"`
Line string `json:"Line"`
LineID string `json:"LineId"`
Type string `json:"Type"`
MonitorStatus string `json:"MonitorStatus"`
Remark string `json:"Remark"`
TTL int `json:"TTL"`
Mx int `json:"MX"`
} `json:"RecordList"`
RequestID string `json:"RequestId"`
} `json:"Response"`
}
// DomainConfig 定义对应的结构体
type DomainConfig struct {
Domain struct {
Domain string `json:"Domain"` // 域名
Sub string `json:"Sub"` // 子域名
Sub4 string `json:"Sub4"` // 子域名V4
Sub6 string `json:"Sub6"` // 子域名V6
Remark string `json:"Remark"` // 备注
Type string `json:"Type"` // 解析类型
}
Login struct {
Id string `json:"Id"` // 账号
Key string `json:"Key"` // 密钥
}
Option struct {
Delete bool `json:"delete"` // 是否删除已存在的记录再添加
}
}
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。