dto

package
v0.0.0-...-929cd38 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 2, 2026 License: GPL-3.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ApiInterfaceConfig

type ApiInterfaceConfig struct {
	ApiInterfaceStatus string `json:"apiInterfaceStatus"`
	ApiKey             string `json:"apiKey"`
	IpWhiteList        string `json:"ipWhiteList"`
	ApiKeyValidityTime int    `json:"apiKeyValidityTime"`
}

type AppstoreConfig

type AppstoreConfig struct {
	UninstallDeleteImage  string `json:"uninstallDeleteImage"`
	UpgradeBackup         string `json:"upgradeBackup"`
	UninstallDeleteBackup string `json:"uninstallDeleteBackup"`
	InstallAllowPort      string `json:"installAllowPort"`
}

type AppstoreUpdate

type AppstoreUpdate struct {
	Scope  string `json:"scope" validate:"required,oneof=UninstallDeleteImage UpgradeBackup UninstallDeleteBackup InstallAllowPort"`
	Status string `json:"status"  validate:"required,oneof=Disable Enable"`
}

type BackupClientInfo

type BackupClientInfo struct {
	ClientID     string `json:"client_id"`
	ClientSecret string `json:"client_secret"`
	RedirectUri  string `json:"redirect_uri"`
}

type BackupInfo

type BackupInfo struct {
	ID         uint      `json:"id"`
	Name       string    `json:"name"`
	Type       string    `json:"type"`
	IsPublic   bool      `json:"isPublic"`
	Bucket     string    `json:"bucket"`
	AccessKey  string    `json:"accessKey"`
	Credential string    `json:"credential"`
	BackupPath string    `json:"backupPath"`
	Vars       string    `json:"vars"`
	CreatedAt  time.Time `json:"createdAt"`

	RememberAuth bool `json:"rememberAuth"`
}

type BackupOperate

type BackupOperate struct {
	ID         uint   `json:"id"`
	Name       string `json:"name"`
	Type       string `json:"type" validate:"required"`
	IsPublic   bool   `json:"isPublic"`
	Bucket     string `json:"bucket"`
	AccessKey  string `json:"accessKey"`
	Credential string `json:"credential"`
	BackupPath string `json:"backupPath"`
	Vars       string `json:"vars" validate:"required"`

	RememberAuth bool `json:"rememberAuth"`
}

type BindInfo

type BindInfo struct {
	Ipv6        string `json:"ipv6" validate:"required,oneof=Enable Disable"`
	BindAddress string `json:"bindAddress" validate:"required"`
}

type CaptchaResponse

type CaptchaResponse struct {
	CaptchaID string `json:"captchaID"`
	ImagePath string `json:"imagePath"`
}

type Clean

type Clean struct {
	TreeType string `json:"treeType"`
	Name     string `json:"name"`
	Size     uint64 `json:"size"`
}

type CleanData

type CleanData struct {
	SystemClean    []CleanTree `json:"systemClean"`
	UploadClean    []CleanTree `json:"uploadClean"`
	DownloadClean  []CleanTree `json:"downloadClean"`
	SystemLogClean []CleanTree `json:"systemLogClean"`
	ContainerClean []CleanTree `json:"containerClean"`
}

type CleanLog

type CleanLog struct {
	LogType string `json:"logType" validate:"required,oneof=login operation"`
}

type CleanTree

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 CommandDelete

type CommandDelete struct {
	Type string `json:"type" validate:"required,oneof=redis command"`
	IDs  []uint `json:"ids"`
}

type CommandImport

type CommandImport struct {
	Items []CommandOperate `json:"items"`
}

type CommandInfo

type CommandInfo struct {
	ID          uint   `json:"id"`
	GroupID     uint   `json:"groupID"`
	Name        string `json:"name"`
	Type        string `json:"type"`
	Command     string `json:"command"`
	GroupBelong string `json:"groupBelong"`
}

type CommandOperate

type CommandOperate struct {
	ID          uint   `json:"id"`
	Type        string `json:"type"`
	GroupID     uint   `json:"groupID"`
	GroupBelong string `json:"groupBelong"`
	Name        string `json:"name" validate:"required"`
	Command     string `json:"command" validate:"required"`
}

