-
Notifications
You must be signed in to change notification settings - Fork 4
/
models.go
102 lines (92 loc) · 2.99 KB
/
models.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
package alidns
import (
"strings"
"time"
"github.com/libdns/libdns"
)
// aliRecList:the struct of query result
type aliRecList struct {
ReqID string `json:"RequestId,omitempty"`
TotalCount int `json:"TotalCount,omitempty"`
PgSize int `json:"PageSize,omitempty"`
DRecords aliDomaRecords `json:"DomainRecords,omitempty"`
PgNum int `json:"PageNumber,omitempty"`
}
type aliDomaRecord struct {
Rr string `json:"RR,omitempty"`
Line string `json:"Line,omitempty"`
Status string `json:"Status,omitempty"`
Locked bool `json:"Locked,omitempty"`
DTyp string `json:"Type,omitempty"`
DName string `json:"DomainName,omitempty"`
DVal string `json:"Value,omitempty"`
RecID string `json:"RecordId,omitempty"`
TTL int `json:"TTL,omitempty"`
Weight int `json:"Weight,omitempty"`
}
type aliDomaRecords struct {
Record []aliDomaRecord `json:"Record,omitempty"`
}
type aliResult struct {
ReqID string `json:"RequestId,omitempty"`
DRecords aliDomaRecords `json:"DomainRecords,omitempty"`
DLvl int `json:"DomainLevel,omitempty"`
DVal string `json:"Value,omitempty"`