1.4.5.2
This commit is contained in:
7
EdgeAPI/internal/dnsclients/gname/response_base.go
Normal file
7
EdgeAPI/internal/dnsclients/gname/response_base.go
Normal file
@@ -0,0 +1,7 @@
|
||||
package gname
|
||||
|
||||
type BaseResponse struct {
|
||||
Code int `json:"code"` // 1: 成功, -1: 失败
|
||||
Msg string `json:"msg"` // 返回描述
|
||||
Data interface{} `json:"data"` // 返回数据
|
||||
}
|
||||
9
EdgeAPI/internal/dnsclients/gname/response_domains.go
Normal file
9
EdgeAPI/internal/dnsclients/gname/response_domains.go
Normal file
@@ -0,0 +1,9 @@
|
||||
package gname
|
||||
|
||||
type DomainsResponse []Domain
|
||||
|
||||
type Domain struct {
|
||||
Id string `json:"id"`
|
||||
Name string `json:"name"`
|
||||
Status string `json:"status"`
|
||||
}
|
||||
12
EdgeAPI/internal/dnsclients/gname/response_records.go
Normal file
12
EdgeAPI/internal/dnsclients/gname/response_records.go
Normal file
@@ -0,0 +1,12 @@
|
||||
package gname
|
||||
|
||||
type RecordsResponse []Record
|
||||
|
||||
type Record struct {
|
||||
Id string `json:"id"`
|
||||
Name string `json:"name"`
|
||||
Type string `json:"type"`
|
||||
Value string `json:"value"`
|
||||
TTL int32 `json:"ttl"`
|
||||
Route string `json:"route"` // 线路
|
||||
}
|
||||
1
EdgeAPI/internal/dnsclients/gname/response_routes.go
Normal file
1
EdgeAPI/internal/dnsclients/gname/response_routes.go
Normal file
@@ -0,0 +1 @@
|
||||
package gname
|
||||
Reference in New Issue
Block a user