mirror of
https://github.com/Rain-kl/OpenFlare.git
synced 2026-11-16 23:04:24 +08:00
feat(cloudflare): 支持分组级自动与手动 TTL 配置 (#62)
This commit is contained in:
@@ -60,6 +60,8 @@ type CFPointingGroup struct {
|
||||
Enabled bool `json:"enabled" gorm:"not null;default:false"`
|
||||
CreatedAt time.Time `json:"created_at" gorm:"autoCreateTime"`
|
||||
UpdatedAt time.Time `json:"updated_at" gorm:"autoUpdateTime"`
|
||||
// TTL 为 1 时表示自动;零值兼容旧分组的 300 秒 TTL。
|
||||
TTL int `json:"ttl" gorm:"not null;default:0"`
|
||||
}
|
||||
|
||||
// TableName returns the Cloudflare pointing group table name.
|
||||
|
||||
Reference in New Issue
Block a user