type CommandTree

type CommandTree struct {
	Label    string        `json:"label"`
	Value    string        `json:"value"`
	Children []CommandTree `json:"children"`
}

type CurrentUserInfo

type CurrentUserInfo struct {
	Name              string `json:"name"`
	MFAStatus         string `json:"mfaStatus"`
	MFAInterval       int    `json:"mfaInterval"`
	ComplexitySetting string `json:"complexitySetting"`

	ApiInterfaceStatus string `json:"apiInterfaceStatus"`
	ApiKey             string `json:"apiKey"`
	IpWhiteList        string `json:"ipWhiteList"`
	ApiKeyValidityTime int    `json:"apiKeyValidityTime"`

	Role        string                `json:"role"`
	Permissions []string              `json:"permissions"`
	NodeRoles   []CurrentUserNodeRole `json:"nodeRoles"`
}

type CurrentUserNodeRole

type CurrentUserNodeRole struct {
	NodeID   uint   `json:"nodeId"`
	NodeName string `json:"nodeName"`
	RoleID   uint   `json:"roleId"`
	RoleName string `json:"roleName"`
}

type CurrentUserUpdate

type CurrentUserUpdate struct {
	Name        string `json:"name" validate:"required"`
	Password    string `json:"password"`
	OldPassword string `json:"oldPassword"`
}

type ForBuckets

type ForBuckets struct {
	Type       string `json:"type" validate:"required"`
	AccessKey  string `json:"accessKey"`
	Credential string `json:"credential" validate:"required"`
	Vars       string `json:"vars" validate:"required"`
}

type GroupCreate

type GroupCreate struct {
	ID   uint   `json:"id"`
	Name string `json:"name" validate:"required"`
	Type string `json:"type" validate:"required"`
}

type GroupInfo

type GroupInfo struct {
	ID        uint   `json:"id"`
	Name      string `json:"name"`
	Type      string `json:"type"`
	IsDefault bool   `json:"isDefault"`
}

type GroupSearch

type GroupSearch struct {
	Type string `json:"type" validate:"required"`
}

type GroupUpdate

type GroupUpdate struct {
	ID        uint   `json:"id"`
	Name      string `json:"name"`
	Type      string `json:"type" validate:"required"`
	IsDefault bool   `json:"isDefault"`
}

type Login

type Login struct {
	Name      string `json:"name" validate:"required"`
	Password  string `json:"password" validate:"required"`
	Captcha   string `json:"captcha"`
	CaptchaID string `json:"captchaID"`
	Language  string `json:"language" validate:"required,oneof=zh en 'zh-Hant' ko ja ru ms 'pt-BR' tr 'es-ES'"`
}

type LoginLog

type LoginLog struct {
	ID        uint      `json:"id"`
	IP        string    `json:"ip"`
	User      string    `json:"user"`
	Address   string    `json:"address"`
	Agent     string    `json:"agent"`
	Status    string    `json:"status"`
	Message   string    `json:"message"`
	CreatedAt time.Time `json:"createdAt"`
}

type LoginSetting

type LoginSetting struct {
	IsDemo         bool   `json:"isDemo"`
	IsIntl         bool   `json:"isIntl"`
	IsOffline      bool   `json:"isOffline"`
	IsFxplay       bool   `json:"isFxplay"`
	IsEnterprise   bool   `json:"isEnterprise"`
	Language       string `json:"language"`
	MenuTabs       string `json:"menuTabs"`
	PanelName      string `json:"panelName"`
	Theme          string `json:"theme"`
	NeedCaptcha    bool   `json:"needCaptcha"`
	PasskeySetting bool   `json:"passkeySetting"`
}

type MFALogin

type MFALogin struct {
	SessionID string `json:"sessionId" validate:"required"`
	Code      string `json:"code" validate:"required"`
}

mfa

type MemoUpdate

type MemoUpdate struct {
	Content string `json:"content" validate:"max=500"`
}
type MenuLabelSort struct {
	Label string `json:"label"`
	Sort  int    `json:"sort"`
}

type MfaCredential

