mirror of
https://github.com/TeaOSLab/EdgeAPI.git
synced 2026-05-11 03:55:39 +08:00
DNSPod和Alidns记录信息增加缓存
This commit is contained in:
@@ -17,3 +17,26 @@ type Record struct {
|
||||
Route string `json:"route"`
|
||||
TTL int32 `json:"ttl"`
|
||||
}
|
||||
|
||||
func (this *Record) Clone() *Record {
|
||||
return &Record{
|
||||
Id: this.Id,
|
||||
Name: this.Name,
|
||||
Type: this.Type,
|
||||
Value: this.Value,
|
||||
Route: this.Route,
|
||||
TTL: this.TTL,
|
||||
}
|
||||
}
|
||||
|
||||
func (this *Record) Copy(anotherRecord *Record) {
|
||||
if anotherRecord == nil {
|
||||
return
|
||||
}
|
||||
this.Id = anotherRecord.Id
|
||||
this.Name = anotherRecord.Name
|
||||
this.Type = anotherRecord.Type
|
||||
this.Value = anotherRecord.Value
|
||||
this.Route = anotherRecord.Route
|
||||
this.TTL = anotherRecord.TTL
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user