From 9d45bf6601429e1abccc5a6a46d449db2a847f1b Mon Sep 17 00:00:00 2001 From: UUBulb <35923940+uubulb@users.noreply.github.com> Date: Thu, 28 Nov 2024 17:06:54 +0800 Subject: [PATCH] fix: server api schema (#23) --- model/server.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/model/server.go b/model/server.go index 5e2fcd1..3f2b88f 100644 --- a/model/server.go +++ b/model/server.go @@ -23,7 +23,7 @@ type Server struct { EnableDDNS bool `json:"enable_ddns,omitempty"` // 启用DDNS DDNSProfilesRaw string `gorm:"default:'[]';column:ddns_profiles_raw" json:"-"` - DDNSProfiles []uint64 `gorm:"-" json:"ddns_profiles,omitempty"` // DDNS配置 + DDNSProfiles []uint64 `gorm:"-" json:"ddns_profiles,omitempty" validate:"optional"` // DDNS配置 Host *Host `gorm:"-" json:"host,omitempty"` State *HostState `gorm:"-" json:"state,omitempty"`