type MfaCredential struct {
	Secret   string `json:"secret" validate:"required"`
	Code     string `json:"code" validate:"required"`
	Interval int    `json:"interval" validate:"required"`
}

type MfaRequest

type MfaRequest struct {
	Title    string `json:"title" validate:"required"`
	Interval int    `json:"interval" validate:"required"`
}

type OperateByID

type OperateByID struct {
	ID uint `json:"id"`
}

type OperateByIDs

type OperateByIDs struct {
	IDs []uint `json:"ids"`
}

type OperateByName

type OperateByName struct {
	Name string `json:"name"`
}

type OperateByTaskID

type OperateByTaskID struct {
	TaskID string `json:"taskID"`
}

type OperateByType

type OperateByType struct {
	Type string `json:"type"`
}

type OperationLog

type OperationLog struct {
	ID        uint   `json:"id"`
	Source    string `json:"source"`
	User      string `json:"user"`
	Node      string `json:"node"`
	IP        string `json:"ip"`
	Path      string `json:"path"`
	Method    string `json:"method"`
	UserAgent string `json:"userAgent"`

	Latency time.Duration `json:"latency"`
	Status  string        `json:"status"`
	Message string        `json:"message"`

	DetailZH  string    `json:"detailZH"`
	DetailEN  string    `json:"detailEN"`
	CreatedAt time.Time `json:"createdAt"`
}

type Options

type Options struct {
	Option string `json:"option"`
}

type PageInfo

type PageInfo struct {
	Page     int `json:"page" validate:"required,number"`
	PageSize int `json:"pageSize" validate:"required,number"`
}

type PageResult

type PageResult struct {
	Total int64       `json:"total"`
	Items interface{} `json:"items"`
}

type PasskeyBeginResponse

type PasskeyBeginResponse struct {
	SessionID string      `json:"sessionId"`
	PublicKey interface{} `json:"publicKey"`
}

type PasskeyID

type PasskeyID struct {
	ID string `json:"id" validate:"required"`
}

type PasskeyInfo

type PasskeyInfo struct {
	ID         string `json:"id"`
	Name       string `json:"name"`
	CreatedAt  string `json:"createdAt"`
	LastUsedAt string `json:"lastUsedAt"`
}

type PasskeyRegisterRequest

type PasskeyRegisterRequest struct {
	Name string `json:"name" validate:"required"`
}

type PasswordUpdate

type PasswordUpdate struct {
	OldPassword string `json:"oldPassword" validate:"required"`
	NewPassword string `json:"newPassword" validate:"required"`
}

type PortUpdate

type PortUpdate struct {
	ServerPort uint `json:"serverPort" validate:"required,number,max=65535,min=1"`
}

type ProxyUpdate

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"`
	ProxyDocker       bool   `json:"proxyDocker"`
	WithDockerRestart bool   `json:"withDockerRestart"`
}

type ReleasesNotes

type ReleasesNotes struct {
	Version           string `json:"version"`
	CreatedAt         string `json:"createdAt"`
	Content           string `json:"content"`
	NewCount          int    `json:"newCount"`
	OptimizationCount int    `json:"optimizationCount"`
	FixCount          int    `json:"fixCount"`
}

type Response

type Response struct {
	Code    int         `json:"code"`
	Message string      `json:"message"`
	Data    interface{} `json:"data"`
}

type SSLInfo

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"`
}

type SSLUpdate

type SSLUpdate struct {
	SSLType string `json:"sslType" validate:"required,oneof=self select import import-paste import-local"`
	Domain  string `json:"domain"`
	SSL     string `json:"ssl" validate:"required,oneof=Enable Disable Mux"`
	Cert    string `json:"cert"`
	Key     string `json:"key"`
	SSLID   uint   `json:"sslID"`
}

type ScriptInfo

type ScriptInfo struct {
	ID            uint      `json:"id"`
	Name          string    `json:"name"`
	IsInteractive bool      `json:"isInteractive"`
	Lable         string    `json:"lable"`
	Script        string    `json:"script"`
	GroupList     []uint    `json:"groupList"`
	GroupBelong   []string  `json:"groupBelong"`
	IsSystem      bool      `json:"isSystem"`
	Description   string    `json:"description"`
	CreatedAt     time.Time `json:"createdAt"`
}

