diff --git a/backend/app/api/v1/app.go b/backend/app/api/v1/app.go index 3c431361d..1fa4b086c 100644 --- a/backend/app/api/v1/app.go +++ b/backend/app/api/v1/app.go @@ -13,7 +13,7 @@ import ( // @Summary List apps // @Accept json // @Param request body request.AppSearch true "request" -// @Success 200 +// @Success 200 {object} response.AppRes // @Security ApiKeyAuth // @Security Timestamp // @Router /apps/search [post] @@ -183,7 +183,7 @@ func (b *BaseApi) GetAppTags(c *gin.Context) { // @Tags App // @Summary Get app list update -// @Success 200 +// @Success 200 {object} response.AppUpdateRes // @Security ApiKeyAuth // @Security Timestamp // @Router /apps/checkupdate [get] diff --git a/backend/app/api/v1/app_install.go b/backend/app/api/v1/app_install.go index ad6f88ccc..8acffb7e0 100644 --- a/backend/app/api/v1/app_install.go +++ b/backend/app/api/v1/app_install.go @@ -13,7 +13,7 @@ import ( // @Summary Page app installed // @Accept json // @Param request body request.AppInstalledSearch true "request" -// @Success 200 +// @Success 200 {object} dto.PageResult // @Security ApiKeyAuth // @Security Timestamp // @Router /apps/installed/search [post] @@ -45,7 +45,7 @@ func (b *BaseApi) SearchAppInstalled(c *gin.Context) { // @Tags App // @Summary List app installed // @Accept json -// @Success 200 array dto.AppInstallInfo +// @Success 200 {array} dto.AppInstallInfo // @Security ApiKeyAuth // @Security Timestamp // @Router /apps/installed/list [get] @@ -105,7 +105,7 @@ func (b *BaseApi) LoadPort(c *gin.Context) { // @Accept json // @Param request body dto.OperationWithNameAndType true "request" // @Param key path string true "key" -// @Success 200 {string} response.DatabaseConn +// @Success 200 {object} response.DatabaseConn // @Security ApiKeyAuth // @Security Timestamp // @Router /apps/installed/conninfo/{key} [get] @@ -266,7 +266,7 @@ func (b *BaseApi) GetDefaultConfig(c *gin.Context) { // @Summary Search params by appInstallId // @Accept json // @Param appInstallId path string true "request" -// @Success 200 {object} response.AppParam +// @Success 200 {object} response.AppConfig // @Security ApiKeyAuth // @Security Timestamp // @Router /apps/installed/params/{appInstallId} [get] diff --git a/backend/app/api/v1/auth.go b/backend/app/api/v1/auth.go index 5907c2c9c..e10f4f3a5 100644 --- a/backend/app/api/v1/auth.go +++ b/backend/app/api/v1/auth.go @@ -119,7 +119,7 @@ func (b *BaseApi) GetResponsePage(c *gin.Context) { // @Tags Auth // @Summary Check System isDemo -// @Success 200 +// @Success 200 {boolean} isDemo // @Router /auth/demo [get] func (b *BaseApi) CheckIsDemo(c *gin.Context) { helper.SuccessWithData(c, global.CONF.System.IsDemo) @@ -127,7 +127,7 @@ func (b *BaseApi) CheckIsDemo(c *gin.Context) { // @Tags Auth // @Summary Check System isIntl -// @Success 200 +// @Success 200 {boolean} isIntl // @Router /auth/intl [get] func (b *BaseApi) CheckIsIntl(c *gin.Context) { helper.SuccessWithData(c, global.CONF.System.IsIntl) @@ -135,7 +135,7 @@ func (b *BaseApi) CheckIsIntl(c *gin.Context) { // @Tags Auth // @Summary Load System Language -// @Success 200 +// @Success 200 {string} language // @Router /auth/language [get] func (b *BaseApi) GetLanguage(c *gin.Context) { settingInfo, err := settingService.GetSettingInfo() diff --git a/backend/app/api/v1/backup.go b/backend/app/api/v1/backup.go index 94fc9c816..92349c890 100644 --- a/backend/app/api/v1/backup.go +++ b/backend/app/api/v1/backup.go @@ -64,7 +64,7 @@ func (b *BaseApi) RefreshOneDriveToken(c *gin.Context) { // @Summary List buckets // @Accept json // @Param request body dto.ForBuckets true "request" -// @Success 200 {array} string +// @Success 200 {array} object // @Security ApiKeyAuth // @Security Timestamp // @Router /settings/backup/search [post] @@ -140,7 +140,7 @@ func (b *BaseApi) DeleteBackup(c *gin.Context) { // @Summary Page backup records // @Accept json // @Param request body dto.RecordSearch true "request" -// @Success 200 +// @Success 200 {object} dto.PageResult // @Security ApiKeyAuth // @Security Timestamp // @Router /settings/backup/record/search [post] @@ -166,7 +166,7 @@ func (b *BaseApi) SearchBackupRecords(c *gin.Context) { // @Summary Page backup records by cronjob // @Accept json // @Param request body dto.RecordSearchByCronjob true "request" -// @Success 200 +// @Success 200 {object} dto.PageResult // @Security ApiKeyAuth // @Security Timestamp // @Router /settings/backup/record/search/bycronjob [post] @@ -192,7 +192,7 @@ func (b *BaseApi) SearchBackupRecordsByCronjob(c *gin.Context) { // @Summary Download backup record // @Accept json // @Param request body dto.DownloadRecord true "request" -// @Success 200 +// @Success 200 {string} filePath // @Security ApiKeyAuth // @Security Timestamp // @Router /settings/backup/record/download [post] diff --git a/backend/app/api/v1/clam.go b/backend/app/api/v1/clam.go index bc3b8788e..e54782e4e 100644 --- a/backend/app/api/v1/clam.go +++ b/backend/app/api/v1/clam.go @@ -191,7 +191,7 @@ func (b *BaseApi) SearchClamRecord(c *gin.Context) { // @Summary Load clam record detail // @Accept json // @Param request body dto.ClamLogReq true "request" -// @Success 200 +// @Success 200 {string} content // @Security ApiKeyAuth // @Security Timestamp // @Router /toolbox/clam/record/log [post] @@ -214,7 +214,7 @@ func (b *BaseApi) LoadClamRecordLog(c *gin.Context) { // @Summary Load clam file // @Accept json // @Param request body dto.ClamFileReq true "request" -// @Success 200 {object} dto.PageResult +// @Success 200 {string} content // @Security ApiKeyAuth // @Security Timestamp // @Router /toolbox/clam/file/search [post] diff --git a/backend/app/api/v1/container.go b/backend/app/api/v1/container.go index 822a914a7..8272babc1 100644 --- a/backend/app/api/v1/container.go +++ b/backend/app/api/v1/container.go @@ -41,7 +41,7 @@ func (b *BaseApi) SearchContainer(c *gin.Context) { // @Summary List containers // @Accept json // @Produce json -// @Success 200 +// @Success 200 {array} string // @Security ApiKeyAuth // @Security Timestamp // @Router /containers/list [post] @@ -83,7 +83,7 @@ func (b *BaseApi) SearchCompose(c *gin.Context) { // @Summary Test compose // @Accept json // @Param request body dto.ComposeCreate true "request" -// @Success 200 +// @Success 200 {boolean} isOK // @Security ApiKeyAuth // @Security Timestamp // @Router /containers/compose/test [post] @@ -106,7 +106,7 @@ func (b *BaseApi) TestCompose(c *gin.Context) { // @Summary Create compose // @Accept json // @Param request body dto.ComposeCreate true "request" -// @Success 200 +// @Success 200 {string} log // @Security ApiKeyAuth // @Security Timestamp // @Router /containers/compose [post] @@ -312,7 +312,7 @@ func (b *BaseApi) CleanContainerLog(c *gin.Context) { // @Summary Load container log // @Accept json // @Param request body dto.OperationWithNameAndType true "request" -// @Success 200 +// @Success 200 {string} content // @Security ApiKeyAuth // @Security Timestamp // @Router /containers/load/log [post] diff --git a/backend/app/api/v1/cronjob.go b/backend/app/api/v1/cronjob.go index 54c3153ac..26750c8f1 100644 --- a/backend/app/api/v1/cronjob.go +++ b/backend/app/api/v1/cronjob.go @@ -92,7 +92,7 @@ func (b *BaseApi) SearchJobRecords(c *gin.Context) { // @Summary Load Cronjob record log // @Accept json // @Param request body dto.OperateByID true "request" -// @Success 200 +// @Success 200 {string} content // @Security ApiKeyAuth // @Security Timestamp // @Router /cronjobs/records/log [post] diff --git a/backend/app/api/v1/database.go b/backend/app/api/v1/database.go index 51b932386..6af0fb1c9 100644 --- a/backend/app/api/v1/database.go +++ b/backend/app/api/v1/database.go @@ -43,7 +43,7 @@ func (b *BaseApi) CreateDatabase(c *gin.Context) { // @Summary Check database // @Accept json // @Param request body dto.DatabaseCreate true "request" -// @Success 200 +// @Success 200 {boolean} isOk // @Security ApiKeyAuth // @Security Timestamp // @Router /databases/db/check [post] diff --git a/backend/app/api/v1/database_common.go b/backend/app/api/v1/database_common.go index 3067bfdec..ec1ddd67d 100644 --- a/backend/app/api/v1/database_common.go +++ b/backend/app/api/v1/database_common.go @@ -34,7 +34,7 @@ func (b *BaseApi) LoadDBBaseInfo(c *gin.Context) { // @Summary Load Database conf // @Accept json // @Param request body dto.OperationWithNameAndType true "request" -// @Success 200 +// @Success 200 {string} content // @Security ApiKeyAuth // @Security Timestamp // @Router /databases/common/load/file [post] diff --git a/backend/app/api/v1/device.go b/backend/app/api/v1/device.go index 00b27cc58..5cbb1a7d2 100644 --- a/backend/app/api/v1/device.go +++ b/backend/app/api/v1/device.go @@ -46,7 +46,7 @@ func (b *BaseApi) LoadTimeOption(c *gin.Context) { // @Summary load conf // @Accept json // @Param request body dto.OperationWithName true "request" -// @Success 200 +// @Success 200 {array} string // @Security ApiKeyAuth // @Security Timestamp // @Router /toolbox/device/conf [post] @@ -185,7 +185,7 @@ func (b *BaseApi) UpdateDeviceSwap(c *gin.Context) { // @Summary Check device DNS conf // @Accept json // @Param request body dto.SettingUpdate true "request" -// @Success 200 +// @Success 200 {boolean} data // @Security ApiKeyAuth // @Security Timestamp // @Router /toolbox/device/check/dns [post] @@ -206,7 +206,7 @@ func (b *BaseApi) CheckDNS(c *gin.Context) { // @Tags Device // @Summary Scan system -// @Success 200 +// @Success 200 {object} dto.CleanData // @Security ApiKeyAuth // @Security Timestamp // @Router /toolbox/scan [post] diff --git a/backend/app/api/v1/fail2ban.go b/backend/app/api/v1/fail2ban.go index 768973b1c..cff1edc79 100644 --- a/backend/app/api/v1/fail2ban.go +++ b/backend/app/api/v1/fail2ban.go @@ -118,7 +118,7 @@ func (b *BaseApi) UpdateFail2BanConf(c *gin.Context) { // @Tags Fail2ban // @Summary Load fail2ban conf // @Accept json -// @Success 200 +// @Success 200 {string} file // @Security ApiKeyAuth // @Security Timestamp // @Router /toolbox/fail2ban/load/conf [get] diff --git a/backend/app/api/v1/favorite.go b/backend/app/api/v1/favorite.go index 28666f3ee..0a6a84c17 100644 --- a/backend/app/api/v1/favorite.go +++ b/backend/app/api/v1/favorite.go @@ -12,7 +12,7 @@ import ( // @Summary List favorites // @Accept json // @Param request body dto.PageInfo true "request" -// @Success 200 +// @Success 200 {object} dto.PageResult // @Security ApiKeyAuth // @Security Timestamp // @Router /files/favorite/search [post] @@ -36,7 +36,7 @@ func (b *BaseApi) SearchFavorite(c *gin.Context) { // @Summary Create favorite // @Accept json // @Param request body request.FavoriteCreate true "request" -// @Success 200 +// @Success 200 {object} model.Favorite // @Security ApiKeyAuth // @Security Timestamp // @Router /files/favorite [post] diff --git a/backend/app/api/v1/file.go b/backend/app/api/v1/file.go index 38dd384db..1a7914177 100644 --- a/backend/app/api/v1/file.go +++ b/backend/app/api/v1/file.go @@ -39,19 +39,19 @@ func (b *BaseApi) ListFiles(c *gin.Context) { if err := helper.CheckBindAndValidate(&req, c); err != nil { return } - files, err := fileService.GetFileList(req) + fileList, err := fileService.GetFileList(req) if err != nil { helper.ErrorWithDetail(c, constant.CodeErrInternalServer, constant.ErrTypeInternalServer, err) return } - helper.SuccessWithData(c, files) + helper.SuccessWithData(c, fileList) } // @Tags File // @Summary Page file // @Accept json // @Param request body request.SearchUploadWithPage true "request" -// @Success 200 {array} response.FileInfo +// @Success 200 {object} dto.PageResult // @Security ApiKeyAuth // @Security Timestamp // @Router /files/upload/search [post] @@ -401,7 +401,7 @@ func (b *BaseApi) UploadFiles(c *gin.Context) { // @Summary Check file exist // @Accept json // @Param request body request.FilePathCheck true "request" -// @Success 200 +// @Success 200 {boolean} isOk // @Security ApiKeyAuth // @Security Timestamp // @Router /files/check [post] @@ -442,7 +442,7 @@ func (b *BaseApi) ChangeFileName(c *gin.Context) { // @Summary Wget file // @Accept json // @Param request body request.FileWget true "request" -// @Success 200 +// @Success 200 {object} response.FileWgetRes // @Security ApiKeyAuth // @Security Timestamp // @Router /files/wget [post] @@ -584,7 +584,7 @@ func (b *BaseApi) DownloadChunkFiles(c *gin.Context) { // @Summary Load file size // @Accept json // @Param request body request.DirSizeReq true "request" -// @Success 200 +// @Success 200 {object} response.DirSizeRes // @Security ApiKeyAuth // @Security Timestamp // @Router /files/size [post] @@ -786,7 +786,7 @@ func (b *BaseApi) Keys(c *gin.Context) { // @Tags File // @Summary Read file by Line // @Param request body request.FileReadByLineReq true "request" -// @Success 200 +// @Success 200 {object} response.FileLineContent // @Security ApiKeyAuth // @Security Timestamp // @Router /files/read [post] diff --git a/backend/app/api/v1/firewall.go b/backend/app/api/v1/firewall.go index dbf1fd610..b90b32853 100644 --- a/backend/app/api/v1/firewall.go +++ b/backend/app/api/v1/firewall.go @@ -53,7 +53,7 @@ func (b *BaseApi) SearchFirewallRule(c *gin.Context) { // @Summary Page firewall status // @Accept json // @Param request body dto.FirewallOperation true "request" -// @Success 200 {object} dto.PageResult +// @Success 200 // @Security ApiKeyAuth // @Security Timestamp // @Router /hosts/firewall/operate [post] diff --git a/backend/app/api/v1/host.go b/backend/app/api/v1/host.go index a69a16cff..554e7d71a 100644 --- a/backend/app/api/v1/host.go +++ b/backend/app/api/v1/host.go @@ -12,7 +12,7 @@ import ( // @Summary Create host // @Accept json // @Param request body dto.HostOperate true "request" -// @Success 200 +// @Success 200 {object} dto.HostInfo // @Security ApiKeyAuth // @Security Timestamp // @Router /hosts [post] @@ -35,7 +35,7 @@ func (b *BaseApi) CreateHost(c *gin.Context) { // @Summary Test host conn by info // @Accept json // @Param request body dto.HostConnTest true "request" -// @Success 200 +// @Success 200 {boolean} connStatus // @Security ApiKeyAuth // @Security Timestamp // @Router /hosts/test/byinfo [post] @@ -95,7 +95,7 @@ func (b *BaseApi) HostTree(c *gin.Context) { // @Summary Page host // @Accept json // @Param request body dto.SearchHostWithPage true "request" -// @Success 200 {array} dto.HostTree +// @Success 200 {object} dto.PageResult // @Security ApiKeyAuth // @Security Timestamp // @Router /hosts/search [post] diff --git a/backend/app/api/v1/host_tool.go b/backend/app/api/v1/host_tool.go index 2ac9cdd14..c71e8950d 100644 --- a/backend/app/api/v1/host_tool.go +++ b/backend/app/api/v1/host_tool.go @@ -11,7 +11,7 @@ import ( // @Summary Get tool status // @Accept json // @Param request body request.HostToolReq true "request" -// @Success 200 +// @Success 200 {object} response.HostToolRes // @Security ApiKeyAuth // @Security Timestamp // @Router /host/tool [post] @@ -77,7 +77,7 @@ func (b *BaseApi) OperateTool(c *gin.Context) { // @Summary Get tool config // @Accept json // @Param request body request.HostToolConfig true "request" -// @Success 200 +// @Success 200 {object} response.HostToolConfig // @Security ApiKeyAuth // @Security Timestamp // @Router /host/tool/config [post] @@ -100,7 +100,7 @@ func (b *BaseApi) OperateToolConfig(c *gin.Context) { // @Summary Get tool logs // @Accept json // @Param request body request.HostToolLogReq true "request" -// @Success 200 +// @Success 200 {string} logContent // @Security ApiKeyAuth // @Security Timestamp // @Router /host/tool/log [post] @@ -144,7 +144,7 @@ func (b *BaseApi) OperateProcess(c *gin.Context) { // @Tags Host tool // @Summary Get Supervisor process config // @Accept json -// @Success 200 +// @Success 200 {object} response.SupervisorProcessConfig // @Security ApiKeyAuth // @Security Timestamp // @Router /host/tool/supervisor/process [get] @@ -161,7 +161,7 @@ func (b *BaseApi) GetProcess(c *gin.Context) { // @Summary Get Supervisor process config // @Accept json // @Param request body request.SupervisorProcessFileReq true "request" -// @Success 200 +// @Success 200 {string} content // @Security ApiKeyAuth // @Security Timestamp // @Router /host/tool/supervisor/process/file [post] diff --git a/backend/app/api/v1/image.go b/backend/app/api/v1/image.go index e339be45a..1097f037a 100644 --- a/backend/app/api/v1/image.go +++ b/backend/app/api/v1/image.go @@ -94,7 +94,7 @@ func (b *BaseApi) ImageBuild(c *gin.Context) { // @Summary Pull image // @Accept json // @Param request body dto.ImagePull true "request" -// @Success 200 {string} log +// @Success 200 {string} logPath // @Security ApiKeyAuth // @Security Timestamp // @Router /containers/image/pull [post] @@ -118,7 +118,7 @@ func (b *BaseApi) ImagePull(c *gin.Context) { // @Summary Push image // @Accept json // @Param request body dto.ImagePush true "request" -// @Success 200 {string} log +// @Success 200 {string} logPath // @Security ApiKeyAuth // @Security Timestamp // @Router /containers/image/push [post] diff --git a/backend/app/api/v1/logs.go b/backend/app/api/v1/logs.go index cc33c6f95..068da2345 100644 --- a/backend/app/api/v1/logs.go +++ b/backend/app/api/v1/logs.go @@ -63,7 +63,7 @@ func (b *BaseApi) GetOperationLogs(c *gin.Context) { // @Summary Clean operation logs // @Accept json // @Param request body dto.CleanLog true "request" -// @Success 200 {object} dto.PageResult +// @Success 200 // @Security ApiKeyAuth // @Security Timestamp // @Router /logs/clean [post] @@ -84,7 +84,7 @@ func (b *BaseApi) CleanLogs(c *gin.Context) { // @Tags Logs // @Summary Load system log files -// @Success 200 +// @Success 200 {array} string // @Security ApiKeyAuth // @Security Timestamp // @Router /logs/system/files [get] @@ -100,7 +100,7 @@ func (b *BaseApi) GetSystemFiles(c *gin.Context) { // @Tags Logs // @Summary Load system logs -// @Success 200 +// @Success 200 {string} data // @Security ApiKeyAuth // @Security Timestamp // @Router /logs/system [post] diff --git a/backend/app/api/v1/monitor.go b/backend/app/api/v1/monitor.go index fcac16499..6f40f0128 100644 --- a/backend/app/api/v1/monitor.go +++ b/backend/app/api/v1/monitor.go @@ -18,7 +18,7 @@ import ( // @Tags Monitor // @Summary Load monitor datas // @Param request body dto.MonitorSearch true "request" -// @Success 200 +// @Success 200 {array} dto.MonitorData // @Security ApiKeyAuth // @Security Timestamp // @Router /hosts/monitor/search [post] diff --git a/backend/app/api/v1/nginx.go b/backend/app/api/v1/nginx.go index e009ffbba..4ca89d336 100644 --- a/backend/app/api/v1/nginx.go +++ b/backend/app/api/v1/nginx.go @@ -9,7 +9,7 @@ import ( // @Tags OpenResty // @Summary Load OpenResty conf -// @Success 200 {object} response.FileInfo +// @Success 200 {object} response.NginxFile // @Security ApiKeyAuth // @Security Timestamp // @Router /openresty [get] diff --git a/backend/app/api/v1/recycle_bin.go b/backend/app/api/v1/recycle_bin.go index c233e4da4..62c301ca6 100644 --- a/backend/app/api/v1/recycle_bin.go +++ b/backend/app/api/v1/recycle_bin.go @@ -12,7 +12,7 @@ import ( // @Summary List Recycle Bin files // @Accept json // @Param request body dto.PageInfo true "request" -// @Success 200 +// @Success 200 {object} dto.PageResult // @Security ApiKeyAuth // @Security Timestamp // @Router /files/recycle/search [post] @@ -72,7 +72,7 @@ func (b *BaseApi) ClearRecycleBinFile(c *gin.Context) { // @Tags File // @Summary Get Recycle Bin status // @Accept json -// @Success 200 +// @Success 200 {string} content // @Security ApiKeyAuth // @Security Timestamp // @Router /files/recycle/status [get] diff --git a/backend/app/api/v1/runtime.go b/backend/app/api/v1/runtime.go index 813ebdf03..67fc63fd6 100644 --- a/backend/app/api/v1/runtime.go +++ b/backend/app/api/v1/runtime.go @@ -12,7 +12,7 @@ import ( // @Summary List runtimes // @Accept json // @Param request body request.RuntimeSearch true "request" -// @Success 200 +// @Success 200 {object} dto.PageResult // @Security ApiKeyAuth // @Security Timestamp // @Router /runtimes/search [post] @@ -36,7 +36,7 @@ func (b *BaseApi) SearchRuntimes(c *gin.Context) { // @Summary Create runtime // @Accept json // @Param request body request.RuntimeCreate true "request" -// @Success 200 +// @Success 200 {object} model.Runtime // @Security ApiKeyAuth // @Security Timestamp // @Router /runtimes [post] @@ -115,7 +115,7 @@ func (b *BaseApi) UpdateRuntime(c *gin.Context) { // @Summary Get runtime // @Accept json // @Param id path string true "request" -// @Success 200 +// @Success 200 {object} response.RuntimeDTO // @Security ApiKeyAuth // @Security Timestamp // @Router /runtimes/{id} [get] @@ -137,7 +137,7 @@ func (b *BaseApi) GetRuntime(c *gin.Context) { // @Summary Get Node package scripts // @Accept json // @Param request body request.NodePackageReq true "request" -// @Success 200 +// @Success 200 {array} response.PackageScripts // @Security ApiKeyAuth // @Security Timestamp // @Router /runtimes/node/package [post] @@ -180,7 +180,7 @@ func (b *BaseApi) OperateRuntime(c *gin.Context) { // @Summary Get Node modules // @Accept json // @Param request body request.NodeModuleReq true "request" -// @Success 200 +// @Success 200 {array} response.NodeModule // @Security ApiKeyAuth // @Security Timestamp // @Router /runtimes/node/modules [post] diff --git a/backend/app/api/v1/setting.go b/backend/app/api/v1/setting.go index ccc9cee5c..4c4aa0c46 100644 --- a/backend/app/api/v1/setting.go +++ b/backend/app/api/v1/setting.go @@ -160,7 +160,7 @@ func (b *BaseApi) UpdateSSL(c *gin.Context) { // @Tags System Setting // @Summary Load system cert info -// @Success 200 {object} dto.SettingInfo +// @Success 200 {object} dto.SSLInfo // @Security ApiKeyAuth // @Security Timestamp // @Router /settings/ssl/info [get] @@ -192,7 +192,7 @@ func (b *BaseApi) DownloadSSL(c *gin.Context) { // @Tags System Setting // @Summary Load system address // @Accept json -// @Success 200 +// @Success 200 {array} string // @Security ApiKeyAuth // @Security Timestamp // @Router /settings/interface [get] @@ -346,7 +346,7 @@ func (b *BaseApi) MFABind(c *gin.Context) { // @Tags System Setting // @Summary Generate api key // @Accept json -// @Success 200 +// @Success 200 {string} apiKey // @Security ApiKeyAuth // @Security Timestamp // @Router /settings/api/config/generate/key [post] diff --git a/backend/app/api/v1/snapshot.go b/backend/app/api/v1/snapshot.go index 777a6e56f..f708558d5 100644 --- a/backend/app/api/v1/snapshot.go +++ b/backend/app/api/v1/snapshot.go @@ -55,7 +55,7 @@ func (b *BaseApi) ImportSnapshot(c *gin.Context) { // @Summary Load Snapshot status // @Accept json // @Param request body dto.OperateByID true "request" -// @Success 200 +// @Success 200 {object} dto.SnapshotStatus // @Security ApiKeyAuth // @Security Timestamp // @Router /settings/snapshot/status [post] @@ -124,7 +124,7 @@ func (b *BaseApi) SearchSnapshot(c *gin.Context) { // @Summary Load system snapshot size // @Accept json // @Param request body dto.PageSnapshot true "request" -// @Success 200 +// @Success 200 {array} dto.SnapshotFile // @Security ApiKeyAuth // @Security Timestamp // @Router /settings/snapshot/size [post] diff --git a/backend/app/api/v1/ssh.go b/backend/app/api/v1/ssh.go index 621ef5509..690eed82f 100644 --- a/backend/app/api/v1/ssh.go +++ b/backend/app/api/v1/ssh.go @@ -114,7 +114,7 @@ func (b *BaseApi) GenerateSSH(c *gin.Context) { // @Summary Load host SSH secret // @Accept json // @Param request body dto.GenerateLoad true "request" -// @Success 200 +// @Success 200 {string} data // @Security ApiKeyAuth // @Security Timestamp // @Router /host/ssh/secret [post] @@ -156,7 +156,7 @@ func (b *BaseApi) LoadSSHLogs(c *gin.Context) { // @Tags SSH // @Summary Load host SSH conf -// @Success 200 +// @Success 200 {string} data // @Security ApiKeyAuth // @Security Timestamp // @Router /host/ssh/conf [get] diff --git a/backend/app/api/v1/upgrade.go b/backend/app/api/v1/upgrade.go index 2733861a6..16e22f444 100644 --- a/backend/app/api/v1/upgrade.go +++ b/backend/app/api/v1/upgrade.go @@ -26,7 +26,7 @@ func (b *BaseApi) GetUpgradeInfo(c *gin.Context) { // @Summary Load release notes by version // @Accept json // @Param request body dto.Upgrade true "request" -// @Success 200 +// @Success 200 {string} notes // @Security ApiKeyAuth // @Security Timestamp // @Router /settings/upgrade [get] diff --git a/backend/app/api/v1/website.go b/backend/app/api/v1/website.go index 30670921d..471e71bb7 100644 --- a/backend/app/api/v1/website.go +++ b/backend/app/api/v1/website.go @@ -51,7 +51,7 @@ func (b *BaseApi) GetWebsites(c *gin.Context) { // @Tags Website // @Summary List website names -// @Success 200 {array} string +// @Success 200 {array} response.WebsiteOption // @Security ApiKeyAuth // @Security Timestamp // @Router /websites/options [get] @@ -470,7 +470,7 @@ func (b *BaseApi) ChangePHPVersion(c *gin.Context) { // @Summary Get rewrite conf // @Accept json // @Param request body request.NginxRewriteReq true "request" -// @Success 200 +// @Success 200 {object} response.NginxRewriteRes // @Security ApiKeyAuth // @Security Timestamp // @Router /websites/rewrite [post] @@ -554,7 +554,7 @@ func (b *BaseApi) UpdateSiteDirPermission(c *gin.Context) { // @Summary Get proxy conf // @Accept json // @Param request body request.WebsiteProxyReq true "request" -// @Success 200 +// @Success 200 {array} request.WebsiteProxyConfig // @Security ApiKeyAuth // @Security Timestamp // @Router /websites/proxies [post] @@ -618,7 +618,7 @@ func (b *BaseApi) UpdateProxyConfigFile(c *gin.Context) { // @Summary Get AuthBasic conf // @Accept json // @Param request body request.NginxAuthReq true "request" -// @Success 200 +// @Success 200 {object} response.NginxAuthRes // @Security ApiKeyAuth // @Security Timestamp // @Router /websites/auths [post] @@ -659,7 +659,7 @@ func (b *BaseApi) UpdateAuthConfig(c *gin.Context) { // @Summary Get AntiLeech conf // @Accept json // @Param request body request.NginxCommonReq true "request" -// @Success 200 +// @Success 200 {object} response.NginxAntiLeechRes // @Security ApiKeyAuth // @Security Timestamp // @Router /websites/leech [post] @@ -722,7 +722,7 @@ func (b *BaseApi) UpdateRedirectConfig(c *gin.Context) { // @Summary Get redirect conf // @Accept json // @Param request body request.WebsiteProxyReq true "request" -// @Success 200 +// @Success 200 {array} response.NginxRedirectConfig // @Security ApiKeyAuth // @Security Timestamp // @Router /websites/redirect [post] @@ -764,7 +764,7 @@ func (b *BaseApi) UpdateRedirectConfigFile(c *gin.Context) { // @Summary Get website dir // @Accept json // @Param request body request.WebsiteCommonReq true "request" -// @Success 200 +// @Success 200 {object} response.WebsiteDirConfig // @Security ApiKeyAuth // @Security Timestamp // @Router /websites/dir [post] @@ -785,7 +785,7 @@ func (b *BaseApi) GetDirConfig(c *gin.Context) { // @Summary Get default html // @Accept json // @Param type path string true "type" -// @Success 200 {object} response.FileInfo +// @Success 200 {object} response.WebsiteHtmlRes // @Security ApiKeyAuth // @Security Timestamp // @Router /websites/default/html/{type} [get] diff --git a/backend/app/api/v1/website_domain.go b/backend/app/api/v1/website_domain.go index 8ba07e4f1..a3bac4b5b 100644 --- a/backend/app/api/v1/website_domain.go +++ b/backend/app/api/v1/website_domain.go @@ -32,7 +32,7 @@ func (b *BaseApi) DeleteWebDomain(c *gin.Context) { // @Summary Create website domain // @Accept json // @Param request body request.WebsiteDomainCreate true "request" -// @Success 200 {object} model.WebsiteDomain +// @Success 200 {array} model.WebsiteDomain // @Security ApiKeyAuth // @Security Timestamp // @Router /websites/domains [post] diff --git a/backend/app/api/v1/website_ssl.go b/backend/app/api/v1/website_ssl.go index d51eef52e..33be42845 100644 --- a/backend/app/api/v1/website_ssl.go +++ b/backend/app/api/v1/website_ssl.go @@ -17,7 +17,7 @@ import ( // @Summary Page website ssl // @Accept json // @Param request body request.WebsiteSSLSearch true "request" -// @Success 200 +// @Success 200 {array} response.WebsiteSSLDTO // @Security ApiKeyAuth // @Security Timestamp // @Router /websites/ssl/search [post] @@ -135,7 +135,7 @@ func (b *BaseApi) DeleteWebsiteSSL(c *gin.Context) { // @Summary Search website ssl by website id // @Accept json // @Param websiteId path integer true "request" -// @Success 200 +// @Success 200 {object} response.WebsiteSSLDTO // @Security ApiKeyAuth // @Security Timestamp // @Router /websites/ssl/website/{websiteId} [get] @@ -157,7 +157,7 @@ func (b *BaseApi) GetWebsiteSSLByWebsiteId(c *gin.Context) { // @Summary Search website ssl by id // @Accept json // @Param id path integer true "request" -// @Success 200 +// @Success 200 {object} response.WebsiteSSLDTO // @Security ApiKeyAuth // @Security Timestamp // @Router /websites/ssl/{id} [get] diff --git a/cmd/server/docs/docs.go b/cmd/server/docs/docs.go index b33064b23..64baf6502 100644 --- a/cmd/server/docs/docs.go +++ b/cmd/server/docs/docs.go @@ -36,7 +36,10 @@ const docTemplate = `{ "summary": "Get app list update", "responses": { "200": { - "description": "OK" + "description": "OK", + "schema": { + "$ref": "#/definitions/response.AppUpdateRes" + } } } } @@ -316,7 +319,7 @@ const docTemplate = `{ "200": { "description": "OK", "schema": { - "type": "string" + "$ref": "#/definitions/response.DatabaseConn" } } } @@ -617,7 +620,7 @@ const docTemplate = `{ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/response.AppParam" + "$ref": "#/definitions/response.AppConfig" } } } @@ -699,7 +702,10 @@ const docTemplate = `{ ], "responses": { "200": { - "description": "OK" + "description": "OK", + "schema": { + "$ref": "#/definitions/dto.PageResult" + } } } } @@ -792,7 +798,10 @@ const docTemplate = `{ ], "responses": { "200": { - "description": "OK" + "description": "OK", + "schema": { + "$ref": "#/definitions/response.AppRes" + } } } } @@ -924,7 +933,10 @@ const docTemplate = `{ "summary": "Check System isDemo", "responses": { "200": { - "description": "OK" + "description": "OK", + "schema": { + "type": "boolean" + } } } } @@ -937,7 +949,10 @@ const docTemplate = `{ "summary": "Check System isIntl", "responses": { "200": { - "description": "OK" + "description": "OK", + "schema": { + "type": "boolean" + } } } } @@ -950,7 +965,10 @@ const docTemplate = `{ "summary": "Load System Language", "responses": { "200": { - "description": "OK" + "description": "OK", + "schema": { + "type": "string" + } } } } @@ -1194,7 +1212,10 @@ const docTemplate = `{ ], "responses": { "200": { - "description": "OK" + "description": "OK", + "schema": { + "type": "string" + } } }, "x-panel-log": { @@ -1368,7 +1389,10 @@ const docTemplate = `{ ], "responses": { "200": { - "description": "OK" + "description": "OK", + "schema": { + "type": "boolean" + } } }, "x-panel-log": { @@ -2285,7 +2309,13 @@ const docTemplate = `{ "summary": "List containers", "responses": { "200": { - "description": "OK" + "description": "OK", + "schema": { + "type": "array", + "items": { + "type": "string" + } + } } } } @@ -2344,7 +2374,10 @@ const docTemplate = `{ ], "responses": { "200": { - "description": "OK" + "description": "OK", + "schema": { + "type": "string" + } } } } @@ -3831,7 +3864,10 @@ const docTemplate = `{ ], "responses": { "200": { - "description": "OK" + "description": "OK", + "schema": { + "type": "string" + } } } } @@ -4423,7 +4459,10 @@ const docTemplate = `{ ], "responses": { "200": { - "description": "OK" + "description": "OK", + "schema": { + "type": "string" + } } } } @@ -4548,7 +4587,10 @@ const docTemplate = `{ ], "responses": { "200": { - "description": "OK" + "description": "OK", + "schema": { + "type": "boolean" + } } }, "x-panel-log": { @@ -6103,7 +6145,10 @@ const docTemplate = `{ ], "responses": { "200": { - "description": "OK" + "description": "OK", + "schema": { + "type": "boolean" + } } } } @@ -6418,7 +6463,10 @@ const docTemplate = `{ ], "responses": { "200": { - "description": "OK" + "description": "OK", + "schema": { + "$ref": "#/definitions/model.Favorite" + } } }, "x-panel-log": { @@ -6515,7 +6563,10 @@ const docTemplate = `{ ], "responses": { "200": { - "description": "OK" + "description": "OK", + "schema": { + "$ref": "#/definitions/dto.PageResult" + } } } } @@ -6683,7 +6734,10 @@ const docTemplate = `{ ], "responses": { "200": { - "description": "OK" + "description": "OK", + "schema": { + "$ref": "#/definitions/response.FileLineContent" + } } } } @@ -6793,7 +6847,10 @@ const docTemplate = `{ ], "responses": { "200": { - "description": "OK" + "description": "OK", + "schema": { + "$ref": "#/definitions/dto.PageResult" + } } } } @@ -6817,7 +6874,10 @@ const docTemplate = `{ "summary": "Get Recycle Bin status", "responses": { "200": { - "description": "OK" + "description": "OK", + "schema": { + "type": "string" + } } } } @@ -6979,7 +7039,10 @@ const docTemplate = `{ ], "responses": { "200": { - "description": "OK" + "description": "OK", + "schema": { + "$ref": "#/definitions/response.DirSizeRes" + } } }, "x-panel-log": { @@ -7108,10 +7171,7 @@ const docTemplate = `{ "200": { "description": "OK", "schema": { - "type": "array", - "items": { - "$ref": "#/definitions/response.FileInfo" - } + "$ref": "#/definitions/dto.PageResult" } } } @@ -7147,7 +7207,10 @@ const docTemplate = `{ ], "responses": { "200": { - "description": "OK" + "description": "OK", + "schema": { + "$ref": "#/definitions/response.FileWgetRes" + } } }, "x-panel-log": { @@ -7413,7 +7476,10 @@ const docTemplate = `{ "summary": "Load host SSH conf", "responses": { "200": { - "description": "OK" + "description": "OK", + "schema": { + "type": "string" + } } } } @@ -7596,7 +7662,10 @@ const docTemplate = `{ ], "responses": { "200": { - "description": "OK" + "description": "OK", + "schema": { + "type": "string" + } } } } @@ -7676,7 +7745,10 @@ const docTemplate = `{ ], "responses": { "200": { - "description": "OK" + "description": "OK", + "schema": { + "$ref": "#/definitions/response.HostToolRes" + } } } } @@ -7711,7 +7783,10 @@ const docTemplate = `{ ], "responses": { "200": { - "description": "OK" + "description": "OK", + "schema": { + "$ref": "#/definitions/response.HostToolConfig" + } } }, "x-panel-log": { @@ -7799,7 +7874,10 @@ const docTemplate = `{ ], "responses": { "200": { - "description": "OK" + "description": "OK", + "schema": { + "type": "string" + } } } } @@ -7868,7 +7946,10 @@ const docTemplate = `{ "summary": "Get Supervisor process config", "responses": { "200": { - "description": "OK" + "description": "OK", + "schema": { + "$ref": "#/definitions/response.SupervisorProcessConfig" + } } } }, @@ -7945,7 +8026,10 @@ const docTemplate = `{ ], "responses": { "200": { - "description": "OK" + "description": "OK", + "schema": { + "type": "string" + } } }, "x-panel-log": { @@ -7989,7 +8073,10 @@ const docTemplate = `{ ], "responses": { "200": { - "description": "OK" + "description": "OK", + "schema": { + "$ref": "#/definitions/dto.HostInfo" + } } }, "x-panel-log": { @@ -8628,10 +8715,7 @@ const docTemplate = `{ ], "responses": { "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/dto.PageResult" - } + "description": "OK" } }, "x-panel-log": { @@ -8888,7 +8972,13 @@ const docTemplate = `{ ], "responses": { "200": { - "description": "OK" + "description": "OK", + "schema": { + "type": "array", + "items": { + "$ref": "#/definitions/dto.MonitorData" + } + } } } } @@ -8925,10 +9015,7 @@ const docTemplate = `{ "200": { "description": "OK", "schema": { - "type": "array", - "items": { - "$ref": "#/definitions/dto.HostTree" - } + "$ref": "#/definitions/dto.PageResult" } } } @@ -9000,7 +9087,10 @@ const docTemplate = `{ ], "responses": { "200": { - "description": "OK" + "description": "OK", + "schema": { + "type": "boolean" + } } } } @@ -9175,10 +9265,7 @@ const docTemplate = `{ ], "responses": { "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/dto.PageResult" - } + "description": "OK" } }, "x-panel-log": { @@ -9284,7 +9371,10 @@ const docTemplate = `{ "summary": "Load system logs", "responses": { "200": { - "description": "OK" + "description": "OK", + "schema": { + "type": "string" + } } } } @@ -9305,7 +9395,13 @@ const docTemplate = `{ "summary": "Load system log files", "responses": { "200": { - "description": "OK" + "description": "OK", + "schema": { + "type": "array", + "items": { + "type": "string" + } + } } } } @@ -9328,7 +9424,7 @@ const docTemplate = `{ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/response.FileInfo" + "$ref": "#/definitions/response.NginxFile" } } } @@ -9593,7 +9689,10 @@ const docTemplate = `{ ], "responses": { "200": { - "description": "OK" + "description": "OK", + "schema": { + "$ref": "#/definitions/model.Runtime" + } } }, "x-panel-log": { @@ -9681,7 +9780,13 @@ const docTemplate = `{ ], "responses": { "200": { - "description": "OK" + "description": "OK", + "schema": { + "type": "array", + "items": { + "$ref": "#/definitions/response.NodeModule" + } + } } } } @@ -9751,7 +9856,13 @@ const docTemplate = `{ ], "responses": { "200": { - "description": "OK" + "description": "OK", + "schema": { + "type": "array", + "items": { + "$ref": "#/definitions/response.PackageScripts" + } + } } } } @@ -9976,7 +10087,10 @@ const docTemplate = `{ ], "responses": { "200": { - "description": "OK" + "description": "OK", + "schema": { + "$ref": "#/definitions/dto.PageResult" + } } } } @@ -10077,7 +10191,10 @@ const docTemplate = `{ ], "responses": { "200": { - "description": "OK" + "description": "OK", + "schema": { + "$ref": "#/definitions/response.RuntimeDTO" + } } } } @@ -10101,7 +10218,10 @@ const docTemplate = `{ "summary": "Generate api key", "responses": { "200": { - "description": "OK" + "description": "OK", + "schema": { + "type": "string" + } } }, "x-panel-log": { @@ -10410,7 +10530,10 @@ const docTemplate = `{ ], "responses": { "200": { - "description": "OK" + "description": "OK", + "schema": { + "type": "string" + } } }, "x-panel-log": { @@ -10455,7 +10578,10 @@ const docTemplate = `{ ], "responses": { "200": { - "description": "OK" + "description": "OK", + "schema": { + "$ref": "#/definitions/dto.PageResult" + } } } } @@ -10490,7 +10616,10 @@ const docTemplate = `{ ], "responses": { "200": { - "description": "OK" + "description": "OK", + "schema": { + "$ref": "#/definitions/dto.PageResult" + } } } } @@ -10669,7 +10798,7 @@ const docTemplate = `{ "schema": { "type": "array", "items": { - "type": "string" + "type": "object" } } } @@ -10891,7 +11020,13 @@ const docTemplate = `{ "summary": "Load system address", "responses": { "200": { - "description": "OK" + "description": "OK", + "schema": { + "type": "array", + "items": { + "type": "string" + } + } } } } @@ -11565,7 +11700,13 @@ const docTemplate = `{ ], "responses": { "200": { - "description": "OK" + "description": "OK", + "schema": { + "type": "array", + "items": { + "$ref": "#/definitions/dto.SnapshotFile" + } + } } } } @@ -11600,7 +11741,10 @@ const docTemplate = `{ ], "responses": { "200": { - "description": "OK" + "description": "OK", + "schema": { + "$ref": "#/definitions/dto.SnapshotStatus" + } } } } @@ -11644,7 +11788,7 @@ const docTemplate = `{ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/dto.SettingInfo" + "$ref": "#/definitions/dto.SSLInfo" } } } @@ -11769,7 +11913,10 @@ const docTemplate = `{ ], "responses": { "200": { - "description": "OK" + "description": "OK", + "schema": { + "type": "string" + } } } }, @@ -11973,7 +12120,7 @@ const docTemplate = `{ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/dto.PageResult" + "type": "string" } } } @@ -12194,7 +12341,10 @@ const docTemplate = `{ ], "responses": { "200": { - "description": "OK" + "description": "OK", + "schema": { + "type": "string" + } } } } @@ -12473,7 +12623,10 @@ const docTemplate = `{ ], "responses": { "200": { - "description": "OK" + "description": "OK", + "schema": { + "type": "boolean" + } } } } @@ -12508,7 +12661,13 @@ const docTemplate = `{ ], "responses": { "200": { - "description": "OK" + "description": "OK", + "schema": { + "type": "array", + "items": { + "type": "string" + } + } } } } @@ -12777,7 +12936,10 @@ const docTemplate = `{ "summary": "Load fail2ban conf", "responses": { "200": { - "description": "OK" + "description": "OK", + "schema": { + "type": "string" + } } } } @@ -13327,7 +13489,10 @@ const docTemplate = `{ "summary": "Scan system", "responses": { "200": { - "description": "OK" + "description": "OK", + "schema": { + "$ref": "#/definitions/dto.CleanData" + } } }, "x-panel-log": { @@ -13551,7 +13716,10 @@ const docTemplate = `{ ], "responses": { "200": { - "description": "OK" + "description": "OK", + "schema": { + "$ref": "#/definitions/response.NginxAuthRes" + } } } } @@ -14130,7 +14298,7 @@ const docTemplate = `{ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/response.FileInfo" + "$ref": "#/definitions/response.WebsiteHtmlRes" } } } @@ -14273,7 +14441,10 @@ const docTemplate = `{ ], "responses": { "200": { - "description": "OK" + "description": "OK", + "schema": { + "$ref": "#/definitions/response.WebsiteDirConfig" + } } } } @@ -14595,7 +14766,10 @@ const docTemplate = `{ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/model.WebsiteDomain" + "type": "array", + "items": { + "$ref": "#/definitions/model.WebsiteDomain" + } } } }, @@ -14732,7 +14906,10 @@ const docTemplate = `{ ], "responses": { "200": { - "description": "OK" + "description": "OK", + "schema": { + "$ref": "#/definitions/response.NginxAntiLeechRes" + } } } } @@ -14983,7 +15160,7 @@ const docTemplate = `{ "schema": { "type": "array", "items": { - "type": "string" + "$ref": "#/definitions/response.WebsiteOption" } } } @@ -15215,7 +15392,13 @@ const docTemplate = `{ ], "responses": { "200": { - "description": "OK" + "description": "OK", + "schema": { + "type": "array", + "items": { + "$ref": "#/definitions/request.WebsiteProxyConfig" + } + } } } } @@ -15356,7 +15539,13 @@ const docTemplate = `{ ], "responses": { "200": { - "description": "OK" + "description": "OK", + "schema": { + "type": "array", + "items": { + "$ref": "#/definitions/response.NginxRedirectConfig" + } + } } } } @@ -15497,7 +15686,10 @@ const docTemplate = `{ ], "responses": { "200": { - "description": "OK" + "description": "OK", + "schema": { + "$ref": "#/definitions/response.NginxRewriteRes" + } } } } @@ -15870,7 +16062,13 @@ const docTemplate = `{ ], "responses": { "200": { - "description": "OK" + "description": "OK", + "schema": { + "type": "array", + "items": { + "$ref": "#/definitions/response.WebsiteSSLDTO" + } + } } } } @@ -16000,7 +16198,10 @@ const docTemplate = `{ ], "responses": { "200": { - "description": "OK" + "description": "OK", + "schema": { + "$ref": "#/definitions/response.WebsiteSSLDTO" + } } } } @@ -16033,7 +16234,10 @@ const docTemplate = `{ ], "responses": { "200": { - "description": "OK" + "description": "OK", + "schema": { + "$ref": "#/definitions/response.WebsiteSSLDTO" + } } } } @@ -16318,6 +16522,50 @@ const docTemplate = `{ } } }, + "dto.AppConfigVersion": { + "type": "object", + "properties": { + "additionalProperties": {}, + "downloadCallBackUrl": { + "type": "string" + }, + "downloadUrl": { + "type": "string" + }, + "lastModified": { + "type": "integer" + }, + "name": { + "type": "string" + } + } + }, + "dto.AppDefine": { + "type": "object", + "properties": { + "additionalProperties": { + "$ref": "#/definitions/dto.AppProperty" + }, + "icon": { + "type": "string" + }, + "lastModified": { + "type": "integer" + }, + "name": { + "type": "string" + }, + "readMe": { + "type": "string" + }, + "versions": { + "type": "array", + "items": { + "$ref": "#/definitions/dto.AppConfigVersion" + } + } + } + }, "dto.AppInstallInfo": { "type": "object", "properties": { @@ -16332,6 +16580,85 @@ const docTemplate = `{ } } }, + "dto.AppList": { + "type": "object", + "properties": { + "additionalProperties": { + "$ref": "#/definitions/dto.ExtraProperties" + }, + "apps": { + "type": "array", + "items": { + "$ref": "#/definitions/dto.AppDefine" + } + }, + "lastModified": { + "type": "integer" + }, + "valid": { + "type": "boolean" + }, + "violations": { + "type": "array", + "items": { + "type": "string" + } + } + } + }, + "dto.AppProperty": { + "type": "object", + "properties": { + "Required": { + "type": "array", + "items": { + "type": "string" + } + }, + "crossVersionUpdate": { + "type": "boolean" + }, + "document": { + "type": "string" + }, + "github": { + "type": "string" + }, + "key": { + "type": "string" + }, + "limit": { + "type": "integer" + }, + "name": { + "type": "string" + }, + "recommend": { + "type": "integer" + }, + "shortDescEn": { + "type": "string" + }, + "shortDescZh": { + "type": "string" + }, + "tags": { + "type": "array", + "items": { + "type": "string" + } + }, + "type": { + "type": "string" + }, + "version": { + "type": "number" + }, + "website": { + "type": "string" + } + } + }, "dto.AppResource": { "type": "object", "properties": { @@ -16785,6 +17112,41 @@ const docTemplate = `{ } } }, + "dto.CleanData": { + "type": "object", + "properties": { + "containerClean": { + "type": "array", + "items": { + "$ref": "#/definitions/dto.CleanTree" + } + }, + "downloadClean": { + "type": "array", + "items": { + "$ref": "#/definitions/dto.CleanTree" + } + }, + "systemClean": { + "type": "array", + "items": { + "$ref": "#/definitions/dto.CleanTree" + } + }, + "systemLogClean": { + "type": "array", + "items": { + "$ref": "#/definitions/dto.CleanTree" + } + }, + "uploadClean": { + "type": "array", + "items": { + "$ref": "#/definitions/dto.CleanTree" + } + } + } + }, "dto.CleanLog": { "type": "object", "required": [ @@ -16800,6 +17162,38 @@ const docTemplate = `{ } } }, + "dto.CleanTree": { + "type": "object", + "properties": { + "children": { + "type": "array", + "items": { + "$ref": "#/definitions/dto.CleanTree" + } + }, + "id": { + "type": "string" + }, + "isCheck": { + "type": "boolean" + }, + "isRecommend": { + "type": "boolean" + }, + "label": { + "type": "string" + }, + "name": { + "type": "string" + }, + "size": { + "type": "integer" + }, + "type": { + "type": "string" + } + } + }, "dto.CommandInfo": { "type": "object", "properties": { @@ -18243,6 +18637,20 @@ const docTemplate = `{ } } }, + "dto.ExtraProperties": { + "type": "object", + "properties": { + "tags": { + "type": "array", + "items": { + "$ref": "#/definitions/dto.Tag" + } + }, + "version": { + "type": "string" + } + } + }, "dto.Fail2BanBaseInfo": { "type": "object", "properties": { @@ -18688,6 +19096,53 @@ const docTemplate = `{ } } }, + "dto.HostInfo": { + "type": "object", + "properties": { + "addr": { + "type": "string" + }, + "authMode": { + "type": "string" + }, + "createdAt": { + "type": "string" + }, + "description": { + "type": "string" + }, + "groupBelong": { + "type": "string" + }, + "groupID": { + "type": "integer" + }, + "id": { + "type": "integer" + }, + "name": { + "type": "string" + }, + "passPhrase": { + "type": "string" + }, + "password": { + "type": "string" + }, + "port": { + "type": "integer" + }, + "privateKey": { + "type": "string" + }, + "rememberPassword": { + "type": "boolean" + }, + "user": { + "type": "string" + } + } + }, "dto.HostOperate": { "type": "object", "required": [ @@ -19045,6 +19500,34 @@ const docTemplate = `{ } } }, + "dto.MonitorData": { + "type": "object", + "required": [ + "param" + ], + "properties": { + "date": { + "type": "array", + "items": { + "type": "string" + } + }, + "param": { + "type": "string", + "enum": [ + "cpu", + "memory", + "load", + "io", + "network" + ] + }, + "value": { + "type": "array", + "items": {} + } + } + }, "dto.MonitorSearch": { "type": "object", "required": [ @@ -19525,6 +20008,17 @@ const docTemplate = `{ } } }, + "dto.NginxAuth": { + "type": "object", + "properties": { + "remark": { + "type": "string" + }, + "username": { + "type": "string" + } + } + }, "dto.NginxKey": { "type": "string", "enum": [ @@ -20445,6 +20939,29 @@ const docTemplate = `{ } } }, + "dto.SSLInfo": { + "type": "object", + "properties": { + "cert": { + "type": "string" + }, + "domain": { + "type": "string" + }, + "key": { + "type": "string" + }, + "rootPath": { + "type": "string" + }, + "sslID": { + "type": "integer" + }, + "timeout": { + "type": "string" + } + } + }, "dto.SSLUpdate": { "type": "object", "required": [ @@ -20903,6 +21420,20 @@ const docTemplate = `{ } } }, + "dto.SnapshotFile": { + "type": "object", + "properties": { + "id": { + "type": "integer" + }, + "name": { + "type": "string" + }, + "size": { + "type": "integer" + } + } + }, "dto.SnapshotImport": { "type": "object", "properties": { @@ -20941,6 +21472,38 @@ const docTemplate = `{ } } }, + "dto.SnapshotStatus": { + "type": "object", + "properties": { + "appData": { + "type": "string" + }, + "backupData": { + "type": "string" + }, + "compress": { + "type": "string" + }, + "daemonJson": { + "type": "string" + }, + "panel": { + "type": "string" + }, + "panelData": { + "type": "string" + }, + "panelInfo": { + "type": "string" + }, + "size": { + "type": "string" + }, + "upload": { + "type": "string" + } + } + }, "dto.SwapHelper": { "type": "object", "required": [ @@ -20961,6 +21524,20 @@ const docTemplate = `{ } } }, + "dto.Tag": { + "type": "object", + "properties": { + "key": { + "type": "string" + }, + "name": { + "type": "string" + }, + "sort": { + "type": "integer" + } + } + }, "dto.TreeChild": { "type": "object", "properties": { @@ -21363,6 +21940,91 @@ const docTemplate = `{ } } }, + "model.Favorite": { + "type": "object", + "properties": { + "createdAt": { + "type": "string" + }, + "id": { + "type": "integer" + }, + "isDir": { + "type": "boolean" + }, + "isTxt": { + "type": "boolean" + }, + "name": { + "type": "string" + }, + "path": { + "type": "string" + }, + "type": { + "type": "string" + }, + "updatedAt": { + "type": "string" + } + } + }, + "model.Runtime": { + "type": "object", + "properties": { + "appDetailId": { + "type": "integer" + }, + "codeDir": { + "type": "string" + }, + "createdAt": { + "type": "string" + }, + "dockerCompose": { + "type": "string" + }, + "env": { + "type": "string" + }, + "id": { + "type": "integer" + }, + "image": { + "type": "string" + }, + "message": { + "type": "string" + }, + "name": { + "type": "string" + }, + "params": { + "type": "string" + }, + "port": { + "type": "integer" + }, + "resource": { + "type": "string" + }, + "status": { + "type": "string" + }, + "type": { + "type": "string" + }, + "updatedAt": { + "type": "string" + }, + "version": { + "type": "string" + }, + "workDir": { + "type": "string" + } + } + }, "model.Tag": { "type": "object", "properties": { @@ -23997,6 +24659,47 @@ const docTemplate = `{ } } }, + "response.AppConfig": { + "type": "object", + "properties": { + "advanced": { + "type": "boolean" + }, + "allowPort": { + "type": "boolean" + }, + "containerName": { + "type": "string" + }, + "cpuQuota": { + "type": "number" + }, + "dockerCompose": { + "type": "string" + }, + "editCompose": { + "type": "boolean" + }, + "hostMode": { + "type": "boolean" + }, + "memoryLimit": { + "type": "number" + }, + "memoryUnit": { + "type": "string" + }, + "params": { + "type": "array", + "items": { + "$ref": "#/definitions/response.AppParam" + } + }, + "pullImage": { + "type": "boolean" + } + } + }, "response.AppDTO": { "type": "object", "properties": { @@ -24131,6 +24834,56 @@ const docTemplate = `{ } } }, + "response.AppDto": { + "type": "object", + "properties": { + "icon": { + "type": "string" + }, + "id": { + "type": "integer" + }, + "installed": { + "type": "boolean" + }, + "key": { + "type": "string" + }, + "limit": { + "type": "integer" + }, + "name": { + "type": "string" + }, + "resource": { + "type": "string" + }, + "shortDescEn": { + "type": "string" + }, + "shortDescZh": { + "type": "string" + }, + "status": { + "type": "string" + }, + "tags": { + "type": "array", + "items": { + "$ref": "#/definitions/model.Tag" + } + }, + "type": { + "type": "string" + }, + "versions": { + "type": "array", + "items": { + "type": "string" + } + } + } + }, "response.AppInstalledCheck": { "type": "object", "properties": { @@ -24206,6 +24959,20 @@ const docTemplate = `{ "values": {} } }, + "response.AppRes": { + "type": "object", + "properties": { + "items": { + "type": "array", + "items": { + "$ref": "#/definitions/response.AppDto" + } + }, + "total": { + "type": "integer" + } + } + }, "response.AppService": { "type": "object", "properties": { @@ -24221,6 +24988,57 @@ const docTemplate = `{ } } }, + "response.AppUpdateRes": { + "type": "object", + "properties": { + "appList": { + "$ref": "#/definitions/dto.AppList" + }, + "appStoreLastModified": { + "type": "integer" + }, + "canUpdate": { + "type": "boolean" + }, + "isSyncing": { + "type": "boolean" + } + } + }, + "response.DatabaseConn": { + "type": "object", + "properties": { + "containerName": { + "type": "string" + }, + "password": { + "type": "string" + }, + "port": { + "type": "integer" + }, + "serviceName": { + "type": "string" + }, + "status": { + "type": "string" + }, + "username": { + "type": "string" + } + } + }, + "response.DirSizeRes": { + "type": "object", + "required": [ + "size" + ], + "properties": { + "size": { + "type": "number" + } + } + }, "response.FileInfo": { "type": "object", "properties": { @@ -24295,6 +25113,29 @@ const docTemplate = `{ } } }, + "response.FileLineContent": { + "type": "object", + "properties": { + "content": { + "type": "string" + }, + "end": { + "type": "boolean" + }, + "lines": { + "type": "array", + "items": { + "type": "string" + } + }, + "path": { + "type": "string" + }, + "total": { + "type": "integer" + } + } + }, "response.FileTree": { "type": "object", "properties": { @@ -24321,6 +25162,31 @@ const docTemplate = `{ } } }, + "response.FileWgetRes": { + "type": "object", + "properties": { + "key": { + "type": "string" + } + } + }, + "response.HostToolConfig": { + "type": "object", + "properties": { + "content": { + "type": "string" + } + } + }, + "response.HostToolRes": { + "type": "object", + "properties": { + "config": {}, + "type": { + "type": "string" + } + } + }, "response.IgnoredApp": { "type": "object", "properties": { @@ -24338,6 +25204,66 @@ const docTemplate = `{ } } }, + "response.NginxAntiLeechRes": { + "type": "object", + "properties": { + "blocked": { + "type": "boolean" + }, + "cache": { + "type": "boolean" + }, + "cacheTime": { + "type": "integer" + }, + "cacheUint": { + "type": "string" + }, + "enable": { + "type": "boolean" + }, + "extends": { + "type": "string" + }, + "logEnable": { + "type": "boolean" + }, + "noneRef": { + "type": "boolean" + }, + "return": { + "type": "string" + }, + "serverNames": { + "type": "array", + "items": { + "type": "string" + } + } + } + }, + "response.NginxAuthRes": { + "type": "object", + "properties": { + "enable": { + "type": "boolean" + }, + "items": { + "type": "array", + "items": { + "$ref": "#/definitions/dto.NginxAuth" + } + } + } + }, + "response.NginxFile": { + "type": "object", + "properties": { + "content": { + "type": "string" + } + } + }, "response.NginxParam": { "type": "object", "properties": { @@ -24352,6 +25278,58 @@ const docTemplate = `{ } } }, + "response.NginxRedirectConfig": { + "type": "object", + "properties": { + "content": { + "type": "string" + }, + "domains": { + "type": "array", + "items": { + "type": "string" + } + }, + "enable": { + "type": "boolean" + }, + "filePath": { + "type": "string" + }, + "keepPath": { + "type": "boolean" + }, + "name": { + "type": "string" + }, + "path": { + "type": "string" + }, + "redirect": { + "type": "string" + }, + "redirectRoot": { + "type": "boolean" + }, + "target": { + "type": "string" + }, + "type": { + "type": "string" + }, + "websiteID": { + "type": "integer" + } + } + }, + "response.NginxRewriteRes": { + "type": "object", + "properties": { + "content": { + "type": "string" + } + } + }, "response.NginxStatus": { "type": "object", "properties": { @@ -24378,6 +25356,23 @@ const docTemplate = `{ } } }, + "response.NodeModule": { + "type": "object", + "properties": { + "description": { + "type": "string" + }, + "license": { + "type": "string" + }, + "name": { + "type": "string" + }, + "version": { + "type": "string" + } + } + }, "response.PHPConfig": { "type": "object", "properties": { @@ -24418,6 +25413,132 @@ const docTemplate = `{ } } }, + "response.PackageScripts": { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "script": { + "type": "string" + } + } + }, + "response.ProcessStatus": { + "type": "object", + "properties": { + "PID": { + "type": "string" + }, + "msg": { + "type": "string" + }, + "name": { + "type": "string" + }, + "status": { + "type": "string" + }, + "uptime": { + "type": "string" + } + } + }, + "response.RuntimeDTO": { + "type": "object", + "properties": { + "appDetailID": { + "type": "integer" + }, + "appID": { + "type": "integer" + }, + "appParams": { + "type": "array", + "items": { + "$ref": "#/definitions/response.AppParam" + } + }, + "codeDir": { + "type": "string" + }, + "createdAt": { + "type": "string" + }, + "exposedPorts": { + "type": "array", + "items": { + "$ref": "#/definitions/request.ExposedPort" + } + }, + "id": { + "type": "integer" + }, + "image": { + "type": "string" + }, + "message": { + "type": "string" + }, + "name": { + "type": "string" + }, + "params": { + "type": "object", + "additionalProperties": true + }, + "path": { + "type": "string" + }, + "port": { + "type": "integer" + }, + "resource": { + "type": "string" + }, + "source": { + "type": "string" + }, + "status": { + "type": "string" + }, + "type": { + "type": "string" + }, + "version": { + "type": "string" + } + } + }, + "response.SupervisorProcessConfig": { + "type": "object", + "properties": { + "command": { + "type": "string" + }, + "dir": { + "type": "string" + }, + "msg": { + "type": "string" + }, + "name": { + "type": "string" + }, + "numprocs": { + "type": "string" + }, + "status": { + "type": "array", + "items": { + "$ref": "#/definitions/response.ProcessStatus" + } + }, + "user": { + "type": "string" + } + } + }, "response.WebsiteAcmeAccountDTO": { "type": "object", "properties": { @@ -24618,6 +25739,26 @@ const docTemplate = `{ } } }, + "response.WebsiteDirConfig": { + "type": "object", + "properties": { + "dirs": { + "type": "array", + "items": { + "type": "string" + } + }, + "msg": { + "type": "string" + }, + "user": { + "type": "string" + }, + "userGroup": { + "type": "string" + } + } + }, "response.WebsiteHTTPS": { "type": "object", "properties": { @@ -24644,6 +25785,14 @@ const docTemplate = `{ } } }, + "response.WebsiteHtmlRes": { + "type": "object", + "properties": { + "content": { + "type": "string" + } + } + }, "response.WebsiteLog": { "type": "object", "properties": { @@ -24675,6 +25824,20 @@ const docTemplate = `{ } } }, + "response.WebsiteOption": { + "type": "object", + "properties": { + "alias": { + "type": "string" + }, + "id": { + "type": "integer" + }, + "primaryDomain": { + "type": "string" + } + } + }, "response.WebsitePreInstallCheck": { "type": "object", "properties": { @@ -24691,6 +25854,113 @@ const docTemplate = `{ "type": "string" } } + }, + "response.WebsiteSSLDTO": { + "type": "object", + "properties": { + "acmeAccount": { + "$ref": "#/definitions/model.WebsiteAcmeAccount" + }, + "acmeAccountId": { + "type": "integer" + }, + "autoRenew": { + "type": "boolean" + }, + "caId": { + "type": "integer" + }, + "certURL": { + "type": "string" + }, + "createdAt": { + "type": "string" + }, + "description": { + "type": "string" + }, + "dir": { + "type": "string" + }, + "disableCNAME": { + "type": "boolean" + }, + "dnsAccount": { + "$ref": "#/definitions/model.WebsiteDnsAccount" + }, + "dnsAccountId": { + "type": "integer" + }, + "domains": { + "type": "string" + }, + "execShell": { + "type": "boolean" + }, + "expireDate": { + "type": "string" + }, + "id": { + "type": "integer" + }, + "keyType": { + "type": "string" + }, + "logPath": { + "type": "string" + }, + "message": { + "type": "string" + }, + "nameserver1": { + "type": "string" + }, + "nameserver2": { + "type": "string" + }, + "organization": { + "type": "string" + }, + "pem": { + "type": "string" + }, + "primaryDomain": { + "type": "string" + }, + "privateKey": { + "type": "string" + }, + "provider": { + "type": "string" + }, + "pushDir": { + "type": "boolean" + }, + "shell": { + "type": "string" + }, + "skipDNS": { + "type": "boolean" + }, + "startDate": { + "type": "string" + }, + "status": { + "type": "string" + }, + "type": { + "type": "string" + }, + "updatedAt": { + "type": "string" + }, + "websites": { + "type": "array", + "items": { + "$ref": "#/definitions/model.Website" + } + } + } } }, "securityDefinitions": { diff --git a/cmd/server/docs/swagger.json b/cmd/server/docs/swagger.json index 9b4770c66..75306f5cd 100644 --- a/cmd/server/docs/swagger.json +++ b/cmd/server/docs/swagger.json @@ -33,7 +33,10 @@ "summary": "Get app list update", "responses": { "200": { - "description": "OK" + "description": "OK", + "schema": { + "$ref": "#/definitions/response.AppUpdateRes" + } } } } @@ -313,7 +316,7 @@ "200": { "description": "OK", "schema": { - "type": "string" + "$ref": "#/definitions/response.DatabaseConn" } } } @@ -614,7 +617,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/response.AppParam" + "$ref": "#/definitions/response.AppConfig" } } } @@ -696,7 +699,10 @@ ], "responses": { "200": { - "description": "OK" + "description": "OK", + "schema": { + "$ref": "#/definitions/dto.PageResult" + } } } } @@ -789,7 +795,10 @@ ], "responses": { "200": { - "description": "OK" + "description": "OK", + "schema": { + "$ref": "#/definitions/response.AppRes" + } } } } @@ -921,7 +930,10 @@ "summary": "Check System isDemo", "responses": { "200": { - "description": "OK" + "description": "OK", + "schema": { + "type": "boolean" + } } } } @@ -934,7 +946,10 @@ "summary": "Check System isIntl", "responses": { "200": { - "description": "OK" + "description": "OK", + "schema": { + "type": "boolean" + } } } } @@ -947,7 +962,10 @@ "summary": "Load System Language", "responses": { "200": { - "description": "OK" + "description": "OK", + "schema": { + "type": "string" + } } } } @@ -1191,7 +1209,10 @@ ], "responses": { "200": { - "description": "OK" + "description": "OK", + "schema": { + "type": "string" + } } }, "x-panel-log": { @@ -1365,7 +1386,10 @@ ], "responses": { "200": { - "description": "OK" + "description": "OK", + "schema": { + "type": "boolean" + } } }, "x-panel-log": { @@ -2282,7 +2306,13 @@ "summary": "List containers", "responses": { "200": { - "description": "OK" + "description": "OK", + "schema": { + "type": "array", + "items": { + "type": "string" + } + } } } } @@ -2341,7 +2371,10 @@ ], "responses": { "200": { - "description": "OK" + "description": "OK", + "schema": { + "type": "string" + } } } } @@ -3828,7 +3861,10 @@ ], "responses": { "200": { - "description": "OK" + "description": "OK", + "schema": { + "type": "string" + } } } } @@ -4420,7 +4456,10 @@ ], "responses": { "200": { - "description": "OK" + "description": "OK", + "schema": { + "type": "string" + } } } } @@ -4545,7 +4584,10 @@ ], "responses": { "200": { - "description": "OK" + "description": "OK", + "schema": { + "type": "boolean" + } } }, "x-panel-log": { @@ -6100,7 +6142,10 @@ ], "responses": { "200": { - "description": "OK" + "description": "OK", + "schema": { + "type": "boolean" + } } } } @@ -6415,7 +6460,10 @@ ], "responses": { "200": { - "description": "OK" + "description": "OK", + "schema": { + "$ref": "#/definitions/model.Favorite" + } } }, "x-panel-log": { @@ -6512,7 +6560,10 @@ ], "responses": { "200": { - "description": "OK" + "description": "OK", + "schema": { + "$ref": "#/definitions/dto.PageResult" + } } } } @@ -6680,7 +6731,10 @@ ], "responses": { "200": { - "description": "OK" + "description": "OK", + "schema": { + "$ref": "#/definitions/response.FileLineContent" + } } } } @@ -6790,7 +6844,10 @@ ], "responses": { "200": { - "description": "OK" + "description": "OK", + "schema": { + "$ref": "#/definitions/dto.PageResult" + } } } } @@ -6814,7 +6871,10 @@ "summary": "Get Recycle Bin status", "responses": { "200": { - "description": "OK" + "description": "OK", + "schema": { + "type": "string" + } } } } @@ -6976,7 +7036,10 @@ ], "responses": { "200": { - "description": "OK" + "description": "OK", + "schema": { + "$ref": "#/definitions/response.DirSizeRes" + } } }, "x-panel-log": { @@ -7105,10 +7168,7 @@ "200": { "description": "OK", "schema": { - "type": "array", - "items": { - "$ref": "#/definitions/response.FileInfo" - } + "$ref": "#/definitions/dto.PageResult" } } } @@ -7144,7 +7204,10 @@ ], "responses": { "200": { - "description": "OK" + "description": "OK", + "schema": { + "$ref": "#/definitions/response.FileWgetRes" + } } }, "x-panel-log": { @@ -7410,7 +7473,10 @@ "summary": "Load host SSH conf", "responses": { "200": { - "description": "OK" + "description": "OK", + "schema": { + "type": "string" + } } } } @@ -7593,7 +7659,10 @@ ], "responses": { "200": { - "description": "OK" + "description": "OK", + "schema": { + "type": "string" + } } } } @@ -7673,7 +7742,10 @@ ], "responses": { "200": { - "description": "OK" + "description": "OK", + "schema": { + "$ref": "#/definitions/response.HostToolRes" + } } } } @@ -7708,7 +7780,10 @@ ], "responses": { "200": { - "description": "OK" + "description": "OK", + "schema": { + "$ref": "#/definitions/response.HostToolConfig" + } } }, "x-panel-log": { @@ -7796,7 +7871,10 @@ ], "responses": { "200": { - "description": "OK" + "description": "OK", + "schema": { + "type": "string" + } } } } @@ -7865,7 +7943,10 @@ "summary": "Get Supervisor process config", "responses": { "200": { - "description": "OK" + "description": "OK", + "schema": { + "$ref": "#/definitions/response.SupervisorProcessConfig" + } } } }, @@ -7942,7 +8023,10 @@ ], "responses": { "200": { - "description": "OK" + "description": "OK", + "schema": { + "type": "string" + } } }, "x-panel-log": { @@ -7986,7 +8070,10 @@ ], "responses": { "200": { - "description": "OK" + "description": "OK", + "schema": { + "$ref": "#/definitions/dto.HostInfo" + } } }, "x-panel-log": { @@ -8625,10 +8712,7 @@ ], "responses": { "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/dto.PageResult" - } + "description": "OK" } }, "x-panel-log": { @@ -8885,7 +8969,13 @@ ], "responses": { "200": { - "description": "OK" + "description": "OK", + "schema": { + "type": "array", + "items": { + "$ref": "#/definitions/dto.MonitorData" + } + } } } } @@ -8922,10 +9012,7 @@ "200": { "description": "OK", "schema": { - "type": "array", - "items": { - "$ref": "#/definitions/dto.HostTree" - } + "$ref": "#/definitions/dto.PageResult" } } } @@ -8997,7 +9084,10 @@ ], "responses": { "200": { - "description": "OK" + "description": "OK", + "schema": { + "type": "boolean" + } } } } @@ -9172,10 +9262,7 @@ ], "responses": { "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/dto.PageResult" - } + "description": "OK" } }, "x-panel-log": { @@ -9281,7 +9368,10 @@ "summary": "Load system logs", "responses": { "200": { - "description": "OK" + "description": "OK", + "schema": { + "type": "string" + } } } } @@ -9302,7 +9392,13 @@ "summary": "Load system log files", "responses": { "200": { - "description": "OK" + "description": "OK", + "schema": { + "type": "array", + "items": { + "type": "string" + } + } } } } @@ -9325,7 +9421,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/response.FileInfo" + "$ref": "#/definitions/response.NginxFile" } } } @@ -9590,7 +9686,10 @@ ], "responses": { "200": { - "description": "OK" + "description": "OK", + "schema": { + "$ref": "#/definitions/model.Runtime" + } } }, "x-panel-log": { @@ -9678,7 +9777,13 @@ ], "responses": { "200": { - "description": "OK" + "description": "OK", + "schema": { + "type": "array", + "items": { + "$ref": "#/definitions/response.NodeModule" + } + } } } } @@ -9748,7 +9853,13 @@ ], "responses": { "200": { - "description": "OK" + "description": "OK", + "schema": { + "type": "array", + "items": { + "$ref": "#/definitions/response.PackageScripts" + } + } } } } @@ -9973,7 +10084,10 @@ ], "responses": { "200": { - "description": "OK" + "description": "OK", + "schema": { + "$ref": "#/definitions/dto.PageResult" + } } } } @@ -10074,7 +10188,10 @@ ], "responses": { "200": { - "description": "OK" + "description": "OK", + "schema": { + "$ref": "#/definitions/response.RuntimeDTO" + } } } } @@ -10098,7 +10215,10 @@ "summary": "Generate api key", "responses": { "200": { - "description": "OK" + "description": "OK", + "schema": { + "type": "string" + } } }, "x-panel-log": { @@ -10407,7 +10527,10 @@ ], "responses": { "200": { - "description": "OK" + "description": "OK", + "schema": { + "type": "string" + } } }, "x-panel-log": { @@ -10452,7 +10575,10 @@ ], "responses": { "200": { - "description": "OK" + "description": "OK", + "schema": { + "$ref": "#/definitions/dto.PageResult" + } } } } @@ -10487,7 +10613,10 @@ ], "responses": { "200": { - "description": "OK" + "description": "OK", + "schema": { + "$ref": "#/definitions/dto.PageResult" + } } } } @@ -10666,7 +10795,7 @@ "schema": { "type": "array", "items": { - "type": "string" + "type": "object" } } } @@ -10888,7 +11017,13 @@ "summary": "Load system address", "responses": { "200": { - "description": "OK" + "description": "OK", + "schema": { + "type": "array", + "items": { + "type": "string" + } + } } } } @@ -11562,7 +11697,13 @@ ], "responses": { "200": { - "description": "OK" + "description": "OK", + "schema": { + "type": "array", + "items": { + "$ref": "#/definitions/dto.SnapshotFile" + } + } } } } @@ -11597,7 +11738,10 @@ ], "responses": { "200": { - "description": "OK" + "description": "OK", + "schema": { + "$ref": "#/definitions/dto.SnapshotStatus" + } } } } @@ -11641,7 +11785,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/dto.SettingInfo" + "$ref": "#/definitions/dto.SSLInfo" } } } @@ -11766,7 +11910,10 @@ ], "responses": { "200": { - "description": "OK" + "description": "OK", + "schema": { + "type": "string" + } } } }, @@ -11970,7 +12117,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/dto.PageResult" + "type": "string" } } } @@ -12191,7 +12338,10 @@ ], "responses": { "200": { - "description": "OK" + "description": "OK", + "schema": { + "type": "string" + } } } } @@ -12470,7 +12620,10 @@ ], "responses": { "200": { - "description": "OK" + "description": "OK", + "schema": { + "type": "boolean" + } } } } @@ -12505,7 +12658,13 @@ ], "responses": { "200": { - "description": "OK" + "description": "OK", + "schema": { + "type": "array", + "items": { + "type": "string" + } + } } } } @@ -12774,7 +12933,10 @@ "summary": "Load fail2ban conf", "responses": { "200": { - "description": "OK" + "description": "OK", + "schema": { + "type": "string" + } } } } @@ -13324,7 +13486,10 @@ "summary": "Scan system", "responses": { "200": { - "description": "OK" + "description": "OK", + "schema": { + "$ref": "#/definitions/dto.CleanData" + } } }, "x-panel-log": { @@ -13548,7 +13713,10 @@ ], "responses": { "200": { - "description": "OK" + "description": "OK", + "schema": { + "$ref": "#/definitions/response.NginxAuthRes" + } } } } @@ -14127,7 +14295,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/response.FileInfo" + "$ref": "#/definitions/response.WebsiteHtmlRes" } } } @@ -14270,7 +14438,10 @@ ], "responses": { "200": { - "description": "OK" + "description": "OK", + "schema": { + "$ref": "#/definitions/response.WebsiteDirConfig" + } } } } @@ -14592,7 +14763,10 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/model.WebsiteDomain" + "type": "array", + "items": { + "$ref": "#/definitions/model.WebsiteDomain" + } } } }, @@ -14729,7 +14903,10 @@ ], "responses": { "200": { - "description": "OK" + "description": "OK", + "schema": { + "$ref": "#/definitions/response.NginxAntiLeechRes" + } } } } @@ -14980,7 +15157,7 @@ "schema": { "type": "array", "items": { - "type": "string" + "$ref": "#/definitions/response.WebsiteOption" } } } @@ -15212,7 +15389,13 @@ ], "responses": { "200": { - "description": "OK" + "description": "OK", + "schema": { + "type": "array", + "items": { + "$ref": "#/definitions/request.WebsiteProxyConfig" + } + } } } } @@ -15353,7 +15536,13 @@ ], "responses": { "200": { - "description": "OK" + "description": "OK", + "schema": { + "type": "array", + "items": { + "$ref": "#/definitions/response.NginxRedirectConfig" + } + } } } } @@ -15494,7 +15683,10 @@ ], "responses": { "200": { - "description": "OK" + "description": "OK", + "schema": { + "$ref": "#/definitions/response.NginxRewriteRes" + } } } } @@ -15867,7 +16059,13 @@ ], "responses": { "200": { - "description": "OK" + "description": "OK", + "schema": { + "type": "array", + "items": { + "$ref": "#/definitions/response.WebsiteSSLDTO" + } + } } } } @@ -15997,7 +16195,10 @@ ], "responses": { "200": { - "description": "OK" + "description": "OK", + "schema": { + "$ref": "#/definitions/response.WebsiteSSLDTO" + } } } } @@ -16030,7 +16231,10 @@ ], "responses": { "200": { - "description": "OK" + "description": "OK", + "schema": { + "$ref": "#/definitions/response.WebsiteSSLDTO" + } } } } @@ -16315,6 +16519,50 @@ } } }, + "dto.AppConfigVersion": { + "type": "object", + "properties": { + "additionalProperties": {}, + "downloadCallBackUrl": { + "type": "string" + }, + "downloadUrl": { + "type": "string" + }, + "lastModified": { + "type": "integer" + }, + "name": { + "type": "string" + } + } + }, + "dto.AppDefine": { + "type": "object", + "properties": { + "additionalProperties": { + "$ref": "#/definitions/dto.AppProperty" + }, + "icon": { + "type": "string" + }, + "lastModified": { + "type": "integer" + }, + "name": { + "type": "string" + }, + "readMe": { + "type": "string" + }, + "versions": { + "type": "array", + "items": { + "$ref": "#/definitions/dto.AppConfigVersion" + } + } + } + }, "dto.AppInstallInfo": { "type": "object", "properties": { @@ -16329,6 +16577,85 @@ } } }, + "dto.AppList": { + "type": "object", + "properties": { + "additionalProperties": { + "$ref": "#/definitions/dto.ExtraProperties" + }, + "apps": { + "type": "array", + "items": { + "$ref": "#/definitions/dto.AppDefine" + } + }, + "lastModified": { + "type": "integer" + }, + "valid": { + "type": "boolean" + }, + "violations": { + "type": "array", + "items": { + "type": "string" + } + } + } + }, + "dto.AppProperty": { + "type": "object", + "properties": { + "Required": { + "type": "array", + "items": { + "type": "string" + } + }, + "crossVersionUpdate": { + "type": "boolean" + }, + "document": { + "type": "string" + }, + "github": { + "type": "string" + }, + "key": { + "type": "string" + }, + "limit": { + "type": "integer" + }, + "name": { + "type": "string" + }, + "recommend": { + "type": "integer" + }, + "shortDescEn": { + "type": "string" + }, + "shortDescZh": { + "type": "string" + }, + "tags": { + "type": "array", + "items": { + "type": "string" + } + }, + "type": { + "type": "string" + }, + "version": { + "type": "number" + }, + "website": { + "type": "string" + } + } + }, "dto.AppResource": { "type": "object", "properties": { @@ -16782,6 +17109,41 @@ } } }, + "dto.CleanData": { + "type": "object", + "properties": { + "containerClean": { + "type": "array", + "items": { + "$ref": "#/definitions/dto.CleanTree" + } + }, + "downloadClean": { + "type": "array", + "items": { + "$ref": "#/definitions/dto.CleanTree" + } + }, + "systemClean": { + "type": "array", + "items": { + "$ref": "#/definitions/dto.CleanTree" + } + }, + "systemLogClean": { + "type": "array", + "items": { + "$ref": "#/definitions/dto.CleanTree" + } + }, + "uploadClean": { + "type": "array", + "items": { + "$ref": "#/definitions/dto.CleanTree" + } + } + } + }, "dto.CleanLog": { "type": "object", "required": [ @@ -16797,6 +17159,38 @@ } } }, + "dto.CleanTree": { + "type": "object", + "properties": { + "children": { + "type": "array", + "items": { + "$ref": "#/definitions/dto.CleanTree" + } + }, + "id": { + "type": "string" + }, + "isCheck": { + "type": "boolean" + }, + "isRecommend": { + "type": "boolean" + }, + "label": { + "type": "string" + }, + "name": { + "type": "string" + }, + "size": { + "type": "integer" + }, + "type": { + "type": "string" + } + } + }, "dto.CommandInfo": { "type": "object", "properties": { @@ -18240,6 +18634,20 @@ } } }, + "dto.ExtraProperties": { + "type": "object", + "properties": { + "tags": { + "type": "array", + "items": { + "$ref": "#/definitions/dto.Tag" + } + }, + "version": { + "type": "string" + } + } + }, "dto.Fail2BanBaseInfo": { "type": "object", "properties": { @@ -18685,6 +19093,53 @@ } } }, + "dto.HostInfo": { + "type": "object", + "properties": { + "addr": { + "type": "string" + }, + "authMode": { + "type": "string" + }, + "createdAt": { + "type": "string" + }, + "description": { + "type": "string" + }, + "groupBelong": { + "type": "string" + }, + "groupID": { + "type": "integer" + }, + "id": { + "type": "integer" + }, + "name": { + "type": "string" + }, + "passPhrase": { + "type": "string" + }, + "password": { + "type": "string" + }, + "port": { + "type": "integer" + }, + "privateKey": { + "type": "string" + }, + "rememberPassword": { + "type": "boolean" + }, + "user": { + "type": "string" + } + } + }, "dto.HostOperate": { "type": "object", "required": [ @@ -19042,6 +19497,34 @@ } } }, + "dto.MonitorData": { + "type": "object", + "required": [ + "param" + ], + "properties": { + "date": { + "type": "array", + "items": { + "type": "string" + } + }, + "param": { + "type": "string", + "enum": [ + "cpu", + "memory", + "load", + "io", + "network" + ] + }, + "value": { + "type": "array", + "items": {} + } + } + }, "dto.MonitorSearch": { "type": "object", "required": [ @@ -19522,6 +20005,17 @@ } } }, + "dto.NginxAuth": { + "type": "object", + "properties": { + "remark": { + "type": "string" + }, + "username": { + "type": "string" + } + } + }, "dto.NginxKey": { "type": "string", "enum": [ @@ -20442,6 +20936,29 @@ } } }, + "dto.SSLInfo": { + "type": "object", + "properties": { + "cert": { + "type": "string" + }, + "domain": { + "type": "string" + }, + "key": { + "type": "string" + }, + "rootPath": { + "type": "string" + }, + "sslID": { + "type": "integer" + }, + "timeout": { + "type": "string" + } + } + }, "dto.SSLUpdate": { "type": "object", "required": [ @@ -20900,6 +21417,20 @@ } } }, + "dto.SnapshotFile": { + "type": "object", + "properties": { + "id": { + "type": "integer" + }, + "name": { + "type": "string" + }, + "size": { + "type": "integer" + } + } + }, "dto.SnapshotImport": { "type": "object", "properties": { @@ -20938,6 +21469,38 @@ } } }, + "dto.SnapshotStatus": { + "type": "object", + "properties": { + "appData": { + "type": "string" + }, + "backupData": { + "type": "string" + }, + "compress": { + "type": "string" + }, + "daemonJson": { + "type": "string" + }, + "panel": { + "type": "string" + }, + "panelData": { + "type": "string" + }, + "panelInfo": { + "type": "string" + }, + "size": { + "type": "string" + }, + "upload": { + "type": "string" + } + } + }, "dto.SwapHelper": { "type": "object", "required": [ @@ -20958,6 +21521,20 @@ } } }, + "dto.Tag": { + "type": "object", + "properties": { + "key": { + "type": "string" + }, + "name": { + "type": "string" + }, + "sort": { + "type": "integer" + } + } + }, "dto.TreeChild": { "type": "object", "properties": { @@ -21360,6 +21937,91 @@ } } }, + "model.Favorite": { + "type": "object", + "properties": { + "createdAt": { + "type": "string" + }, + "id": { + "type": "integer" + }, + "isDir": { + "type": "boolean" + }, + "isTxt": { + "type": "boolean" + }, + "name": { + "type": "string" + }, + "path": { + "type": "string" + }, + "type": { + "type": "string" + }, + "updatedAt": { + "type": "string" + } + } + }, + "model.Runtime": { + "type": "object", + "properties": { + "appDetailId": { + "type": "integer" + }, + "codeDir": { + "type": "string" + }, + "createdAt": { + "type": "string" + }, + "dockerCompose": { + "type": "string" + }, + "env": { + "type": "string" + }, + "id": { + "type": "integer" + }, + "image": { + "type": "string" + }, + "message": { + "type": "string" + }, + "name": { + "type": "string" + }, + "params": { + "type": "string" + }, + "port": { + "type": "integer" + }, + "resource": { + "type": "string" + }, + "status": { + "type": "string" + }, + "type": { + "type": "string" + }, + "updatedAt": { + "type": "string" + }, + "version": { + "type": "string" + }, + "workDir": { + "type": "string" + } + } + }, "model.Tag": { "type": "object", "properties": { @@ -23994,6 +24656,47 @@ } } }, + "response.AppConfig": { + "type": "object", + "properties": { + "advanced": { + "type": "boolean" + }, + "allowPort": { + "type": "boolean" + }, + "containerName": { + "type": "string" + }, + "cpuQuota": { + "type": "number" + }, + "dockerCompose": { + "type": "string" + }, + "editCompose": { + "type": "boolean" + }, + "hostMode": { + "type": "boolean" + }, + "memoryLimit": { + "type": "number" + }, + "memoryUnit": { + "type": "string" + }, + "params": { + "type": "array", + "items": { + "$ref": "#/definitions/response.AppParam" + } + }, + "pullImage": { + "type": "boolean" + } + } + }, "response.AppDTO": { "type": "object", "properties": { @@ -24128,6 +24831,56 @@ } } }, + "response.AppDto": { + "type": "object", + "properties": { + "icon": { + "type": "string" + }, + "id": { + "type": "integer" + }, + "installed": { + "type": "boolean" + }, + "key": { + "type": "string" + }, + "limit": { + "type": "integer" + }, + "name": { + "type": "string" + }, + "resource": { + "type": "string" + }, + "shortDescEn": { + "type": "string" + }, + "shortDescZh": { + "type": "string" + }, + "status": { + "type": "string" + }, + "tags": { + "type": "array", + "items": { + "$ref": "#/definitions/model.Tag" + } + }, + "type": { + "type": "string" + }, + "versions": { + "type": "array", + "items": { + "type": "string" + } + } + } + }, "response.AppInstalledCheck": { "type": "object", "properties": { @@ -24203,6 +24956,20 @@ "values": {} } }, + "response.AppRes": { + "type": "object", + "properties": { + "items": { + "type": "array", + "items": { + "$ref": "#/definitions/response.AppDto" + } + }, + "total": { + "type": "integer" + } + } + }, "response.AppService": { "type": "object", "properties": { @@ -24218,6 +24985,57 @@ } } }, + "response.AppUpdateRes": { + "type": "object", + "properties": { + "appList": { + "$ref": "#/definitions/dto.AppList" + }, + "appStoreLastModified": { + "type": "integer" + }, + "canUpdate": { + "type": "boolean" + }, + "isSyncing": { + "type": "boolean" + } + } + }, + "response.DatabaseConn": { + "type": "object", + "properties": { + "containerName": { + "type": "string" + }, + "password": { + "type": "string" + }, + "port": { + "type": "integer" + }, + "serviceName": { + "type": "string" + }, + "status": { + "type": "string" + }, + "username": { + "type": "string" + } + } + }, + "response.DirSizeRes": { + "type": "object", + "required": [ + "size" + ], + "properties": { + "size": { + "type": "number" + } + } + }, "response.FileInfo": { "type": "object", "properties": { @@ -24292,6 +25110,29 @@ } } }, + "response.FileLineContent": { + "type": "object", + "properties": { + "content": { + "type": "string" + }, + "end": { + "type": "boolean" + }, + "lines": { + "type": "array", + "items": { + "type": "string" + } + }, + "path": { + "type": "string" + }, + "total": { + "type": "integer" + } + } + }, "response.FileTree": { "type": "object", "properties": { @@ -24318,6 +25159,31 @@ } } }, + "response.FileWgetRes": { + "type": "object", + "properties": { + "key": { + "type": "string" + } + } + }, + "response.HostToolConfig": { + "type": "object", + "properties": { + "content": { + "type": "string" + } + } + }, + "response.HostToolRes": { + "type": "object", + "properties": { + "config": {}, + "type": { + "type": "string" + } + } + }, "response.IgnoredApp": { "type": "object", "properties": { @@ -24335,6 +25201,66 @@ } } }, + "response.NginxAntiLeechRes": { + "type": "object", + "properties": { + "blocked": { + "type": "boolean" + }, + "cache": { + "type": "boolean" + }, + "cacheTime": { + "type": "integer" + }, + "cacheUint": { + "type": "string" + }, + "enable": { + "type": "boolean" + }, + "extends": { + "type": "string" + }, + "logEnable": { + "type": "boolean" + }, + "noneRef": { + "type": "boolean" + }, + "return": { + "type": "string" + }, + "serverNames": { + "type": "array", + "items": { + "type": "string" + } + } + } + }, + "response.NginxAuthRes": { + "type": "object", + "properties": { + "enable": { + "type": "boolean" + }, + "items": { + "type": "array", + "items": { + "$ref": "#/definitions/dto.NginxAuth" + } + } + } + }, + "response.NginxFile": { + "type": "object", + "properties": { + "content": { + "type": "string" + } + } + }, "response.NginxParam": { "type": "object", "properties": { @@ -24349,6 +25275,58 @@ } } }, + "response.NginxRedirectConfig": { + "type": "object", + "properties": { + "content": { + "type": "string" + }, + "domains": { + "type": "array", + "items": { + "type": "string" + } + }, + "enable": { + "type": "boolean" + }, + "filePath": { + "type": "string" + }, + "keepPath": { + "type": "boolean" + }, + "name": { + "type": "string" + }, + "path": { + "type": "string" + }, + "redirect": { + "type": "string" + }, + "redirectRoot": { + "type": "boolean" + }, + "target": { + "type": "string" + }, + "type": { + "type": "string" + }, + "websiteID": { + "type": "integer" + } + } + }, + "response.NginxRewriteRes": { + "type": "object", + "properties": { + "content": { + "type": "string" + } + } + }, "response.NginxStatus": { "type": "object", "properties": { @@ -24375,6 +25353,23 @@ } } }, + "response.NodeModule": { + "type": "object", + "properties": { + "description": { + "type": "string" + }, + "license": { + "type": "string" + }, + "name": { + "type": "string" + }, + "version": { + "type": "string" + } + } + }, "response.PHPConfig": { "type": "object", "properties": { @@ -24415,6 +25410,132 @@ } } }, + "response.PackageScripts": { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "script": { + "type": "string" + } + } + }, + "response.ProcessStatus": { + "type": "object", + "properties": { + "PID": { + "type": "string" + }, + "msg": { + "type": "string" + }, + "name": { + "type": "string" + }, + "status": { + "type": "string" + }, + "uptime": { + "type": "string" + } + } + }, + "response.RuntimeDTO": { + "type": "object", + "properties": { + "appDetailID": { + "type": "integer" + }, + "appID": { + "type": "integer" + }, + "appParams": { + "type": "array", + "items": { + "$ref": "#/definitions/response.AppParam" + } + }, + "codeDir": { + "type": "string" + }, + "createdAt": { + "type": "string" + }, + "exposedPorts": { + "type": "array", + "items": { + "$ref": "#/definitions/request.ExposedPort" + } + }, + "id": { + "type": "integer" + }, + "image": { + "type": "string" + }, + "message": { + "type": "string" + }, + "name": { + "type": "string" + }, + "params": { + "type": "object", + "additionalProperties": true + }, + "path": { + "type": "string" + }, + "port": { + "type": "integer" + }, + "resource": { + "type": "string" + }, + "source": { + "type": "string" + }, + "status": { + "type": "string" + }, + "type": { + "type": "string" + }, + "version": { + "type": "string" + } + } + }, + "response.SupervisorProcessConfig": { + "type": "object", + "properties": { + "command": { + "type": "string" + }, + "dir": { + "type": "string" + }, + "msg": { + "type": "string" + }, + "name": { + "type": "string" + }, + "numprocs": { + "type": "string" + }, + "status": { + "type": "array", + "items": { + "$ref": "#/definitions/response.ProcessStatus" + } + }, + "user": { + "type": "string" + } + } + }, "response.WebsiteAcmeAccountDTO": { "type": "object", "properties": { @@ -24615,6 +25736,26 @@ } } }, + "response.WebsiteDirConfig": { + "type": "object", + "properties": { + "dirs": { + "type": "array", + "items": { + "type": "string" + } + }, + "msg": { + "type": "string" + }, + "user": { + "type": "string" + }, + "userGroup": { + "type": "string" + } + } + }, "response.WebsiteHTTPS": { "type": "object", "properties": { @@ -24641,6 +25782,14 @@ } } }, + "response.WebsiteHtmlRes": { + "type": "object", + "properties": { + "content": { + "type": "string" + } + } + }, "response.WebsiteLog": { "type": "object", "properties": { @@ -24672,6 +25821,20 @@ } } }, + "response.WebsiteOption": { + "type": "object", + "properties": { + "alias": { + "type": "string" + }, + "id": { + "type": "integer" + }, + "primaryDomain": { + "type": "string" + } + } + }, "response.WebsitePreInstallCheck": { "type": "object", "properties": { @@ -24688,6 +25851,113 @@ "type": "string" } } + }, + "response.WebsiteSSLDTO": { + "type": "object", + "properties": { + "acmeAccount": { + "$ref": "#/definitions/model.WebsiteAcmeAccount" + }, + "acmeAccountId": { + "type": "integer" + }, + "autoRenew": { + "type": "boolean" + }, + "caId": { + "type": "integer" + }, + "certURL": { + "type": "string" + }, + "createdAt": { + "type": "string" + }, + "description": { + "type": "string" + }, + "dir": { + "type": "string" + }, + "disableCNAME": { + "type": "boolean" + }, + "dnsAccount": { + "$ref": "#/definitions/model.WebsiteDnsAccount" + }, + "dnsAccountId": { + "type": "integer" + }, + "domains": { + "type": "string" + }, + "execShell": { + "type": "boolean" + }, + "expireDate": { + "type": "string" + }, + "id": { + "type": "integer" + }, + "keyType": { + "type": "string" + }, + "logPath": { + "type": "string" + }, + "message": { + "type": "string" + }, + "nameserver1": { + "type": "string" + }, + "nameserver2": { + "type": "string" + }, + "organization": { + "type": "string" + }, + "pem": { + "type": "string" + }, + "primaryDomain": { + "type": "string" + }, + "privateKey": { + "type": "string" + }, + "provider": { + "type": "string" + }, + "pushDir": { + "type": "boolean" + }, + "shell": { + "type": "string" + }, + "skipDNS": { + "type": "boolean" + }, + "startDate": { + "type": "string" + }, + "status": { + "type": "string" + }, + "type": { + "type": "string" + }, + "updatedAt": { + "type": "string" + }, + "websites": { + "type": "array", + "items": { + "$ref": "#/definitions/model.Website" + } + } + } } }, "securityDefinitions": { diff --git a/cmd/server/docs/swagger.yaml b/cmd/server/docs/swagger.yaml index 7016bda27..00c691dbd 100644 --- a/cmd/server/docs/swagger.yaml +++ b/cmd/server/docs/swagger.yaml @@ -39,6 +39,35 @@ definitions: ipWhiteList: type: string type: object + dto.AppConfigVersion: + properties: + additionalProperties: {} + downloadCallBackUrl: + type: string + downloadUrl: + type: string + lastModified: + type: integer + name: + type: string + type: object + dto.AppDefine: + properties: + additionalProperties: + $ref: '#/definitions/dto.AppProperty' + icon: + type: string + lastModified: + type: integer + name: + type: string + readMe: + type: string + versions: + items: + $ref: '#/definitions/dto.AppConfigVersion' + type: array + type: object dto.AppInstallInfo: properties: id: @@ -48,6 +77,58 @@ definitions: name: type: string type: object + dto.AppList: + properties: + additionalProperties: + $ref: '#/definitions/dto.ExtraProperties' + apps: + items: + $ref: '#/definitions/dto.AppDefine' + type: array + lastModified: + type: integer + valid: + type: boolean + violations: + items: + type: string + type: array + type: object + dto.AppProperty: + properties: + Required: + items: + type: string + type: array + crossVersionUpdate: + type: boolean + document: + type: string + github: + type: string + key: + type: string + limit: + type: integer + name: + type: string + recommend: + type: integer + shortDescEn: + type: string + shortDescZh: + type: string + tags: + items: + type: string + type: array + type: + type: string + version: + type: number + website: + type: string + type: object dto.AppResource: properties: name: @@ -347,6 +428,29 @@ definitions: treeType: type: string type: object + dto.CleanData: + properties: + containerClean: + items: + $ref: '#/definitions/dto.CleanTree' + type: array + downloadClean: + items: + $ref: '#/definitions/dto.CleanTree' + type: array + systemClean: + items: + $ref: '#/definitions/dto.CleanTree' + type: array + systemLogClean: + items: + $ref: '#/definitions/dto.CleanTree' + type: array + uploadClean: + items: + $ref: '#/definitions/dto.CleanTree' + type: array + type: object dto.CleanLog: properties: logType: @@ -357,6 +461,27 @@ definitions: required: - logType type: object + dto.CleanTree: + properties: + children: + items: + $ref: '#/definitions/dto.CleanTree' + type: array + id: + type: string + isCheck: + type: boolean + isRecommend: + type: boolean + label: + type: string + name: + type: string + size: + type: integer + type: + type: string + type: object dto.CommandInfo: properties: command: @@ -1332,6 +1457,15 @@ definitions: - fileName - source type: object + dto.ExtraProperties: + properties: + tags: + items: + $ref: '#/definitions/dto.Tag' + type: array + version: + type: string + type: object dto.Fail2BanBaseInfo: properties: banAction: @@ -1633,6 +1767,37 @@ definitions: ip: type: string type: object + dto.HostInfo: + properties: + addr: + type: string + authMode: + type: string + createdAt: + type: string + description: + type: string + groupBelong: + type: string + groupID: + type: integer + id: + type: integer + name: + type: string + passPhrase: + type: string + password: + type: string + port: + type: integer + privateKey: + type: string + rememberPassword: + type: boolean + user: + type: string + type: object dto.HostOperate: properties: addr: @@ -1874,6 +2039,26 @@ definitions: - interval - secret type: object + dto.MonitorData: + properties: + date: + items: + type: string + type: array + param: + enum: + - cpu + - memory + - load + - io + - network + type: string + value: + items: {} + type: array + required: + - param + type: object dto.MonitorSearch: properties: endTime: @@ -2202,6 +2387,13 @@ definitions: - driver - name type: object + dto.NginxAuth: + properties: + remark: + type: string + username: + type: string + type: object dto.NginxKey: enum: - index @@ -2829,6 +3021,21 @@ definitions: required: - key type: object + dto.SSLInfo: + properties: + cert: + type: string + domain: + type: string + key: + type: string + rootPath: + type: string + sslID: + type: integer + timeout: + type: string + type: object dto.SSLUpdate: properties: autoRestart: @@ -3138,6 +3345,15 @@ definitions: - defaultDownload - from type: object + dto.SnapshotFile: + properties: + id: + type: integer + name: + type: string + size: + type: integer + type: object dto.SnapshotImport: properties: description: @@ -3163,6 +3379,27 @@ definitions: required: - id type: object + dto.SnapshotStatus: + properties: + appData: + type: string + backupData: + type: string + compress: + type: string + daemonJson: + type: string + panel: + type: string + panelData: + type: string + panelInfo: + type: string + size: + type: string + upload: + type: string + type: object dto.SwapHelper: properties: isNew: @@ -3176,6 +3413,15 @@ definitions: required: - path type: object + dto.Tag: + properties: + key: + type: string + name: + type: string + sort: + type: integer + type: object dto.TreeChild: properties: id: @@ -3440,6 +3686,62 @@ definitions: version: type: string type: object + model.Favorite: + properties: + createdAt: + type: string + id: + type: integer + isDir: + type: boolean + isTxt: + type: boolean + name: + type: string + path: + type: string + type: + type: string + updatedAt: + type: string + type: object + model.Runtime: + properties: + appDetailId: + type: integer + codeDir: + type: string + createdAt: + type: string + dockerCompose: + type: string + env: + type: string + id: + type: integer + image: + type: string + message: + type: string + name: + type: string + params: + type: string + port: + type: integer + resource: + type: string + status: + type: string + type: + type: string + updatedAt: + type: string + version: + type: string + workDir: + type: string + type: object model.Tag: properties: createdAt: @@ -5209,6 +5511,33 @@ definitions: - id - user type: object + response.AppConfig: + properties: + advanced: + type: boolean + allowPort: + type: boolean + containerName: + type: string + cpuQuota: + type: number + dockerCompose: + type: string + editCompose: + type: boolean + hostMode: + type: boolean + memoryLimit: + type: number + memoryUnit: + type: string + params: + items: + $ref: '#/definitions/response.AppParam' + type: array + pullImage: + type: boolean + type: object response.AppDTO: properties: createdAt: @@ -5298,6 +5627,39 @@ definitions: version: type: string type: object + response.AppDto: + properties: + icon: + type: string + id: + type: integer + installed: + type: boolean + key: + type: string + limit: + type: integer + name: + type: string + resource: + type: string + shortDescEn: + type: string + shortDescZh: + type: string + status: + type: string + tags: + items: + $ref: '#/definitions/model.Tag' + type: array + type: + type: string + versions: + items: + type: string + type: array + type: object response.AppInstalledCheck: properties: app: @@ -5348,6 +5710,15 @@ definitions: value: {} values: {} type: object + response.AppRes: + properties: + items: + items: + $ref: '#/definitions/response.AppDto' + type: array + total: + type: integer + type: object response.AppService: properties: config: {} @@ -5358,6 +5729,39 @@ definitions: value: type: string type: object + response.AppUpdateRes: + properties: + appList: + $ref: '#/definitions/dto.AppList' + appStoreLastModified: + type: integer + canUpdate: + type: boolean + isSyncing: + type: boolean + type: object + response.DatabaseConn: + properties: + containerName: + type: string + password: + type: string + port: + type: integer + serviceName: + type: string + status: + type: string + username: + type: string + type: object + response.DirSizeRes: + properties: + size: + type: number + required: + - size + type: object response.FileInfo: properties: content: @@ -5407,6 +5811,21 @@ definitions: user: type: string type: object + response.FileLineContent: + properties: + content: + type: string + end: + type: boolean + lines: + items: + type: string + type: array + path: + type: string + total: + type: integer + type: object response.FileTree: properties: children: @@ -5424,6 +5843,22 @@ definitions: path: type: string type: object + response.FileWgetRes: + properties: + key: + type: string + type: object + response.HostToolConfig: + properties: + content: + type: string + type: object + response.HostToolRes: + properties: + config: {} + type: + type: string + type: object response.IgnoredApp: properties: detailID: @@ -5435,6 +5870,45 @@ definitions: version: type: string type: object + response.NginxAntiLeechRes: + properties: + blocked: + type: boolean + cache: + type: boolean + cacheTime: + type: integer + cacheUint: + type: string + enable: + type: boolean + extends: + type: string + logEnable: + type: boolean + noneRef: + type: boolean + return: + type: string + serverNames: + items: + type: string + type: array + type: object + response.NginxAuthRes: + properties: + enable: + type: boolean + items: + items: + $ref: '#/definitions/dto.NginxAuth' + type: array + type: object + response.NginxFile: + properties: + content: + type: string + type: object response.NginxParam: properties: name: @@ -5444,6 +5918,40 @@ definitions: type: string type: array type: object + response.NginxRedirectConfig: + properties: + content: + type: string + domains: + items: + type: string + type: array + enable: + type: boolean + filePath: + type: string + keepPath: + type: boolean + name: + type: string + path: + type: string + redirect: + type: string + redirectRoot: + type: boolean + target: + type: string + type: + type: string + websiteID: + type: integer + type: object + response.NginxRewriteRes: + properties: + content: + type: string + type: object response.NginxStatus: properties: accepts: @@ -5461,6 +5969,17 @@ definitions: writing: type: string type: object + response.NodeModule: + properties: + description: + type: string + license: + type: string + name: + type: string + version: + type: string + type: object response.PHPConfig: properties: disableFunctions: @@ -5487,6 +6006,89 @@ definitions: updatedAt: type: string type: object + response.PackageScripts: + properties: + name: + type: string + script: + type: string + type: object + response.ProcessStatus: + properties: + PID: + type: string + msg: + type: string + name: + type: string + status: + type: string + uptime: + type: string + type: object + response.RuntimeDTO: + properties: + appDetailID: + type: integer + appID: + type: integer + appParams: + items: + $ref: '#/definitions/response.AppParam' + type: array + codeDir: + type: string + createdAt: + type: string + exposedPorts: + items: + $ref: '#/definitions/request.ExposedPort' + type: array + id: + type: integer + image: + type: string + message: + type: string + name: + type: string + params: + additionalProperties: true + type: object + path: + type: string + port: + type: integer + resource: + type: string + source: + type: string + status: + type: string + type: + type: string + version: + type: string + type: object + response.SupervisorProcessConfig: + properties: + command: + type: string + dir: + type: string + msg: + type: string + name: + type: string + numprocs: + type: string + status: + items: + $ref: '#/definitions/response.ProcessStatus' + type: array + user: + type: string + type: object response.WebsiteAcmeAccountDTO: properties: createdAt: @@ -5619,6 +6221,19 @@ definitions: webSiteSSLId: type: integer type: object + response.WebsiteDirConfig: + properties: + dirs: + items: + type: string + type: array + msg: + type: string + user: + type: string + userGroup: + type: string + type: object response.WebsiteHTTPS: properties: SSL: @@ -5636,6 +6251,11 @@ definitions: httpConfig: type: string type: object + response.WebsiteHtmlRes: + properties: + content: + type: string + type: object response.WebsiteLog: properties: content: @@ -5656,6 +6276,15 @@ definitions: $ref: '#/definitions/response.NginxParam' type: array type: object + response.WebsiteOption: + properties: + alias: + type: string + id: + type: integer + primaryDomain: + type: string + type: object response.WebsitePreInstallCheck: properties: appName: @@ -5667,6 +6296,77 @@ definitions: version: type: string type: object + response.WebsiteSSLDTO: + properties: + acmeAccount: + $ref: '#/definitions/model.WebsiteAcmeAccount' + acmeAccountId: + type: integer + autoRenew: + type: boolean + caId: + type: integer + certURL: + type: string + createdAt: + type: string + description: + type: string + dir: + type: string + disableCNAME: + type: boolean + dnsAccount: + $ref: '#/definitions/model.WebsiteDnsAccount' + dnsAccountId: + type: integer + domains: + type: string + execShell: + type: boolean + expireDate: + type: string + id: + type: integer + keyType: + type: string + logPath: + type: string + message: + type: string + nameserver1: + type: string + nameserver2: + type: string + organization: + type: string + pem: + type: string + primaryDomain: + type: string + privateKey: + type: string + provider: + type: string + pushDir: + type: boolean + shell: + type: string + skipDNS: + type: boolean + startDate: + type: string + status: + type: string + type: + type: string + updatedAt: + type: string + websites: + items: + $ref: '#/definitions/model.Website' + type: array + type: object info: contact: {} description: Top-Rated Web-based Linux Server Management Tool @@ -5703,6 +6403,8 @@ paths: responses: "200": description: OK + schema: + $ref: '#/definitions/response.AppUpdateRes' security: - ApiKeyAuth: [] - Timestamp: [] @@ -5869,7 +6571,7 @@ paths: "200": description: OK schema: - type: string + $ref: '#/definitions/response.DatabaseConn' security: - ApiKeyAuth: [] - Timestamp: [] @@ -6025,7 +6727,7 @@ paths: "200": description: OK schema: - $ref: '#/definitions/response.AppParam' + $ref: '#/definitions/response.AppConfig' security: - ApiKeyAuth: [] - Timestamp: [] @@ -6102,6 +6804,8 @@ paths: responses: "200": description: OK + schema: + $ref: '#/definitions/dto.PageResult' security: - ApiKeyAuth: [] - Timestamp: [] @@ -6156,6 +6860,8 @@ paths: responses: "200": description: OK + schema: + $ref: '#/definitions/response.AppRes' security: - ApiKeyAuth: [] - Timestamp: [] @@ -6217,6 +6923,8 @@ paths: responses: "200": description: OK + schema: + type: boolean summary: Check System isDemo tags: - Auth @@ -6225,6 +6933,8 @@ paths: responses: "200": description: OK + schema: + type: boolean summary: Check System isIntl tags: - Auth @@ -6233,6 +6943,8 @@ paths: responses: "200": description: OK + schema: + type: string summary: Load System Language tags: - Auth @@ -6379,6 +7091,8 @@ paths: responses: "200": description: OK + schema: + type: string security: - ApiKeyAuth: [] - Timestamp: [] @@ -6484,6 +7198,8 @@ paths: responses: "200": description: OK + schema: + type: boolean security: - ApiKeyAuth: [] - Timestamp: [] @@ -7037,6 +7753,10 @@ paths: responses: "200": description: OK + schema: + items: + type: string + type: array security: - ApiKeyAuth: [] - Timestamp: [] @@ -7070,6 +7790,8 @@ paths: responses: "200": description: OK + schema: + type: string security: - ApiKeyAuth: [] - Timestamp: [] @@ -7974,6 +8696,8 @@ paths: responses: "200": description: OK + schema: + type: string security: - ApiKeyAuth: [] - Timestamp: [] @@ -8330,6 +9054,8 @@ paths: responses: "200": description: OK + schema: + type: string security: - ApiKeyAuth: [] - Timestamp: [] @@ -8425,6 +9151,8 @@ paths: responses: "200": description: OK + schema: + type: boolean security: - ApiKeyAuth: [] - Timestamp: [] @@ -9344,6 +10072,8 @@ paths: responses: "200": description: OK + schema: + type: boolean security: - ApiKeyAuth: [] - Timestamp: [] @@ -9533,6 +10263,8 @@ paths: responses: "200": description: OK + schema: + $ref: '#/definitions/model.Favorite' security: - ApiKeyAuth: [] - Timestamp: [] @@ -9593,6 +10325,8 @@ paths: responses: "200": description: OK + schema: + $ref: '#/definitions/dto.PageResult' security: - ApiKeyAuth: [] - Timestamp: [] @@ -9696,6 +10430,8 @@ paths: responses: "200": description: OK + schema: + $ref: '#/definitions/response.FileLineContent' security: - ApiKeyAuth: [] - Timestamp: [] @@ -9762,6 +10498,8 @@ paths: responses: "200": description: OK + schema: + $ref: '#/definitions/dto.PageResult' security: - ApiKeyAuth: [] - Timestamp: [] @@ -9775,6 +10513,8 @@ paths: responses: "200": description: OK + schema: + type: string security: - ApiKeyAuth: [] - Timestamp: [] @@ -9872,6 +10612,8 @@ paths: responses: "200": description: OK + schema: + $ref: '#/definitions/response.DirSizeRes' security: - ApiKeyAuth: [] - Timestamp: [] @@ -9950,9 +10692,7 @@ paths: "200": description: OK schema: - items: - $ref: '#/definitions/response.FileInfo' - type: array + $ref: '#/definitions/dto.PageResult' security: - ApiKeyAuth: [] - Timestamp: [] @@ -9973,6 +10713,8 @@ paths: responses: "200": description: OK + schema: + $ref: '#/definitions/response.FileWgetRes' security: - ApiKeyAuth: [] - Timestamp: [] @@ -10138,6 +10880,8 @@ paths: responses: "200": description: OK + schema: + type: string security: - ApiKeyAuth: [] - Timestamp: [] @@ -10246,6 +10990,8 @@ paths: responses: "200": description: OK + schema: + type: string security: - ApiKeyAuth: [] - Timestamp: [] @@ -10294,6 +11040,8 @@ paths: responses: "200": description: OK + schema: + $ref: '#/definitions/response.HostToolRes' security: - ApiKeyAuth: [] - Timestamp: [] @@ -10314,6 +11062,8 @@ paths: responses: "200": description: OK + schema: + $ref: '#/definitions/response.HostToolConfig' security: - ApiKeyAuth: [] - Timestamp: [] @@ -10368,6 +11118,8 @@ paths: responses: "200": description: OK + schema: + type: string security: - ApiKeyAuth: [] - Timestamp: [] @@ -10409,6 +11161,8 @@ paths: responses: "200": description: OK + schema: + $ref: '#/definitions/response.SupervisorProcessConfig' security: - ApiKeyAuth: [] - Timestamp: [] @@ -10455,6 +11209,8 @@ paths: responses: "200": description: OK + schema: + type: string security: - ApiKeyAuth: [] - Timestamp: [] @@ -10482,6 +11238,8 @@ paths: responses: "200": description: OK + schema: + $ref: '#/definitions/dto.HostInfo' security: - ApiKeyAuth: [] - Timestamp: [] @@ -10867,8 +11625,6 @@ paths: responses: "200": description: OK - schema: - $ref: '#/definitions/dto.PageResult' security: - ApiKeyAuth: [] - Timestamp: [] @@ -11021,6 +11777,10 @@ paths: responses: "200": description: OK + schema: + items: + $ref: '#/definitions/dto.MonitorData' + type: array security: - ApiKeyAuth: [] - Timestamp: [] @@ -11042,9 +11802,7 @@ paths: "200": description: OK schema: - items: - $ref: '#/definitions/dto.HostTree' - type: array + $ref: '#/definitions/dto.PageResult' security: - ApiKeyAuth: [] - Timestamp: [] @@ -11086,6 +11844,8 @@ paths: responses: "200": description: OK + schema: + type: boolean security: - ApiKeyAuth: [] - Timestamp: [] @@ -11192,8 +11952,6 @@ paths: responses: "200": description: OK - schema: - $ref: '#/definitions/dto.PageResult' security: - ApiKeyAuth: [] - Timestamp: [] @@ -11256,6 +12014,8 @@ paths: responses: "200": description: OK + schema: + type: string security: - ApiKeyAuth: [] - Timestamp: [] @@ -11267,6 +12027,10 @@ paths: responses: "200": description: OK + schema: + items: + type: string + type: array security: - ApiKeyAuth: [] - Timestamp: [] @@ -11279,7 +12043,7 @@ paths: "200": description: OK schema: - $ref: '#/definitions/response.FileInfo' + $ref: '#/definitions/response.NginxFile' security: - ApiKeyAuth: [] - Timestamp: [] @@ -11438,6 +12202,8 @@ paths: responses: "200": description: OK + schema: + $ref: '#/definitions/model.Runtime' security: - ApiKeyAuth: [] - Timestamp: [] @@ -11464,6 +12230,8 @@ paths: responses: "200": description: OK + schema: + $ref: '#/definitions/response.RuntimeDTO' security: - ApiKeyAuth: [] - Timestamp: [] @@ -11511,6 +12279,10 @@ paths: responses: "200": description: OK + schema: + items: + $ref: '#/definitions/response.NodeModule' + type: array security: - ApiKeyAuth: [] - Timestamp: [] @@ -11551,6 +12323,10 @@ paths: responses: "200": description: OK + schema: + items: + $ref: '#/definitions/response.PackageScripts' + type: array security: - ApiKeyAuth: [] - Timestamp: [] @@ -11682,6 +12458,8 @@ paths: responses: "200": description: OK + schema: + $ref: '#/definitions/dto.PageResult' security: - ApiKeyAuth: [] - Timestamp: [] @@ -11735,6 +12513,8 @@ paths: responses: "200": description: OK + schema: + type: string security: - ApiKeyAuth: [] - Timestamp: [] @@ -11925,6 +12705,8 @@ paths: responses: "200": description: OK + schema: + type: string security: - ApiKeyAuth: [] - Timestamp: [] @@ -11953,6 +12735,8 @@ paths: responses: "200": description: OK + schema: + $ref: '#/definitions/dto.PageResult' security: - ApiKeyAuth: [] - Timestamp: [] @@ -11973,6 +12757,8 @@ paths: responses: "200": description: OK + schema: + $ref: '#/definitions/dto.PageResult' security: - ApiKeyAuth: [] - Timestamp: [] @@ -12080,7 +12866,7 @@ paths: description: OK schema: items: - type: string + type: object type: array security: - ApiKeyAuth: [] @@ -12213,6 +12999,10 @@ paths: responses: "200": description: OK + schema: + items: + type: string + type: array security: - ApiKeyAuth: [] - Timestamp: [] @@ -12623,6 +13413,10 @@ paths: responses: "200": description: OK + schema: + items: + $ref: '#/definitions/dto.SnapshotFile' + type: array security: - ApiKeyAuth: [] - Timestamp: [] @@ -12643,6 +13437,8 @@ paths: responses: "200": description: OK + schema: + $ref: '#/definitions/dto.SnapshotStatus' security: - ApiKeyAuth: [] - Timestamp: [] @@ -12666,7 +13462,7 @@ paths: "200": description: OK schema: - $ref: '#/definitions/dto.SettingInfo' + $ref: '#/definitions/dto.SSLInfo' security: - ApiKeyAuth: [] - Timestamp: [] @@ -12742,6 +13538,8 @@ paths: responses: "200": description: OK + schema: + type: string security: - ApiKeyAuth: [] - Timestamp: [] @@ -12865,7 +13663,7 @@ paths: "200": description: OK schema: - $ref: '#/definitions/dto.PageResult' + type: string security: - ApiKeyAuth: [] - Timestamp: [] @@ -12999,6 +13797,8 @@ paths: responses: "200": description: OK + schema: + type: string security: - ApiKeyAuth: [] - Timestamp: [] @@ -13166,6 +13966,8 @@ paths: responses: "200": description: OK + schema: + type: boolean security: - ApiKeyAuth: [] - Timestamp: [] @@ -13186,6 +13988,10 @@ paths: responses: "200": description: OK + schema: + items: + type: string + type: array security: - ApiKeyAuth: [] - Timestamp: [] @@ -13344,6 +14150,8 @@ paths: responses: "200": description: OK + schema: + type: string security: - ApiKeyAuth: [] - Timestamp: [] @@ -13673,6 +14481,8 @@ paths: responses: "200": description: OK + schema: + $ref: '#/definitions/dto.CleanData' security: - ApiKeyAuth: [] - Timestamp: [] @@ -13917,6 +14727,8 @@ paths: responses: "200": description: OK + schema: + $ref: '#/definitions/response.NginxAuthRes' security: - ApiKeyAuth: [] - Timestamp: [] @@ -14240,7 +15052,7 @@ paths: "200": description: OK schema: - $ref: '#/definitions/response.FileInfo' + $ref: '#/definitions/response.WebsiteHtmlRes' security: - ApiKeyAuth: [] - Timestamp: [] @@ -14355,6 +15167,8 @@ paths: responses: "200": description: OK + schema: + $ref: '#/definitions/response.WebsiteDirConfig' security: - ApiKeyAuth: [] - Timestamp: [] @@ -14551,7 +15365,9 @@ paths: "200": description: OK schema: - $ref: '#/definitions/model.WebsiteDomain' + items: + $ref: '#/definitions/model.WebsiteDomain' + type: array security: - ApiKeyAuth: [] - Timestamp: [] @@ -14635,6 +15451,8 @@ paths: responses: "200": description: OK + schema: + $ref: '#/definitions/response.NginxAntiLeechRes' security: - ApiKeyAuth: [] - Timestamp: [] @@ -14786,7 +15604,7 @@ paths: description: OK schema: items: - type: string + $ref: '#/definitions/response.WebsiteOption' type: array security: - ApiKeyAuth: [] @@ -14928,6 +15746,10 @@ paths: responses: "200": description: OK + schema: + items: + $ref: '#/definitions/request.WebsiteProxyConfig' + type: array security: - ApiKeyAuth: [] - Timestamp: [] @@ -15014,6 +15836,10 @@ paths: responses: "200": description: OK + schema: + items: + $ref: '#/definitions/response.NginxRedirectConfig' + type: array security: - ApiKeyAuth: [] - Timestamp: [] @@ -15100,6 +15926,8 @@ paths: responses: "200": description: OK + schema: + $ref: '#/definitions/response.NginxRewriteRes' security: - ApiKeyAuth: [] - Timestamp: [] @@ -15203,6 +16031,8 @@ paths: responses: "200": description: OK + schema: + $ref: '#/definitions/response.WebsiteSSLDTO' security: - ApiKeyAuth: [] - Timestamp: [] @@ -15346,6 +16176,10 @@ paths: responses: "200": description: OK + schema: + items: + $ref: '#/definitions/response.WebsiteSSLDTO' + type: array security: - ApiKeyAuth: [] - Timestamp: [] @@ -15425,6 +16259,8 @@ paths: responses: "200": description: OK + schema: + $ref: '#/definitions/response.WebsiteSSLDTO' security: - ApiKeyAuth: [] - Timestamp: []