Initial commit (code only without large binaries)
This commit is contained in:
16
EdgeAPI/internal/dnsclients/dnscom/response_create_record.go
Normal file
16
EdgeAPI/internal/dnsclients/dnscom/response_create_record.go
Normal file
@@ -0,0 +1,16 @@
|
||||
// Copyright 2022 Liuxiangchao iwind.liu@gmail.com. All rights reserved. Official site: https://goedge.cn .
|
||||
|
||||
package dnscom
|
||||
|
||||
type CreateRecordResponse struct {
|
||||
Code int `json:"code"`
|
||||
Message string `json:"message"`
|
||||
Data struct {
|
||||
DomainID int64 `json:"domainID"`
|
||||
RecordID int64 `json:"recordID"`
|
||||
Record string `json:"record"`
|
||||
Type string `json:"type"`
|
||||
TTL int `json:"TTL"`
|
||||
State int `json:"state"`
|
||||
} `json:"data"`
|
||||
}
|
||||
17
EdgeAPI/internal/dnsclients/dnscom/response_domain_list.go
Normal file
17
EdgeAPI/internal/dnsclients/dnscom/response_domain_list.go
Normal file
@@ -0,0 +1,17 @@
|
||||
// Copyright 2022 Liuxiangchao iwind.liu@gmail.com. All rights reserved. Official site: https://goedge.cn .
|
||||
|
||||
package dnscom
|
||||
|
||||
type DomainListResponse struct {
|
||||
Code int `json:"code"`
|
||||
Message string `json:"message"`
|
||||
Data struct {
|
||||
Data []struct {
|
||||
Domains string `json:"domains"`
|
||||
DomainsID string `json:"domainsID"`
|
||||
State int `json:"state"`
|
||||
} `json:"data"`
|
||||
Page int `json:"page"`
|
||||
PageCount int `json:"pageCount"`
|
||||
} `json:"data"`
|
||||
}
|
||||
17
EdgeAPI/internal/dnsclients/dnscom/response_domain_search.go
Normal file
17
EdgeAPI/internal/dnsclients/dnscom/response_domain_search.go
Normal file
@@ -0,0 +1,17 @@
|
||||
// Copyright 2022 Liuxiangchao iwind.liu@gmail.com. All rights reserved. Official site: https://goedge.cn .
|
||||
|
||||
package dnscom
|
||||
|
||||
type DomainSearchResponse struct {
|
||||
Code int `json:"code"`
|
||||
Message string `json:"message"`
|
||||
Data struct {
|
||||
Data []struct {
|
||||
Domains string `json:"domains"`
|
||||
DomainsID string `json:"domainsID"`
|
||||
State int `json:"state"`
|
||||
} `json:"data"`
|
||||
Page int `json:"page"`
|
||||
PageCount int `json:"pageCount"`
|
||||
} `json:"data"`
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
// Copyright 2022 Liuxiangchao iwind.liu@gmail.com. All rights reserved. Official site: https://goedge.cn .
|
||||
|
||||
package dnscom
|
||||
|
||||
type IPAreaViewListResponse struct {
|
||||
Code int `json:"code"`
|
||||
Message string `json:"message"`
|
||||
Data []struct {
|
||||
Name string `json:"Name"`
|
||||
ViewID int64 `json:"viewID"`
|
||||
} `json:"data"`
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
// Copyright 2022 Liuxiangchao iwind.liu@gmail.com. All rights reserved. Official site: https://goedge.cn .
|
||||
|
||||
package dnscom
|
||||
|
||||
type IPISPViewListResponse struct {
|
||||
Code int `json:"code"`
|
||||
Message string `json:"message"`
|
||||
Data []struct {
|
||||
Name string `json:"Name"`
|
||||
ViewID int64 `json:"viewID"`
|
||||
} `json:"data"`
|
||||
}
|
||||
24
EdgeAPI/internal/dnsclients/dnscom/response_record_list.go
Normal file
24
EdgeAPI/internal/dnsclients/dnscom/response_record_list.go
Normal file
@@ -0,0 +1,24 @@
|
||||
// Copyright 2022 Liuxiangchao iwind.liu@gmail.com. All rights reserved. Official site: https://goedge.cn .
|
||||
|
||||
package dnscom
|
||||
|
||||
type RecordListResponse struct {
|
||||
Code int `json:"code"`
|
||||
Message string `json:"message"`
|
||||
Data struct {
|
||||
Data []struct {
|
||||
RecordID int `json:"recordID"`
|
||||
Record string `json:"record"`
|
||||
Type string `json:"type"`
|
||||
State int `json:"state"`
|
||||
ViewID int64 `json:"viewID"`
|
||||
AreaViewID int64 `json:"areaViewID"`
|
||||
ISPViewID int64 `json:"ISPViewID"`
|
||||
Value string `json:"value"`
|
||||
TTL int `json:"TTL"`
|
||||
} `json:"data"`
|
||||
Page int `json:"page"`
|
||||
PageSize int `json:"pageSize"`
|
||||
PageCount int `json:"pageCount"`
|
||||
} `json:"data"`
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
// Copyright 2022 Liuxiangchao iwind.liu@gmail.com. All rights reserved. Official site: https://goedge.cn .
|
||||
|
||||
package dnscom
|
||||
|
||||
type RecordModifyResponse struct {
|
||||
Code int `json:"code"`
|
||||
Message string `json:"message"`
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
// Copyright 2022 Liuxiangchao iwind.liu@gmail.com. All rights reserved. Official site: https://goedge.cn .
|
||||
|
||||
package dnscom
|
||||
|
||||
type RecordRemoveResponse struct {
|
||||
Code int `json:"code"`
|
||||
Message string `json:"message"`
|
||||
}
|
||||
Reference in New Issue
Block a user