type ScriptOperate

type ScriptOperate struct {
	ID            uint   `json:"id"`
	IsInteractive bool   `json:"isInteractive"`
	Name          string `json:"name"`
	Script        string `json:"script"`
	Groups        string `json:"groups"`
	Description   string `json:"description"`
}

type SearchCommandWithPage

type SearchCommandWithPage struct {
	PageInfo
	OrderBy string `json:"orderBy" validate:"required,oneof=name command createdAt"`
	Order   string `json:"order" validate:"required,oneof=null ascending descending"`
	GroupID uint   `json:"groupID"`
	Type    string `json:"type" validate:"required,oneof=redis command"`
	Info    string `json:"info"`
}

type SearchLgLogWithPage

type SearchLgLogWithPage struct {
	PageInfo
	Info      string    `json:"info"`
	Status    string    `json:"status"`
	StartTime time.Time `json:"startTime"`
	EndTime   time.Time `json:"endTime"`
}

type SearchOpLogWithPage

type SearchOpLogWithPage struct {
	PageInfo
	Source    string `json:"source"`
	Status    string `json:"status"`
	Node      string `json:"node"`
	Operation string `json:"operation"`
}

type SearchPageWithGroup

type SearchPageWithGroup struct {
	PageInfo
	GroupID uint   `json:"groupID"`
	Info    string `json:"info"`
}

type SearchPageWithType

type SearchPageWithType struct {
	PageInfo
	Type string `json:"type"`
	Info string `json:"info"`
}

type SearchWithPage

type SearchWithPage struct {
	PageInfo
	Info string `json:"info"`
}

type SettingBaseInfo

type SettingBaseInfo struct {
	SystemVersion       string `json:"systemVersion"`
	DeveloperMode       string `json:"developerMode"`
	UpgradeBackupCopies string `json:"upgradeBackupCopies"`

	Port        string `json:"port"`
	Ipv6        string `json:"ipv6"`
	BindAddress string `json:"bindAddress"`
	PanelName   string `json:"panelName"`
	Edition     string `json:"edition"`
	Theme       string `json:"theme"`
	MenuTabs    string `json:"menuTabs"`
	Language    string `json:"language"`
	HideMenu    string `json:"hideMenu"`
	DocSource   string `json:"docSource"`

	ServerPort             string `json:"serverPort"`
	SecurityEntrance       string `json:"securityEntrance"`
	ComplexityVerification string `json:"complexityVerification"`
	NoAuthSetting          string `json:"noAuthSetting"`
	ProxyType              string `json:"proxyType"`

	ScriptSync string `json:"scriptSync"`

	DashboardMemoVisible       string `json:"dashboardMemoVisible"`
	DashboardSimpleNodeVisible string `json:"dashboardSimpleNodeVisible"`
}

type SettingInfo

type SettingInfo struct {
	SystemVersion       string `json:"systemVersion"`
	DeveloperMode       string `json:"developerMode"`
	UpgradeBackupCopies string `json:"upgradeBackupCopies"`

	SessionTimeout string `json:"sessionTimeout"`
	Port           string `json:"port"`
	Ipv6           string `json:"ipv6"`
	BindAddress    string `json:"bindAddress"`
	PanelName      string `json:"panelName"`
	Edition        string `json:"edition"`
	Theme          string `json:"theme"`
	MenuTabs       string `json:"menuTabs"`
	Language       string `json:"language"`
	DocSource      string `json:"docSource"`
	IsOffline      string `json:"isOffline"`

	ServerPort                 string `json:"serverPort"`
	SSL                        string `json:"ssl"`
	SSLType                    string `json:"sslType"`
	BindDomain                 string `json:"bindDomain"`
	PasskeyTrustedProxies      string `json:"passkeyTrustedProxies"`
	AllowIPs                   string `json:"allowIPs"`
	SecurityEntrance           string `json:"securityEntrance"`
	DashboardMemoVisible       string `json:"dashboardMemoVisible"`
	DashboardSimpleNodeVisible string `json:"dashboardSimpleNodeVisible"`
	ExpirationDays             string `json:"expirationDays"`
	ComplexityVerification     string `json:"complexityVerification"`

	AppStoreVersion      string `json:"appStoreVersion"`
	AppStoreLastModified string `json:"appStoreLastModified"`
	AppStoreSyncStatus   string `json:"appStoreSyncStatus"`

	HideMenu      string `json:"hideMenu"`
	NoAuthSetting string `json:"noAuthSetting"`

	ProxyUrl        string `json:"proxyUrl"`
	ProxyType       string `json:"proxyType"`
	ProxyPort       string `json:"proxyPort"`
	ProxyUser       string `json:"proxyUser"`
	ProxyPasswd     string `json:"proxyPasswd"`
	ProxyPasswdKeep string `json:"proxyPasswdKeep"`
}

