2022-09-15 02:44:43 +00:00
|
|
|
package dto
|
|
|
|
|
2023-01-06 10:53:25 +00:00
|
|
|
import "time"
|
|
|
|
|
2022-09-15 02:44:43 +00:00
|
|
|
type SettingInfo struct {
|
2023-01-09 14:55:10 +00:00
|
|
|
UserName string `json:"userName"`
|
|
|
|
Email string `json:"email"`
|
|
|
|
SystemVersion string `json:"systemVersion"`
|
2022-09-15 02:44:43 +00:00
|
|
|
|
2022-12-22 10:06:49 +00:00
|
|
|
SessionTimeout string `json:"sessionTimeout"`
|
2022-09-09 09:17:02 +00:00
|
|
|
LocalTime string `json:"localTime"`
|
2023-05-22 09:45:39 +00:00
|
|
|
TimeZone string `json:"timeZone"`
|
|
|
|
NtpSite string `json:"ntpSite"`
|
2022-09-15 02:44:43 +00:00
|
|
|
|
2023-01-29 08:38:34 +00:00
|
|
|
Port string `json:"port"`
|
2022-09-15 02:44:43 +00:00
|
|
|
PanelName string `json:"panelName"`
|
|
|
|
Theme string `json:"theme"`
|
|
|
|
Language string `json:"language"`
|
|
|
|
|
2022-12-22 10:06:49 +00:00
|
|
|
ServerPort string `json:"serverPort"`
|
2023-04-25 06:34:16 +00:00
|
|
|
SSL string `json:"ssl"`
|
|
|
|
SSLType string `json:"sslType"`
|
2023-05-19 13:47:46 +00:00
|
|
|
BindDomain string `json:"bindDomain"`
|
|
|
|
AllowIPs string `json:"allowIPs"`
|
2022-09-15 02:44:43 +00:00
|
|
|
SecurityEntrance string `json:"securityEntrance"`
|
2022-12-22 10:06:49 +00:00
|
|
|
ExpirationDays string `json:"expirationDays"`
|
2022-09-29 08:15:59 +00:00
|
|
|
ExpirationTime string `json:"expirationTime"`
|
2022-09-15 02:44:43 +00:00
|
|
|
ComplexityVerification string `json:"complexityVerification"`
|
|
|
|
MFAStatus string `json:"mfaStatus"`
|
2022-09-14 15:27:17 +00:00
|
|
|
MFASecret string `json:"mfaSecret"`
|
2022-09-15 02:44:43 +00:00
|
|
|
|
|
|
|
MonitorStatus string `json:"monitorStatus"`
|
2022-12-22 10:06:49 +00:00
|
|
|
MonitorStoreDays string `json:"monitorStoreDays"`
|
2022-09-15 02:44:43 +00:00
|
|
|
|
|
|
|
MessageType string `json:"messageType"`
|
|
|
|
EmailVars string `json:"emailVars"`
|
|
|
|
WeChatVars string `json:"weChatVars"`
|
|
|
|
DingVars string `json:"dingVars"`
|
2023-02-10 10:07:29 +00:00
|
|
|
|
2023-05-15 14:40:05 +00:00
|
|
|
AppStoreVersion string `json:"appStoreVersion"`
|
|
|
|
AppStoreLastModified string `json:"appStoreLastModified"`
|
2022-09-15 02:44:43 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
type SettingUpdate struct {
|
|
|
|
Key string `json:"key" validate:"required"`
|
|
|
|
Value string `json:"value"`
|
|
|
|
}
|
2022-09-08 10:47:15 +00:00
|
|
|
|
2023-04-25 06:34:16 +00:00
|
|
|
type SSLUpdate struct {
|
|
|
|
SSLType string `json:"sslType"`
|
|
|
|
Domain string `json:"domain"`
|
|
|
|
SSL string `json:"ssl" validate:"required,oneof=enable disable"`
|
|
|
|
Cert string `json:"cert"`
|
|
|
|
Key string `json:"key"`
|
|
|
|
SSLID uint `json:"sslID"`
|
|
|
|
}
|
|
|
|
type SSLInfo struct {
|
|
|
|
Domain string `json:"domain"`
|
|
|
|
Timeout string `json:"timeout"`
|
|
|
|
RootPath string `json:"rootPath"`
|
|
|
|
Cert string `json:"cert"`
|
|
|
|
Key string `json:"key"`
|
|
|
|
SSLID uint `json:"sslID"`
|
|
|
|
}
|
|
|
|
|
2022-09-08 10:47:15 +00:00
|
|
|
type PasswordUpdate struct {
|
|
|
|
OldPassword string `json:"oldPassword" validate:"required"`
|
|
|
|
NewPassword string `json:"newPassword" validate:"required"`
|
|
|
|
}
|
2023-01-06 10:53:25 +00:00
|
|
|
|
2023-01-29 08:38:34 +00:00
|
|
|
type PortUpdate struct {
|
|
|
|
ServerPort uint `json:"serverPort" validate:"required,number,max=65535,min=1"`
|
|
|
|
}
|
|
|
|
|
2023-01-06 10:53:25 +00:00
|
|
|
type SnapshotCreate struct {
|
2023-04-05 13:58:28 +00:00
|
|
|
From string `json:"from" validate:"required,oneof=OSS S3 SFTP MINIO COS KODO"`
|
2023-05-04 09:44:41 +00:00
|
|
|
Description string `json:"description" validate:"max=256"`
|
2023-01-06 10:53:25 +00:00
|
|
|
}
|
2023-01-09 14:55:10 +00:00
|
|
|
type SnapshotRecover struct {
|
|
|
|
IsNew bool `json:"isNew"`
|
|
|
|
ReDownload bool `json:"reDownload"`
|
|
|
|
ID uint `json:"id" validate:"required"`
|
|
|
|
}
|
2023-02-13 07:48:18 +00:00
|
|
|
type SnapshotImport struct {
|
|
|
|
From string `json:"from"`
|
|
|
|
Names []string `json:"names"`
|
2023-05-04 09:44:41 +00:00
|
|
|
Description string `json:"description" validate:"max=256"`
|
2023-02-13 07:48:18 +00:00
|
|
|
}
|
2023-01-06 10:53:25 +00:00
|
|
|
type SnapshotInfo struct {
|
|
|
|
ID uint `json:"id"`
|
|
|
|
Name string `json:"name"`
|
2023-05-04 09:44:41 +00:00
|
|
|
Description string `json:"description" validate:"max=256"`
|
2023-01-09 14:55:10 +00:00
|
|
|
From string `json:"from"`
|
2023-01-06 10:53:25 +00:00
|
|
|
Status string `json:"status"`
|
|
|
|
Message string `json:"message"`
|
|
|
|
CreatedAt time.Time `json:"createdAt"`
|
2023-01-09 14:55:10 +00:00
|
|
|
Version string `json:"version"`
|
|
|
|
|
|
|
|
InterruptStep string `json:"interruptStep"`
|
|
|
|
RecoverStatus string `json:"recoverStatus"`
|
|
|
|
RecoverMessage string `json:"recoverMessage"`
|
|
|
|
LastRecoveredAt string `json:"lastRecoveredAt"`
|
|
|
|
RollbackStatus string `json:"rollbackStatus"`
|
|
|
|
RollbackMessage string `json:"rollbackMessage"`
|
|
|
|
LastRollbackedAt string `json:"lastRollbackedAt"`
|
|
|
|
}
|
|
|
|
|
|
|
|
type UpgradeInfo struct {
|
2023-03-21 07:16:28 +00:00
|
|
|
NewVersion string `json:"newVersion"`
|
|
|
|
LatestVersion string `json:"latestVersion"`
|
|
|
|
ReleaseNote string `json:"releaseNote"`
|
2023-01-30 13:05:20 +00:00
|
|
|
}
|
2023-03-21 07:16:28 +00:00
|
|
|
|
2023-05-22 09:45:39 +00:00
|
|
|
type SyncTimeZone struct {
|
|
|
|
NtpSite string `json:"ntpSite"`
|
|
|
|
TimeZone string `json:"timeZone"`
|
|
|
|
}
|
|
|
|
|
2023-01-30 13:05:20 +00:00
|
|
|
type Upgrade struct {
|
|
|
|
Version string `json:"version"`
|
2023-01-06 10:53:25 +00:00
|
|
|
}
|