1.4.5.2
This commit is contained in:
18
EdgeAPI/internal/dnsclients/bunnynet/response_dns_zone.go
Normal file
18
EdgeAPI/internal/dnsclients/bunnynet/response_dns_zone.go
Normal file
@@ -0,0 +1,18 @@
|
||||
// Copyright 2024 GoEdge CDN goedge.cdn@gmail.com. All rights reserved. Official site: https://goedge.cn .
|
||||
|
||||
package bunnynet
|
||||
|
||||
type DNSZoneResponse struct {
|
||||
Id int64 `json:"Id"`
|
||||
Domain string `json:"Domain"`
|
||||
Records []struct {
|
||||
Id int64 `json:"Id"`
|
||||
Type int `json:"Type"`
|
||||
Ttl int32 `json:"Ttl"`
|
||||
Value string `json:"Value"`
|
||||
Name string `json:"Name"`
|
||||
Weight int32 `json:"Weight"`
|
||||
LatencyZone string `json:"LatencyZone"`
|
||||
SmartRoutingType int `json:"SmartRoutingType"`
|
||||
} `json:"Records"`
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
// Copyright 2024 GoEdge CDN goedge.cdn@gmail.com. All rights reserved. Official site: https://goedge.cn .
|
||||
|
||||
package bunnynet
|
||||
|
||||
type ListDNSZonesResponse struct {
|
||||
Items []*DNSZoneResponse `json:"Items"`
|
||||
}
|
||||
14
EdgeAPI/internal/dnsclients/bunnynet/response_record.go
Normal file
14
EdgeAPI/internal/dnsclients/bunnynet/response_record.go
Normal file
@@ -0,0 +1,14 @@
|
||||
// Copyright 2024 GoEdge CDN goedge.cdn@gmail.com. All rights reserved. Official site: https://goedge.cn .
|
||||
|
||||
package bunnynet
|
||||
|
||||
type RecordResponse struct {
|
||||
Id int64 `json:"Id"`
|
||||
Type int `json:"Type"`
|
||||
Ttl int32 `json:"Ttl"`
|
||||
Value string `json:"Value"`
|
||||
Name string `json:"Name"`
|
||||
Weight int32 `json:"Weight"`
|
||||
LatencyZone string `json:"LatencyZone"`
|
||||
SmartRoutingType int `json:"SmartRoutingType"`
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
// Copyright 2024 GoEdge CDN goedge.cdn@gmail.com. All rights reserved. Official site: https://goedge.cn .
|
||||
|
||||
package bunnynet
|
||||
|
||||
type RegionListResponse []struct {
|
||||
Id int `json:"Id"`
|
||||
Name string `json:"Name"`
|
||||
RegionCode string `json:"RegionCode"`
|
||||
}
|
||||
Reference in New Issue
Block a user