Files
waf-platform/EdgeDNS/internal/models/record_key.go
2026-02-04 20:27:13 +08:00

13 lines
334 B
Go

// Copyright 2022 Liuxiangchao iwind.liu@gmail.com. All rights reserved. Official site: https://goedge.cn .
package models
import "strings"
type RecordKey string
func NewRecordKey(recordName string, recordType string) RecordKey {
// 记录名全部使用小写
return RecordKey(strings.ToLower(recordName) + "|" + recordType)
}