Initial commit (code only without large binaries)

This commit is contained in:
robin
2026-02-15 18:58:44 +08:00
commit 35df75498f
9442 changed files with 1495866 additions and 0 deletions

View File

@@ -0,0 +1,6 @@
// Copyright 2021 Liuxiangchao iwind.liu@gmail.com. All rights reserved.
package huaweidns
type BaseResponse struct {
}

View File

@@ -0,0 +1,10 @@
// Copyright 2021 Liuxiangchao iwind.liu@gmail.com. All rights reserved.
package huaweidns
type CustomLinesResponse struct {
Lines []struct {
LineId string `json:"line_id"`
Name string `json:"name"`
} `json:"lines"`
}

View File

@@ -0,0 +1,14 @@
// Copyright 2021 Liuxiangchao iwind.liu@gmail.com. All rights reserved.
package huaweidns
type RecordSetsResponse struct {
RecordSets []struct {
Id string `json:"id"`
Name string `json:"name"`
Type string `json:"type"`
Ttl int `json:"ttl"`
Line string `json:"line"`
Records []string `json:"records"`
} `json:"recordsets"`
}

View File

@@ -0,0 +1,17 @@
// Copyright 2021 Liuxiangchao iwind.liu@gmail.com. All rights reserved.
package huaweidns
type ZoneRecordSetsResponse struct {
RecordSets []struct {
Id string `json:"id"`
Name string `json:"name"`
Type string `json:"type"`
Ttl int `json:"ttl"`
Records []string `json:"records"`
Line string `json:"line"`
} `json:"recordsets"`
Metadata struct {
TotalCount int `json:"total_count"`
} `json:"metadata"`
}

View File

@@ -0,0 +1,17 @@
// Copyright 2021 Liuxiangchao iwind.liu@gmail.com. All rights reserved.
package huaweidns
type ZonesResponse struct {
Links struct{} `json:"links"`
Zones []struct {
Id string `json:"id"`
Name string `json:"name"`
ZoneType string `json:"zone_type"`
Status string `json:"status"`
RecordNum int `json:"record_num"`
} `json:"zones"`
Metadata struct {
TotalCount int `json:"total_count"`
} `json:"metadata"`
}

View File

@@ -0,0 +1,9 @@
// Copyright 2021 Liuxiangchao iwind.liu@gmail.com. All rights reserved.
package huaweidns
type ZonesCreateRecordSetResponse struct {
Id string `json:"id"`
Line string `json:"line"`
Records []string `json:"records"`
}

View File

@@ -0,0 +1,7 @@
// Copyright 2021 Liuxiangchao iwind.liu@gmail.com. All rights reserved.
package huaweidns
type ZonesDeleteRecordSetResponse struct {
Id string `json:"id"`
}

View File

@@ -0,0 +1,9 @@
// Copyright 2021 Liuxiangchao iwind.liu@gmail.com. All rights reserved.
package huaweidns
type ZonesUpdateRecordSetResponse struct {
Id string `json:"id"`
Line string `json:"line"`
Records []string `json:"records"`
}