fix: server api schema (#23)

This commit is contained in:
UUBulb authored and GitHub committed 2024-11-28 17:06:54 +08:00
1 parent 22ab32052e
commit 9d45bf6601
1 file changed
+1 -1
+1 -1
View File
@@ -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"`