nezha/model/setting_api.go

25 lines
1.3 KiB
Go
Raw Normal View History

2024-10-27 13:10:07 +08:00
package model
type SettingForm struct {
2024-11-16 20:57:03 +08:00
CustomNameservers string `json:"custom_nameservers,omitempty" validate:"optional"`
IgnoredIPNotification string `json:"ignored_ip_notification,omitempty" validate:"optional"`
2024-10-27 13:10:07 +08:00
IPChangeNotificationGroupID uint64 `json:"ip_change_notification_group_id,omitempty"` // IP变更提醒的通知组
Cover uint8 `json:"cover,omitempty"`
2024-11-23 16:36:16 +08:00
SiteName string `json:"site_name,omitempty" minLength:"1"`
Language string `json:"language,omitempty" minLength:"2"`
2024-11-16 20:57:03 +08:00
InstallHost string `json:"install_host,omitempty" validate:"optional"`
CustomCode string `json:"custom_code,omitempty" validate:"optional"`
CustomCodeDashboard string `json:"custom_code_dashboard,omitempty" validate:"optional"`
2024-11-23 16:36:16 +08:00
RealIPHeader string `json:"real_ip_header,omitempty" validate:"optional"` // 真实IP
2024-10-27 13:10:07 +08:00
2024-12-04 20:00:18 +08:00
TLS bool `json:"tls,omitempty" validate:"optional"`
2024-11-16 20:57:03 +08:00
EnableIPChangeNotification bool `json:"enable_ip_change_notification,omitempty" validate:"optional"`
EnablePlainIPInNotification bool `json:"enable_plain_ip_in_notification,omitempty" validate:"optional"`
2024-10-27 13:10:07 +08:00
}
2024-12-04 20:00:18 +08:00
type SettingResponse struct {
Config
Version string `json:"version,omitempty"`
}