2022-09-15 10:44:43 +08:00
|
|
|
package dto
|
|
|
|
|
2023-01-06 18:53:25 +08:00
|
|
|
import "time"
|
|
|
|
|
2022-09-15 10:44:43 +08:00
|
|
|
type SettingInfo struct {
|
2023-11-28 15:00:10 +08:00
|
|
|
UserName string `json:"userName"`
|
|
|
|
Email string `json:"email"`
|
|
|
|
SystemIP string `json:"systemIP"`
|
|
|
|
SystemVersion string `json:"systemVersion"`
|
|
|
|
DockerSockPath string `json:"dockerSockPath"`
|
2024-04-24 23:12:12 +08:00
|
|
|
DeveloperMode string `json:"developerMode"`
|
2022-09-15 10:44:43 +08:00
|
|
|
|
2022-12-22 18:06:49 +08:00
|
|
|
SessionTimeout string `json:"sessionTimeout"`
|
2022-09-09 17:17:02 +08:00
|
|
|
LocalTime string `json:"localTime"`
|
2023-05-22 17:45:39 +08:00
|
|
|
TimeZone string `json:"timeZone"`
|
|
|
|
NtpSite string `json:"ntpSite"`
|
2022-09-15 10:44:43 +08:00
|
|
|
|
2023-09-18 17:22:21 +08:00
|
|
|
Port string `json:"port"`
|
2023-10-25 10:41:26 +08:00
|
|
|
Ipv6 string `json:"ipv6"`
|
|
|
|
BindAddress string `json:"bindAddress"`
|
2023-09-18 17:22:21 +08:00
|
|
|
PanelName string `json:"panelName"`
|
|
|
|
Theme string `json:"theme"`
|
2024-04-15 15:10:24 +08:00
|
|
|
MenuTabs string `json:"menuTabs"`
|
2023-09-18 17:22:21 +08:00
|
|
|
Language string `json:"language"`
|
|
|
|
DefaultNetwork string `json:"defaultNetwork"`
|
2023-09-28 15:40:17 +08:00
|
|
|
LastCleanTime string `json:"lastCleanTime"`
|
|
|
|
LastCleanSize string `json:"lastCleanSize"`
|
|
|
|
LastCleanData string `json:"lastCleanData"`
|
2022-09-15 10:44:43 +08:00
|
|
|
|
2022-12-22 18:06:49 +08:00
|
|
|
ServerPort string `json:"serverPort"`
|
2023-04-25 14:34:16 +08:00
|
|
|
SSL string `json:"ssl"`
|
|
|
|
SSLType string `json:"sslType"`
|
2023-05-19 21:47:46 +08:00
|
|
|
BindDomain string `json:"bindDomain"`
|
|
|
|
AllowIPs string `json:"allowIPs"`
|
2022-09-15 10:44:43 +08:00
|
|
|
SecurityEntrance string `json:"securityEntrance"`
|
2022-12-22 18:06:49 +08:00
|
|
|
ExpirationDays string `json:"expirationDays"`
|
2022-09-29 16:15:59 +08:00
|
|
|
ExpirationTime string `json:"expirationTime"`
|
2022-09-15 10:44:43 +08:00
|
|
|
ComplexityVerification string `json:"complexityVerification"`
|
|
|
|
MFAStatus string `json:"mfaStatus"`
|
2022-09-14 23:27:17 +08:00
|
|
|
MFASecret string `json:"mfaSecret"`
|
2023-06-25 17:52:13 +08:00
|
|
|
MFAInterval string `json:"mfaInterval"`
|
2022-09-15 10:44:43 +08:00
|
|
|
|
|
|
|
MonitorStatus string `json:"monitorStatus"`
|
2023-05-25 18:02:17 +08:00
|
|
|
MonitorInterval string `json:"monitorInterval"`
|
2022-12-22 18:06:49 +08:00
|
|
|
MonitorStoreDays string `json:"monitorStoreDays"`
|
2022-09-15 10:44:43 +08:00
|
|
|
|
|
|
|
MessageType string `json:"messageType"`
|
|
|
|
EmailVars string `json:"emailVars"`
|
|
|
|
WeChatVars string `json:"weChatVars"`
|
|
|
|
DingVars string `json:"dingVars"`
|
2023-02-10 18:07:29 +08:00
|
|
|
|
2023-05-15 22:40:05 +08:00
|
|
|
AppStoreVersion string `json:"appStoreVersion"`
|
|
|
|
AppStoreLastModified string `json:"appStoreLastModified"`
|
2023-11-03 18:18:12 +08:00
|
|
|
AppStoreSyncStatus string `json:"appStoreSyncStatus"`
|
2023-12-04 14:56:09 +08:00
|
|
|
|
|
|
|
FileRecycleBin string `json:"fileRecycleBin"`
|
2024-03-12 11:04:08 +08:00
|
|
|
|
|
|
|
SnapshotIgnore string `json:"snapshotIgnore"`
|
2024-04-03 14:11:12 +08:00
|
|
|
XpackHideMenu string `json:"xpackHideMenu"`
|
2024-04-09 22:46:09 +08:00
|
|
|
NoAuthSetting string `json:"noAuthSetting"`
|
2024-05-29 11:05:09 +08:00
|
|
|
|
|
|
|
ProxyUrl string `json:"proxyUrl"`
|
|
|
|
ProxyType string `json:"proxyType"`
|
|
|
|
ProxyPort string `json:"proxyPort"`
|
|
|
|
ProxyUser string `json:"proxyUser"`
|
|
|
|
ProxyPasswd string `json:"proxyPasswd"`
|
|
|
|
ProxyPasswdKeep string `json:"proxyPasswdKeep"`
|
2022-09-15 10:44:43 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
type SettingUpdate struct {
|
|
|
|
Key string `json:"key" validate:"required"`
|
|
|
|
Value string `json:"value"`
|
|
|
|
}
|
2022-09-08 18:47:15 +08:00
|
|
|
|
2023-04-25 14:34:16 +08:00
|
|
|
type SSLUpdate struct {
|
2023-12-25 17:10:10 +08:00
|
|
|
SSLType string `json:"sslType" validate:"required,oneof=self select import import-paste import-local"`
|
2023-04-25 14:34:16 +08:00
|
|
|
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 18:47:15 +08:00
|
|
|
type PasswordUpdate struct {
|
|
|
|
OldPassword string `json:"oldPassword" validate:"required"`
|
|
|
|
NewPassword string `json:"newPassword" validate:"required"`
|
|
|
|
}
|
2023-01-06 18:53:25 +08:00
|
|
|
|
2023-01-29 16:38:34 +08:00
|
|
|
type PortUpdate struct {
|
|
|
|
ServerPort uint `json:"serverPort" validate:"required,number,max=65535,min=1"`
|
|
|
|
}
|
|
|
|
|
2023-08-23 17:16:18 +08:00
|
|
|
type SnapshotStatus struct {
|
2023-08-24 22:26:16 +08:00
|
|
|
Panel string `json:"panel"`
|
|
|
|
PanelInfo string `json:"panelInfo"`
|
|
|
|
DaemonJson string `json:"daemonJson"`
|
|
|
|
AppData string `json:"appData"`
|
|
|
|
PanelData string `json:"panelData"`
|
|
|
|
BackupData string `json:"backupData"`
|
2023-08-23 17:16:18 +08:00
|
|
|
|
|
|
|
Compress string `json:"compress"`
|
2023-09-08 23:12:13 +08:00
|
|
|
Size string `json:"size"`
|
2023-08-23 17:16:18 +08:00
|
|
|
Upload string `json:"upload"`
|
|
|
|
}
|
|
|
|
|
2023-01-06 18:53:25 +08:00
|
|
|
type SnapshotCreate struct {
|
2024-01-25 13:55:11 +08:00
|
|
|
ID uint `json:"id"`
|
|
|
|
From string `json:"from" validate:"required"`
|
|
|
|
DefaultDownload string `json:"defaultDownload" validate:"required"`
|
|
|
|
Description string `json:"description" validate:"max=256"`
|
2024-06-04 16:48:31 +08:00
|
|
|
Secret string `json:"secret"`
|
2023-01-06 18:53:25 +08:00
|
|
|
}
|
2023-01-09 22:55:10 +08:00
|
|
|
type SnapshotRecover struct {
|
2024-06-04 16:48:31 +08:00
|
|
|
IsNew bool `json:"isNew"`
|
|
|
|
ReDownload bool `json:"reDownload"`
|
|
|
|
ID uint `json:"id" validate:"required"`
|
|
|
|
Secret string `json:"secret"`
|
2023-01-09 22:55:10 +08:00
|
|
|
}
|
2024-05-31 17:31:19 +08:00
|
|
|
type SnapshotBatchDelete struct {
|
|
|
|
DeleteWithFile bool `json:"deleteWithFile"`
|
|
|
|
Ids []uint `json:"ids" validate:"required"`
|
|
|
|
}
|
2023-02-13 15:48:18 +08:00
|
|
|
type SnapshotImport struct {
|
|
|
|
From string `json:"from"`
|
|
|
|
Names []string `json:"names"`
|
2023-05-04 17:44:41 +08:00
|
|
|
Description string `json:"description" validate:"max=256"`
|
2023-02-13 15:48:18 +08:00
|
|
|
}
|
2023-01-06 18:53:25 +08:00
|
|
|
type SnapshotInfo struct {
|
2024-01-25 17:24:09 +08:00
|
|
|
ID uint `json:"id"`
|
|
|
|
Name string `json:"name"`
|
|
|
|
Description string `json:"description" validate:"max=256"`
|
|
|
|
From string `json:"from"`
|
|
|
|
DefaultDownload string `json:"defaultDownload"`
|
|
|
|
Status string `json:"status"`
|
|
|
|
Message string `json:"message"`
|
|
|
|
CreatedAt time.Time `json:"createdAt"`
|
|
|
|
Version string `json:"version"`
|
2024-06-18 18:08:54 +08:00
|
|
|
Size int64 `json:"size"`
|
2023-01-09 22:55:10 +08:00
|
|
|
|
|
|
|
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 {
|
2024-04-24 23:12:12 +08:00
|
|
|
TestVersion string `json:"testVersion"`
|
2023-03-21 15:16:28 +08:00
|
|
|
NewVersion string `json:"newVersion"`
|
|
|
|
LatestVersion string `json:"latestVersion"`
|
|
|
|
ReleaseNote string `json:"releaseNote"`
|
2023-01-30 21:05:20 +08:00
|
|
|
}
|
2023-03-21 15:16:28 +08:00
|
|
|
|
2023-05-24 15:43:21 +08:00
|
|
|
type SyncTime struct {
|
2023-10-27 14:19:26 +08:00
|
|
|
NtpSite string `json:"ntpSite" validate:"required"`
|
2023-05-22 17:45:39 +08:00
|
|
|
}
|
|
|
|
|
2023-10-25 10:41:26 +08:00
|
|
|
type BindInfo struct {
|
|
|
|
Ipv6 string `json:"ipv6" validate:"required,oneof=enable disable"`
|
|
|
|
BindAddress string `json:"bindAddress" validate:"required"`
|
|
|
|
}
|
|
|
|
|
2023-01-30 21:05:20 +08:00
|
|
|
type Upgrade struct {
|
2023-10-27 14:19:26 +08:00
|
|
|
Version string `json:"version" validate:"required"`
|
2023-01-06 18:53:25 +08:00
|
|
|
}
|
2023-09-28 15:40:17 +08:00
|
|
|
|
2024-05-29 11:05:09 +08:00
|
|
|
type ProxyUpdate struct {
|
|
|
|
ProxyUrl string `json:"proxyUrl"`
|
|
|
|
ProxyType string `json:"proxyType"`
|
|
|
|
ProxyPort string `json:"proxyPort"`
|
|
|
|
ProxyUser string `json:"proxyUser"`
|
|
|
|
ProxyPasswd string `json:"proxyPasswd"`
|
|
|
|
ProxyPasswdKeep string `json:"proxyPasswdKeep"`
|
|
|
|
}
|
|
|
|
|
2023-09-28 15:40:17 +08:00
|
|
|
type CleanData struct {
|
|
|
|
SystemClean []CleanTree `json:"systemClean"`
|
|
|
|
UploadClean []CleanTree `json:"uploadClean"`
|
|
|
|
DownloadClean []CleanTree `json:"downloadClean"`
|
|
|
|
SystemLogClean []CleanTree `json:"systemLogClean"`
|
2024-05-17 14:02:37 +08:00
|
|
|
ContainerClean []CleanTree `json:"containerClean"`
|
2023-09-28 15:40:17 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
type CleanTree struct {
|
|
|
|
ID string `json:"id"`
|
|
|
|
Label string `json:"label"`
|
|
|
|
Children []CleanTree `json:"children"`
|
|
|
|
|
|
|
|
Type string `json:"type"`
|
|
|
|
Name string `json:"name"`
|
|
|
|
|
|
|
|
Size uint64 `json:"size"`
|
|
|
|
IsCheck bool `json:"isCheck"`
|
|
|
|
IsRecommend bool `json:"isRecommend"`
|
|
|
|
}
|
|
|
|
|
|
|
|
type Clean struct {
|
|
|
|
TreeType string `json:"treeType"`
|
|
|
|
Name string `json:"name"`
|
|
|
|
Size uint64 `json:"size"`
|
|
|
|
}
|
2024-05-17 17:54:38 +08:00
|
|
|
|
|
|
|
type XpackHideMenu struct {
|
|
|
|
ID string `json:"id"`
|
|
|
|
Label string `json:"label"`
|
|
|
|
IsCheck bool `json:"isCheck"`
|
|
|
|
Title string `json:"title"`
|
|
|
|
Path string `json:"path,omitempty"`
|
|
|
|
Children []XpackHideMenu `json:"children,omitempty"`
|
|
|
|
}
|