type SettingUpdate

type SettingUpdate struct {
	Key   string `json:"key" validate:"required,base_setting_key"`
	Value string `json:"value"`
}

type ShowMenu

type ShowMenu struct {
	ID       string     `json:"id"`
	Label    string     `json:"label"`
	Disabled bool       `json:"disabled"`
	IsShow   bool       `json:"isShow"`
	Title    string     `json:"title"`
	Path     string     `json:"path,omitempty"`
	Sort     int        `json:"sort"`
	Children []ShowMenu `json:"children,omitempty"`
}

type SnapshotBatchDelete

type SnapshotBatchDelete struct {
	DeleteWithFile bool   `json:"deleteWithFile"`
	Ids            []uint `json:"ids" validate:"required"`
}

type SnapshotCreate

type SnapshotCreate struct {
	ID              uint   `json:"id"`
	From            string `json:"from" validate:"required"`
	DefaultDownload string `json:"defaultDownload" validate:"required"`
	Description     string `json:"description" validate:"max=256"`
	Secret          string `json:"secret"`
}

type SnapshotImport

type SnapshotImport struct {
	From        string   `json:"from"`
	Names       []string `json:"names"`
	Description string   `json:"description" validate:"max=256"`
}

type SnapshotInfo

type SnapshotInfo struct {
	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"`
	Size            int64     `json:"size"`

	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 SnapshotRecover

type SnapshotRecover struct {
	IsNew      bool   `json:"isNew"`
	ReDownload bool   `json:"reDownload"`
	ID         uint   `json:"id" validate:"required"`
	Secret     string `json:"secret"`
}

type SyncTime

type SyncTime struct {
	NtpSite string `json:"ntpSite" validate:"required"`
}

type SyncToAgent

type SyncToAgent struct {
	Name      string `json:"name" validate:"required"`
	Operation string `json:"operation" validate:"required,oneof=create delere update"`
	Data      string `json:"data"`
}

type SystemSetting

type SystemSetting struct {
	IsDemo   bool   `json:"isDemo"`
	Language string `json:"language"`
	IsIntl   bool   `json:"isIntl"`
}

type TerminalInfo

type TerminalInfo struct {
	LineHeight        string `json:"lineHeight"`
	LetterSpacing     string `json:"letterSpacing"`
	FontSize          string `json:"fontSize"`
	FontFamily        string `json:"fontFamily"`
	BackgroundColor   string `json:"backgroundColor"`
	ForegroundColor   string `json:"foregroundColor"`
	CursorBlink       string `json:"cursorBlink"`
	CursorStyle       string `json:"cursorStyle"`
	Scrollback        string `json:"scrollback"`
	ScrollSensitivity string `json:"scrollSensitivity"`
}

type Upgrade

type Upgrade struct {
	Version string `json:"version" validate:"required"`
}

type UpgradeInfo

type UpgradeInfo struct {
	TestVersion   string `json:"testVersion"`
	NewVersion    string `json:"newVersion"`
	LatestVersion string `json:"latestVersion"`
	ReleaseNote   string `json:"releaseNote"`
}

type UserLoginInfo

type UserLoginInfo struct {
	Name       string `json:"name"`
	Role       string `json:"role"`
	Token      string `json:"token"`
	MfaStatus  string `json:"mfaStatus"`
	MfaSession string `json:"mfaSession"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL