diff --git a/agent/app/api/v2/app.go b/agent/app/api/v2/app.go index 5e0cd1df8..a7d4563b7 100644 --- a/agent/app/api/v2/app.go +++ b/agent/app/api/v2/app.go @@ -200,7 +200,7 @@ func (b *BaseApi) GetAppListUpdate(c *gin.Context) { // @Summary Get app icon by app_id // @Accept json // @Param appId path integer true "app id" -// @Success 200 {file} file "app icon" +// @Success 200 {string} file "app icon" // @Security ApiKeyAuth // @Security Timestamp // @Router /apps/icon/:appId [get] diff --git a/agent/app/api/v2/container.go b/agent/app/api/v2/container.go index 37477c9b6..2257706e0 100644 --- a/agent/app/api/v2/container.go +++ b/agent/app/api/v2/container.go @@ -502,7 +502,6 @@ func (b *BaseApi) Inspect(c *gin.Context) { helper.SuccessWithData(c, result) } -// @Router /containers/download/log [post] func (b *BaseApi) DownloadContainerLogs(c *gin.Context) { var req dto.ContainerLog if err := helper.CheckBindAndValidate(&req, c); err != nil { @@ -716,6 +715,7 @@ func (b *BaseApi) ComposeUpdate(c *gin.Context) { // @Param since query string false "时间筛选" // @Param follow query string false "是否追踪" // @Param tail query string false "显示行号" +// @Success 200 // @Security ApiKeyAuth // @Security Timestamp // @Router /containers/search/log [get] diff --git a/agent/app/api/v2/dashboard.go b/agent/app/api/v2/dashboard.go index 9cdc21a8a..f78b7e212 100644 --- a/agent/app/api/v2/dashboard.go +++ b/agent/app/api/v2/dashboard.go @@ -27,7 +27,7 @@ func (b *BaseApi) LoadDashboardOsInfo(c *gin.Context) { // @Tags Dashboard // @Summary Load app launcher // @Accept json -// @Success 200 {Array} dto.AppLauncher +// @Success 200 {array} dto.AppLauncher // @Security ApiKeyAuth // @Security Timestamp // @Router /dashboard/app/launcher [get] @@ -44,7 +44,7 @@ func (b *BaseApi) LoadAppLauncher(c *gin.Context) { // @Summary Load app launcher options // @Accept json // @Param request body dto.SearchByFilter true "request" -// @Success 200 {Array} dto.LauncherOption +// @Success 200 {array} dto.LauncherOption // @Security ApiKeyAuth // @Security Timestamp // @Router /dashboard/app/launcher/option [post] @@ -85,7 +85,7 @@ func (b *BaseApi) UpdateAppLauncher(c *gin.Context) { // @Tags Dashboard // @Summary Load quick jump options -// @Success 200 {Array} dto.QuickJump +// @Success 200 {array} dto.QuickJump // @Security ApiKeyAuth // @Security Timestamp // @Router /dashboard/quick/option [get] @@ -181,7 +181,7 @@ func (b *BaseApi) LoadDashboardCurrentInfo(c *gin.Context) { // @Tags Dashboard // @Summary Load top cpu processes -// @Success 200 {Array} dto.Process +// @Success 200 {array} dto.Process // @Security ApiKeyAuth // @Security Timestamp // @Router /dashboard/current/top/cpu [get] @@ -192,7 +192,7 @@ func (b *BaseApi) LoadDashboardTopCPU(c *gin.Context) { // @Tags Dashboard // @Summary Load top memory processes -// @Success 200 {Array} dto.Process +// @Success 200 {array} dto.Process // @Security ApiKeyAuth // @Security Timestamp // @Router /dashboard/current/top/mem [get] diff --git a/agent/app/api/v2/database_mysql.go b/agent/app/api/v2/database_mysql.go index 6469adf9e..2af4e043b 100644 --- a/agent/app/api/v2/database_mysql.go +++ b/agent/app/api/v2/database_mysql.go @@ -214,6 +214,7 @@ func (b *BaseApi) ListDBFormatCollationOptions(c *gin.Context) { // @Summary Load mysql database from remote // @Accept json // @Param request body dto.MysqlLoadDB true "request" +// @Success 200 // @Security ApiKeyAuth // @Security Timestamp // @Router /databases/load [post] diff --git a/agent/app/api/v2/database_postgresql.go b/agent/app/api/v2/database_postgresql.go index d2e0b8c0a..775ac1e4e 100644 --- a/agent/app/api/v2/database_postgresql.go +++ b/agent/app/api/v2/database_postgresql.go @@ -167,6 +167,7 @@ func (b *BaseApi) SearchPostgresql(c *gin.Context) { // @Summary Load postgresql database from remote // @Accept json // @Param request body dto.PostgresqlLoadDB true "request" +// @Success 200 // @Security ApiKeyAuth // @Security Timestamp // @Router /databases/pg/:database/load [post] diff --git a/agent/app/api/v2/device.go b/agent/app/api/v2/device.go index 6f8197ff0..f5c85fd2b 100644 --- a/agent/app/api/v2/device.go +++ b/agent/app/api/v2/device.go @@ -27,7 +27,7 @@ func (b *BaseApi) LoadDeviceBaseInfo(c *gin.Context) { // @Tags Device // @Summary list time zone options // @Accept json -// @Success 200 {Array} string +// @Success 200 {array} string // @Security ApiKeyAuth // @Security Timestamp // @Router /toolbox/device/zone/options [get] diff --git a/agent/app/api/v2/fail2ban.go b/agent/app/api/v2/fail2ban.go index 55e09a60a..30b6fd8e2 100644 --- a/agent/app/api/v2/fail2ban.go +++ b/agent/app/api/v2/fail2ban.go @@ -28,7 +28,7 @@ func (b *BaseApi) LoadFail2BanBaseInfo(c *gin.Context) { // @Summary Page fail2ban ip list // @Accept json // @Param request body dto.Fail2BanSearch true "request" -// @Success 200 {Array} string +// @Success 200 {array} string // @Security ApiKeyAuth // @Security Timestamp // @Router /toolbox/fail2ban/search [post] @@ -51,6 +51,7 @@ func (b *BaseApi) SearchFail2Ban(c *gin.Context) { // @Summary Operate fail2ban // @Accept json // @Param request body dto.Operate true "request" +// @Success 200 // @Security ApiKeyAuth // @Security Timestamp // @Router /toolbox/fail2ban/operate [post] @@ -72,7 +73,8 @@ func (b *BaseApi) OperateFail2Ban(c *gin.Context) { // @Tags Fail2ban // @Summary Operate sshd of fail2ban // @Accept json -// @Param request body dto.Operate true "request" +// @Param request body dto.Fail2BanSet true "request" +// @Success 200 // @Security ApiKeyAuth // @Security Timestamp // @Router /toolbox/fail2ban/operate/sshd [post] diff --git a/agent/app/api/v2/ftp.go b/agent/app/api/v2/ftp.go index c95f2ae20..a8e83cf80 100644 --- a/agent/app/api/v2/ftp.go +++ b/agent/app/api/v2/ftp.go @@ -54,6 +54,7 @@ func (b *BaseApi) LoadFtpLogInfo(c *gin.Context) { // @Summary Operate FTP // @Accept json // @Param request body dto.Operate true "request" +// @Success 200 // @Security ApiKeyAuth // @Security Timestamp // @Router /toolbox/ftp/operate [post] diff --git a/agent/app/api/v2/monitor.go b/agent/app/api/v2/monitor.go index a0b03ba21..6543fc00a 100644 --- a/agent/app/api/v2/monitor.go +++ b/agent/app/api/v2/monitor.go @@ -34,7 +34,7 @@ func (b *BaseApi) LoadMonitor(c *gin.Context) { // @Tags Monitor // @Summary Load monitor data // @Param request body dto.MonitorGPUSearch true "request" -// @Success 200 {object} dto.dto.MonitorGPUData +// @Success 200 {object} dto.MonitorGPUData // @Security ApiKeyAuth // @Security Timestamp // @Router /hosts/monitor/gpu/search [post] diff --git a/agent/app/api/v2/setting.go b/agent/app/api/v2/setting.go index c2a6d0632..d869d73db 100644 --- a/agent/app/api/v2/setting.go +++ b/agent/app/api/v2/setting.go @@ -86,7 +86,7 @@ func (b *BaseApi) CheckLocalConn(c *gin.Context) { // @Tags System Setting // @Summary Check local conn info -// @Success 200 {bool} isOk +// @Success 200 {boolean} isOk // @Security ApiKeyAuth // @Security Timestamp // @Router /settings/ssh/check/info [post] diff --git a/agent/app/api/v2/system.go b/agent/app/api/v2/system.go index 544ac0226..f113ab5f9 100644 --- a/agent/app/api/v2/system.go +++ b/agent/app/api/v2/system.go @@ -9,7 +9,7 @@ import ( // @Tags Host // @Summary Check if a system component exists // @Accept json -// @Param name query string true "Component name to check (e.g., rsync, docker)" +// @Param name path string true "Component name to check (e.g., rsync, docker)" // @Success 200 {object} response.ComponentInfo // @Security ApiKeyAuth // @Security Timestamp diff --git a/core/app/api/v2/command.go b/core/app/api/v2/command.go index ed9b5dadd..df13922a2 100644 --- a/core/app/api/v2/command.go +++ b/core/app/api/v2/command.go @@ -154,7 +154,7 @@ func (b *BaseApi) SearchCommand(c *gin.Context) { // @Summary Tree commands // @Accept json // @Param request body dto.OperateByType true "request" -// @Success 200 {Array} dto.CommandTree +// @Success 200 {array} dto.CommandTree // @Security ApiKeyAuth // @Security Timestamp // @Router /core/commands/tree [get] diff --git a/core/cmd/server/docs/docs.go b/core/cmd/server/docs/docs.go index 4e223772c..7bf865864 100644 --- a/core/cmd/server/docs/docs.go +++ b/core/cmd/server/docs/docs.go @@ -831,6 +831,42 @@ const docTemplate = `{ ] } }, + "/apps/icon/:appId": { + "get": { + "consumes": [ + "application/json" + ], + "parameters": [ + { + "description": "app id", + "in": "path", + "name": "appId", + "required": true, + "type": "integer" + } + ], + "responses": { + "200": { + "description": "app icon", + "schema": { + "type": "string" + } + } + }, + "security": [ + { + "ApiKeyAuth": [] + }, + { + "Timestamp": [] + } + ], + "summary": "Get app icon by app_id", + "tags": [ + "App" + ] + } + }, "/apps/ignored/cancel": { "post": { "consumes": [ @@ -3101,11 +3137,6 @@ const docTemplate = `{ ] } }, - "/containers/download/log": { - "post": { - "responses": {} - } - }, "/containers/image": { "get": { "produces": [ @@ -3669,6 +3700,41 @@ const docTemplate = `{ } } }, + "/containers/item/stats": { + "post": { + "consumes": [ + "application/json" + ], + "parameters": [ + { + "description": "request", + "in": "body", + "name": "request", + "required": true, + "schema": { + "$ref": "#/definitions/dto.OperationWithName" + } + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/dto.ContainerItemStats" + } + } + }, + "security": [ + { + "ApiKeyAuth": [] + }, + { + "Timestamp": [] + } + ], + "summary": "Load container stats size" + } + }, "/containers/limit": { "get": { "responses": { @@ -4451,7 +4517,11 @@ const docTemplate = `{ "type": "string" } ], - "responses": {}, + "responses": { + "200": { + "description": "OK" + } + }, "security": [ { "ApiKeyAuth": [] @@ -5701,7 +5771,10 @@ const docTemplate = `{ "200": { "description": "OK", "schema": { - "type": "Array" + "items": { + "$ref": "#/definitions/dto.CommandTree" + }, + "type": "array" } } }, @@ -7264,59 +7337,6 @@ const docTemplate = `{ } } }, - "/core/settings/rollback": { - "post": { - "consumes": [ - "application/json" - ], - "parameters": [ - { - "description": "request", - "in": "body", - "name": "request", - "required": true, - "schema": { - "$ref": "#/definitions/dto.OperateByID" - } - } - ], - "responses": { - "200": { - "description": "OK" - } - }, - "security": [ - { - "ApiKeyAuth": [] - }, - { - "Timestamp": [] - } - ], - "summary": "Upgrade", - "tags": [ - "System Setting" - ], - "x-panel-log": { - "BeforeFunctions": [ - { - "db": "upgrade_logs", - "input_column": "id", - "input_value": "id", - "isList": false, - "output_column": "old_version", - "output_value": "version" - } - ], - "bodyKeys": [ - "id" - ], - "formatEN": "rollback system =\u003e [version]", - "formatZH": "回滚系统 =\u003e [version]", - "paramKeys": [] - } - } - }, "/core/settings/search": { "post": { "responses": { @@ -8382,7 +8402,10 @@ const docTemplate = `{ "200": { "description": "OK", "schema": { - "type": "Array" + "items": { + "$ref": "#/definitions/dto.AppLauncher" + }, + "type": "array" } } }, @@ -8420,7 +8443,10 @@ const docTemplate = `{ "200": { "description": "OK", "schema": { - "type": "Array" + "items": { + "$ref": "#/definitions/dto.LauncherOption" + }, + "type": "array" } } }, @@ -8620,6 +8646,60 @@ const docTemplate = `{ ] } }, + "/dashboard/current/top/cpu": { + "get": { + "responses": { + "200": { + "description": "OK", + "schema": { + "items": { + "$ref": "#/definitions/dto.Process" + }, + "type": "array" + } + } + }, + "security": [ + { + "ApiKeyAuth": [] + }, + { + "Timestamp": [] + } + ], + "summary": "Load top cpu processes", + "tags": [ + "Dashboard" + ] + } + }, + "/dashboard/current/top/mem": { + "get": { + "responses": { + "200": { + "description": "OK", + "schema": { + "items": { + "$ref": "#/definitions/dto.Process" + }, + "type": "array" + } + } + }, + "security": [ + { + "ApiKeyAuth": [] + }, + { + "Timestamp": [] + } + ], + "summary": "Load top memory processes", + "tags": [ + "Dashboard" + ] + } + }, "/dashboard/quick/change": { "post": { "consumes": [ @@ -8668,7 +8748,10 @@ const docTemplate = `{ "200": { "description": "OK", "schema": { - "type": "Array" + "items": { + "$ref": "#/definitions/dto.QuickJump" + }, + "type": "array" } } }, @@ -9530,6 +9613,47 @@ const docTemplate = `{ } } }, + "/databases/format/options": { + "post": { + "consumes": [ + "application/json" + ], + "parameters": [ + { + "description": "request", + "in": "body", + "name": "request", + "required": true, + "schema": { + "$ref": "#/definitions/dto.OperationWithName" + } + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "items": { + "$ref": "#/definitions/dto.MysqlFormatCollationOption" + }, + "type": "array" + } + } + }, + "security": [ + { + "ApiKeyAuth": [] + }, + { + "Timestamp": [] + } + ], + "summary": "List mysql database format collation options", + "tags": [ + "Database Mysql" + ] + } + }, "/databases/load": { "post": { "consumes": [ @@ -9546,46 +9670,9 @@ const docTemplate = `{ } } ], - "responses": {}, - "security": [ - { - "ApiKeyAuth": [] - }, - { - "Timestamp": [] - } - ], - "summary": "Load mysql database from remote", - "tags": [ - "Database Mysql" - ] - } - }, - "/databases/options": { - "get": { - "consumes": [ - "application/json" - ], - "parameters": [ - { - "description": "request", - "in": "body", - "name": "request", - "required": true, - "schema": { - "$ref": "#/definitions/dto.PageInfo" - } - } - ], "responses": { "200": { - "description": "OK", - "schema": { - "items": { - "$ref": "#/definitions/dto.MysqlOption" - }, - "type": "array" - } + "description": "OK" } }, "security": [ @@ -9596,7 +9683,7 @@ const docTemplate = `{ "Timestamp": [] } ], - "summary": "List mysql database names", + "summary": "Load mysql database from remote", "tags": [ "Database Mysql" ] @@ -9662,7 +9749,11 @@ const docTemplate = `{ } } ], - "responses": {}, + "responses": { + "200": { + "description": "OK" + } + }, "security": [ { "ApiKeyAuth": [] @@ -12117,7 +12208,7 @@ const docTemplate = `{ "parameters": [ { "description": "Component name to check (e.g., rsync, docker)", - "in": "query", + "in": "path", "name": "name", "required": true, "type": "string" @@ -12938,6 +13029,41 @@ const docTemplate = `{ } } }, + "/hosts/monitor/gpu/search": { + "post": { + "parameters": [ + { + "description": "request", + "in": "body", + "name": "request", + "required": true, + "schema": { + "$ref": "#/definitions/dto.MonitorGPUSearch" + } + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/dto.MonitorGPUData" + } + } + }, + "security": [ + { + "ApiKeyAuth": [] + }, + { + "Timestamp": [] + } + ], + "summary": "Load monitor data", + "tags": [ + "Monitor" + ] + } + }, "/hosts/monitor/search": { "post": { "parameters": [ @@ -15504,6 +15630,41 @@ const docTemplate = `{ ] } }, + "/settings/description/save": { + "post": { + "consumes": [ + "application/json" + ], + "parameters": [ + { + "description": "request", + "in": "body", + "name": "request", + "required": true, + "schema": { + "$ref": "#/definitions/dto.CommonDescription" + } + } + ], + "responses": { + "200": { + "description": "OK" + } + }, + "security": [ + { + "ApiKeyAuth": [] + }, + { + "Timestamp": [] + } + ], + "summary": "Save common description", + "tags": [ + "System Setting" + ] + } + }, "/settings/get/{key}": { "get": { "parameters": [ @@ -16027,7 +16188,7 @@ const docTemplate = `{ "200": { "description": "OK", "schema": { - "type": "bool" + "type": "boolean" } } }, @@ -17006,7 +17167,10 @@ const docTemplate = `{ "200": { "description": "OK", "schema": { - "type": "Array" + "items": { + "type": "string" + }, + "type": "array" } } }, @@ -17091,7 +17255,11 @@ const docTemplate = `{ } } ], - "responses": {}, + "responses": { + "200": { + "description": "OK" + } + }, "security": [ { "ApiKeyAuth": [] @@ -17127,11 +17295,15 @@ const docTemplate = `{ "name": "request", "required": true, "schema": { - "$ref": "#/definitions/dto.Operate" + "$ref": "#/definitions/dto.Fail2BanSet" } } ], - "responses": {}, + "responses": { + "200": { + "description": "OK" + } + }, "security": [ { "ApiKeyAuth": [] @@ -17166,7 +17338,10 @@ const docTemplate = `{ "200": { "description": "OK", "schema": { - "type": "Array" + "items": { + "type": "string" + }, + "type": "array" } } }, @@ -17440,7 +17615,11 @@ const docTemplate = `{ } } ], - "responses": {}, + "responses": { + "200": { + "description": "OK" + } + }, "security": [ { "ApiKeyAuth": [] @@ -21517,6 +21696,44 @@ const docTemplate = `{ }, "type": "object" }, + "dto.AppLauncher": { + "properties": { + "description": { + "type": "string" + }, + "detail": { + "items": { + "$ref": "#/definitions/dto.InstallDetail" + }, + "type": "array" + }, + "icon": { + "type": "string" + }, + "isInstall": { + "type": "boolean" + }, + "isRecommend": { + "type": "boolean" + }, + "key": { + "type": "string" + }, + "limit": { + "type": "integer" + }, + "name": { + "type": "string" + }, + "recommend": { + "type": "integer" + }, + "type": { + "type": "string" + } + }, + "type": "object" + }, "dto.AppList": { "properties": { "additionalProperties": { @@ -22274,6 +22491,23 @@ const docTemplate = `{ ], "type": "object" }, + "dto.CommandTree": { + "properties": { + "children": { + "items": { + "$ref": "#/definitions/dto.CommandTree" + }, + "type": "array" + }, + "label": { + "type": "string" + }, + "value": { + "type": "string" + } + }, + "type": "object" + }, "dto.CommonBackup": { "properties": { "description": { @@ -22314,6 +22548,30 @@ const docTemplate = `{ ], "type": "object" }, + "dto.CommonDescription": { + "properties": { + "description": { + "type": "string" + }, + "detailType": { + "type": "string" + }, + "id": { + "type": "string" + }, + "isPinned": { + "type": "boolean" + }, + "type": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ], + "type": "object" + }, "dto.CommonRecover": { "properties": { "backupRecordID": { @@ -22557,6 +22815,41 @@ const docTemplate = `{ }, "type": "object" }, + "dto.ContainerItemStats": { + "properties": { + "buildCacheReclaimable": { + "type": "integer" + }, + "buildCacheUsage": { + "type": "integer" + }, + "containerReclaimable": { + "type": "integer" + }, + "containerUsage": { + "type": "integer" + }, + "imageReclaimable": { + "type": "integer" + }, + "imageUsage": { + "type": "integer" + }, + "sizeRootFs": { + "type": "integer" + }, + "sizeRw": { + "type": "integer" + }, + "volumeReclaimable": { + "type": "integer" + }, + "volumeUsage": { + "type": "integer" + } + }, + "type": "object" + }, "dto.ContainerListStats": { "properties": { "containerID": { @@ -22589,6 +22882,23 @@ const docTemplate = `{ }, "type": "object" }, + "dto.ContainerNetwork": { + "properties": { + "ipv4": { + "type": "string" + }, + "ipv6": { + "type": "string" + }, + "macAddr": { + "type": "string" + }, + "network": { + "type": "string" + } + }, + "type": "object" + }, "dto.ContainerOperate": { "properties": { "autoRemove": { @@ -22639,21 +22949,12 @@ const docTemplate = `{ "image": { "type": "string" }, - "ipv4": { - "type": "string" - }, - "ipv6": { - "type": "string" - }, "labels": { "items": { "type": "string" }, "type": "array" }, - "macAddr": { - "type": "string" - }, "memory": { "type": "number" }, @@ -22663,8 +22964,11 @@ const docTemplate = `{ "nanoCPUs": { "type": "number" }, - "network": { - "type": "string" + "networks": { + "items": { + "$ref": "#/definitions/dto.ContainerNetwork" + }, + "type": "array" }, "openStdin": { "type": "boolean" @@ -22815,12 +23119,6 @@ const docTemplate = `{ }, "dto.ContainerStatus": { "properties": { - "buildCacheReclaimable": { - "type": "integer" - }, - "buildCacheUsage": { - "type": "integer" - }, "composeCount": { "type": "integer" }, @@ -22830,12 +23128,6 @@ const docTemplate = `{ "containerCount": { "type": "integer" }, - "containerReclaimable": { - "type": "integer" - }, - "containerUsage": { - "type": "integer" - }, "created": { "type": "integer" }, @@ -22848,12 +23140,6 @@ const docTemplate = `{ "imageCount": { "type": "integer" }, - "imageReclaimable": { - "type": "integer" - }, - "imageUsage": { - "type": "integer" - }, "networkCount": { "type": "integer" }, @@ -22874,12 +23160,6 @@ const docTemplate = `{ }, "volumeCount": { "type": "integer" - }, - "volumeReclaimable": { - "type": "integer" - }, - "volumeUsage": { - "type": "integer" } }, "type": "object" @@ -23561,6 +23841,9 @@ const docTemplate = `{ ], "type": "string" }, + "initialDB": { + "type": "string" + }, "name": { "maxLength": 256, "type": "string" @@ -23993,6 +24276,27 @@ const docTemplate = `{ ], "type": "object" }, + "dto.Fail2BanSet": { + "properties": { + "ips": { + "items": { + "type": "string" + }, + "type": "array" + }, + "operate": { + "enum": [ + "banned", + "ignore" + ], + "type": "string" + } + }, + "required": [ + "operate" + ], + "type": "object" + }, "dto.Fail2BanUpdate": { "properties": { "key": { @@ -24270,6 +24574,57 @@ const docTemplate = `{ }, "type": "object" }, + "dto.GPUMemoryUsageHelper": { + "properties": { + "gpuProcesses": { + "items": { + "$ref": "#/definitions/dto.GPUProcess" + }, + "type": "array" + }, + "percent": { + "type": "number" + }, + "total": { + "type": "number" + }, + "used": { + "type": "number" + } + }, + "type": "object" + }, + "dto.GPUPowerUsageHelper": { + "properties": { + "percent": { + "type": "number" + }, + "total": { + "type": "number" + }, + "used": { + "type": "number" + } + }, + "type": "object" + }, + "dto.GPUProcess": { + "properties": { + "pid": { + "type": "string" + }, + "processName": { + "type": "string" + }, + "type": { + "type": "string" + }, + "usedMemory": { + "type": "string" + } + }, + "type": "object" + }, "dto.GroupCreate": { "properties": { "id": { @@ -24485,6 +24840,12 @@ const docTemplate = `{ }, "dto.ImageBuild": { "properties": { + "args": { + "items": { + "type": "string" + }, + "type": "array" + }, "dockerfile": { "type": "string" }, @@ -24516,9 +24877,15 @@ const docTemplate = `{ "createdAt": { "type": "string" }, + "description": { + "type": "string" + }, "id": { "type": "string" }, + "isPinned": { + "type": "boolean" + }, "isUsed": { "type": "boolean" }, @@ -24696,6 +25063,38 @@ const docTemplate = `{ ], "type": "object" }, + "dto.InstallDetail": { + "properties": { + "detailID": { + "type": "integer" + }, + "httpPort": { + "type": "integer" + }, + "httpsPort": { + "type": "integer" + }, + "installID": { + "type": "integer" + }, + "name": { + "type": "string" + }, + "path": { + "type": "string" + }, + "status": { + "type": "string" + }, + "version": { + "type": "string" + }, + "webUI": { + "type": "string" + } + }, + "type": "object" + }, "dto.IptablesBatchOperate": { "properties": { "rules": { @@ -24740,6 +25139,8 @@ const docTemplate = `{ "properties": { "chain": { "enum": [ + "1PANEL_BASIC", + "1PANEL_BASIC_BEFORE", "1PANEL_INPUT", "1PANEL_OUTPUT" ], @@ -24775,9 +25176,9 @@ const docTemplate = `{ }, "strategy": { "enum": [ - "ACCEPT", - "DROP", - "REJECT" + "accept", + "drop", + "reject" ], "type": "string" } @@ -24789,6 +25190,17 @@ const docTemplate = `{ ], "type": "object" }, + "dto.LauncherOption": { + "properties": { + "isShow": { + "type": "boolean" + }, + "key": { + "type": "string" + } + }, + "type": "object" + }, "dto.LoadRedisStatus": { "properties": { "name": { @@ -24858,9 +25270,6 @@ const docTemplate = `{ "captchaID": { "type": "string" }, - "ignoreCaptcha": { - "type": "boolean" - }, "language": { "enum": [ "zh", @@ -24937,13 +25346,6 @@ const docTemplate = `{ "type": "array" }, "param": { - "enum": [ - "cpu", - "memory", - "load", - "io", - "network" - ], "type": "string" }, "value": { @@ -24951,9 +25353,61 @@ const docTemplate = `{ "type": "array" } }, - "required": [ - "param" - ], + "type": "object" + }, + "dto.MonitorGPUData": { + "properties": { + "date": { + "items": { + "type": "string" + }, + "type": "array" + }, + "gpuValue": { + "items": { + "type": "number" + }, + "type": "array" + }, + "memoryValue": { + "items": { + "$ref": "#/definitions/dto.GPUMemoryUsageHelper" + }, + "type": "array" + }, + "powerValue": { + "items": { + "$ref": "#/definitions/dto.GPUPowerUsageHelper" + }, + "type": "array" + }, + "speedValue": { + "items": { + "type": "integer" + }, + "type": "array" + }, + "temperatureValue": { + "items": { + "type": "number" + }, + "type": "array" + } + }, + "type": "object" + }, + "dto.MonitorGPUSearch": { + "properties": { + "endTime": { + "type": "string" + }, + "productName": { + "type": "string" + }, + "startTime": { + "type": "string" + } + }, "type": "object" }, "dto.MonitorSearch": { @@ -25030,6 +25484,9 @@ const docTemplate = `{ }, "dto.MysqlDBCreate": { "properties": { + "collation": { + "type": "string" + }, "database": { "type": "string" }, @@ -25037,12 +25494,6 @@ const docTemplate = `{ "type": "string" }, "format": { - "enum": [ - "utf8mb4", - "utf8", - "gbk", - "big5" - ], "type": "string" }, "from": { @@ -25169,6 +25620,20 @@ const docTemplate = `{ ], "type": "object" }, + "dto.MysqlFormatCollationOption": { + "properties": { + "collations": { + "items": { + "type": "string" + }, + "type": "array" + }, + "format": { + "type": "string" + } + }, + "type": "object" + }, "dto.MysqlLoadDB": { "properties": { "database": { @@ -25197,26 +25662,6 @@ const docTemplate = `{ ], "type": "object" }, - "dto.MysqlOption": { - "properties": { - "database": { - "type": "string" - }, - "from": { - "type": "string" - }, - "id": { - "type": "integer" - }, - "name": { - "type": "string" - }, - "type": { - "type": "string" - } - }, - "type": "object" - }, "dto.MysqlStatus": { "properties": { "Aborted_clients": { @@ -26037,6 +26482,9 @@ const docTemplate = `{ "address": { "type": "string" }, + "chain": { + "type": "string" + }, "description": { "type": "string" }, @@ -27583,18 +28031,27 @@ const docTemplate = `{ }, "dto.UpdateFirewallDescription": { "properties": { - "address": { + "chain": { "type": "string" }, "description": { "type": "string" }, - "port": { + "dstIP": { + "type": "string" + }, + "dstPort": { "type": "string" }, "protocol": { "type": "string" }, + "srcIP": { + "type": "string" + }, + "srcPort": { + "type": "string" + }, "strategy": { "enum": [ "accept", @@ -32255,15 +32712,9 @@ const docTemplate = `{ "description": { "type": "string" }, - "github": { - "type": "string" - }, "gpuSupport": { "type": "boolean" }, - "icon": { - "type": "string" - }, "id": { "type": "integer" }, @@ -32282,29 +32733,14 @@ const docTemplate = `{ "recommend": { "type": "integer" }, - "resource": { - "type": "string" - }, "status": { "type": "string" }, "tags": { - "items": { - "$ref": "#/definitions/response.TagDTO" - }, - "type": "array" - }, - "type": { - "type": "string" - }, - "versions": { "items": { "type": "string" }, "type": "array" - }, - "website": { - "type": "string" } }, "type": "object" @@ -32403,8 +32839,11 @@ const docTemplate = `{ }, "type": "array" }, - "systemDisk": { - "$ref": "#/definitions/response.DiskInfo" + "systemDisks": { + "items": { + "$ref": "#/definitions/response.DiskInfo" + }, + "type": "array" }, "totalCapacity": { "type": "integer" @@ -33945,4 +34384,4 @@ var SwaggerInfo = &swag.Spec{ func init() { swag.Register(SwaggerInfo.InstanceName(), SwaggerInfo) -} \ No newline at end of file +} diff --git a/core/cmd/server/docs/swagger.json b/core/cmd/server/docs/swagger.json index 054f4b617..8cb253b71 100644 --- a/core/cmd/server/docs/swagger.json +++ b/core/cmd/server/docs/swagger.json @@ -827,6 +827,42 @@ ] } }, + "/apps/icon/:appId": { + "get": { + "consumes": [ + "application/json" + ], + "parameters": [ + { + "description": "app id", + "in": "path", + "name": "appId", + "required": true, + "type": "integer" + } + ], + "responses": { + "200": { + "description": "app icon", + "schema": { + "type": "string" + } + } + }, + "security": [ + { + "ApiKeyAuth": [] + }, + { + "Timestamp": [] + } + ], + "summary": "Get app icon by app_id", + "tags": [ + "App" + ] + } + }, "/apps/ignored/cancel": { "post": { "consumes": [ @@ -3097,11 +3133,6 @@ ] } }, - "/containers/download/log": { - "post": { - "responses": {} - } - }, "/containers/image": { "get": { "produces": [ @@ -3665,6 +3696,41 @@ } } }, + "/containers/item/stats": { + "post": { + "consumes": [ + "application/json" + ], + "parameters": [ + { + "description": "request", + "in": "body", + "name": "request", + "required": true, + "schema": { + "$ref": "#/definitions/dto.OperationWithName" + } + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/dto.ContainerItemStats" + } + } + }, + "security": [ + { + "ApiKeyAuth": [] + }, + { + "Timestamp": [] + } + ], + "summary": "Load container stats size" + } + }, "/containers/limit": { "get": { "responses": { @@ -4447,7 +4513,11 @@ "type": "string" } ], - "responses": {}, + "responses": { + "200": { + "description": "OK" + } + }, "security": [ { "ApiKeyAuth": [] @@ -5697,7 +5767,10 @@ "200": { "description": "OK", "schema": { - "type": "Array" + "items": { + "$ref": "#/definitions/dto.CommandTree" + }, + "type": "array" } } }, @@ -7260,59 +7333,6 @@ } } }, - "/core/settings/rollback": { - "post": { - "consumes": [ - "application/json" - ], - "parameters": [ - { - "description": "request", - "in": "body", - "name": "request", - "required": true, - "schema": { - "$ref": "#/definitions/dto.OperateByID" - } - } - ], - "responses": { - "200": { - "description": "OK" - } - }, - "security": [ - { - "ApiKeyAuth": [] - }, - { - "Timestamp": [] - } - ], - "summary": "Upgrade", - "tags": [ - "System Setting" - ], - "x-panel-log": { - "BeforeFunctions": [ - { - "db": "upgrade_logs", - "input_column": "id", - "input_value": "id", - "isList": false, - "output_column": "old_version", - "output_value": "version" - } - ], - "bodyKeys": [ - "id" - ], - "formatEN": "rollback system =\u003e [version]", - "formatZH": "回滚系统 =\u003e [version]", - "paramKeys": [] - } - } - }, "/core/settings/search": { "post": { "responses": { @@ -8378,7 +8398,10 @@ "200": { "description": "OK", "schema": { - "type": "Array" + "items": { + "$ref": "#/definitions/dto.AppLauncher" + }, + "type": "array" } } }, @@ -8416,7 +8439,10 @@ "200": { "description": "OK", "schema": { - "type": "Array" + "items": { + "$ref": "#/definitions/dto.LauncherOption" + }, + "type": "array" } } }, @@ -8616,6 +8642,60 @@ ] } }, + "/dashboard/current/top/cpu": { + "get": { + "responses": { + "200": { + "description": "OK", + "schema": { + "items": { + "$ref": "#/definitions/dto.Process" + }, + "type": "array" + } + } + }, + "security": [ + { + "ApiKeyAuth": [] + }, + { + "Timestamp": [] + } + ], + "summary": "Load top cpu processes", + "tags": [ + "Dashboard" + ] + } + }, + "/dashboard/current/top/mem": { + "get": { + "responses": { + "200": { + "description": "OK", + "schema": { + "items": { + "$ref": "#/definitions/dto.Process" + }, + "type": "array" + } + } + }, + "security": [ + { + "ApiKeyAuth": [] + }, + { + "Timestamp": [] + } + ], + "summary": "Load top memory processes", + "tags": [ + "Dashboard" + ] + } + }, "/dashboard/quick/change": { "post": { "consumes": [ @@ -8664,7 +8744,10 @@ "200": { "description": "OK", "schema": { - "type": "Array" + "items": { + "$ref": "#/definitions/dto.QuickJump" + }, + "type": "array" } } }, @@ -9526,6 +9609,47 @@ } } }, + "/databases/format/options": { + "post": { + "consumes": [ + "application/json" + ], + "parameters": [ + { + "description": "request", + "in": "body", + "name": "request", + "required": true, + "schema": { + "$ref": "#/definitions/dto.OperationWithName" + } + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "items": { + "$ref": "#/definitions/dto.MysqlFormatCollationOption" + }, + "type": "array" + } + } + }, + "security": [ + { + "ApiKeyAuth": [] + }, + { + "Timestamp": [] + } + ], + "summary": "List mysql database format collation options", + "tags": [ + "Database Mysql" + ] + } + }, "/databases/load": { "post": { "consumes": [ @@ -9542,46 +9666,9 @@ } } ], - "responses": {}, - "security": [ - { - "ApiKeyAuth": [] - }, - { - "Timestamp": [] - } - ], - "summary": "Load mysql database from remote", - "tags": [ - "Database Mysql" - ] - } - }, - "/databases/options": { - "get": { - "consumes": [ - "application/json" - ], - "parameters": [ - { - "description": "request", - "in": "body", - "name": "request", - "required": true, - "schema": { - "$ref": "#/definitions/dto.PageInfo" - } - } - ], "responses": { "200": { - "description": "OK", - "schema": { - "items": { - "$ref": "#/definitions/dto.MysqlOption" - }, - "type": "array" - } + "description": "OK" } }, "security": [ @@ -9592,7 +9679,7 @@ "Timestamp": [] } ], - "summary": "List mysql database names", + "summary": "Load mysql database from remote", "tags": [ "Database Mysql" ] @@ -9658,7 +9745,11 @@ } } ], - "responses": {}, + "responses": { + "200": { + "description": "OK" + } + }, "security": [ { "ApiKeyAuth": [] @@ -12113,7 +12204,7 @@ "parameters": [ { "description": "Component name to check (e.g., rsync, docker)", - "in": "query", + "in": "path", "name": "name", "required": true, "type": "string" @@ -12934,6 +13025,41 @@ } } }, + "/hosts/monitor/gpu/search": { + "post": { + "parameters": [ + { + "description": "request", + "in": "body", + "name": "request", + "required": true, + "schema": { + "$ref": "#/definitions/dto.MonitorGPUSearch" + } + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/dto.MonitorGPUData" + } + } + }, + "security": [ + { + "ApiKeyAuth": [] + }, + { + "Timestamp": [] + } + ], + "summary": "Load monitor data", + "tags": [ + "Monitor" + ] + } + }, "/hosts/monitor/search": { "post": { "parameters": [ @@ -15500,6 +15626,41 @@ ] } }, + "/settings/description/save": { + "post": { + "consumes": [ + "application/json" + ], + "parameters": [ + { + "description": "request", + "in": "body", + "name": "request", + "required": true, + "schema": { + "$ref": "#/definitions/dto.CommonDescription" + } + } + ], + "responses": { + "200": { + "description": "OK" + } + }, + "security": [ + { + "ApiKeyAuth": [] + }, + { + "Timestamp": [] + } + ], + "summary": "Save common description", + "tags": [ + "System Setting" + ] + } + }, "/settings/get/{key}": { "get": { "parameters": [ @@ -16023,7 +16184,7 @@ "200": { "description": "OK", "schema": { - "type": "bool" + "type": "boolean" } } }, @@ -17002,7 +17163,10 @@ "200": { "description": "OK", "schema": { - "type": "Array" + "items": { + "type": "string" + }, + "type": "array" } } }, @@ -17087,7 +17251,11 @@ } } ], - "responses": {}, + "responses": { + "200": { + "description": "OK" + } + }, "security": [ { "ApiKeyAuth": [] @@ -17123,11 +17291,15 @@ "name": "request", "required": true, "schema": { - "$ref": "#/definitions/dto.Operate" + "$ref": "#/definitions/dto.Fail2BanSet" } } ], - "responses": {}, + "responses": { + "200": { + "description": "OK" + } + }, "security": [ { "ApiKeyAuth": [] @@ -17162,7 +17334,10 @@ "200": { "description": "OK", "schema": { - "type": "Array" + "items": { + "type": "string" + }, + "type": "array" } } }, @@ -17436,7 +17611,11 @@ } } ], - "responses": {}, + "responses": { + "200": { + "description": "OK" + } + }, "security": [ { "ApiKeyAuth": [] @@ -21513,6 +21692,44 @@ }, "type": "object" }, + "dto.AppLauncher": { + "properties": { + "description": { + "type": "string" + }, + "detail": { + "items": { + "$ref": "#/definitions/dto.InstallDetail" + }, + "type": "array" + }, + "icon": { + "type": "string" + }, + "isInstall": { + "type": "boolean" + }, + "isRecommend": { + "type": "boolean" + }, + "key": { + "type": "string" + }, + "limit": { + "type": "integer" + }, + "name": { + "type": "string" + }, + "recommend": { + "type": "integer" + }, + "type": { + "type": "string" + } + }, + "type": "object" + }, "dto.AppList": { "properties": { "additionalProperties": { @@ -22270,6 +22487,23 @@ ], "type": "object" }, + "dto.CommandTree": { + "properties": { + "children": { + "items": { + "$ref": "#/definitions/dto.CommandTree" + }, + "type": "array" + }, + "label": { + "type": "string" + }, + "value": { + "type": "string" + } + }, + "type": "object" + }, "dto.CommonBackup": { "properties": { "description": { @@ -22310,6 +22544,30 @@ ], "type": "object" }, + "dto.CommonDescription": { + "properties": { + "description": { + "type": "string" + }, + "detailType": { + "type": "string" + }, + "id": { + "type": "string" + }, + "isPinned": { + "type": "boolean" + }, + "type": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ], + "type": "object" + }, "dto.CommonRecover": { "properties": { "backupRecordID": { @@ -22553,6 +22811,41 @@ }, "type": "object" }, + "dto.ContainerItemStats": { + "properties": { + "buildCacheReclaimable": { + "type": "integer" + }, + "buildCacheUsage": { + "type": "integer" + }, + "containerReclaimable": { + "type": "integer" + }, + "containerUsage": { + "type": "integer" + }, + "imageReclaimable": { + "type": "integer" + }, + "imageUsage": { + "type": "integer" + }, + "sizeRootFs": { + "type": "integer" + }, + "sizeRw": { + "type": "integer" + }, + "volumeReclaimable": { + "type": "integer" + }, + "volumeUsage": { + "type": "integer" + } + }, + "type": "object" + }, "dto.ContainerListStats": { "properties": { "containerID": { @@ -22585,6 +22878,23 @@ }, "type": "object" }, + "dto.ContainerNetwork": { + "properties": { + "ipv4": { + "type": "string" + }, + "ipv6": { + "type": "string" + }, + "macAddr": { + "type": "string" + }, + "network": { + "type": "string" + } + }, + "type": "object" + }, "dto.ContainerOperate": { "properties": { "autoRemove": { @@ -22635,21 +22945,12 @@ "image": { "type": "string" }, - "ipv4": { - "type": "string" - }, - "ipv6": { - "type": "string" - }, "labels": { "items": { "type": "string" }, "type": "array" }, - "macAddr": { - "type": "string" - }, "memory": { "type": "number" }, @@ -22659,8 +22960,11 @@ "nanoCPUs": { "type": "number" }, - "network": { - "type": "string" + "networks": { + "items": { + "$ref": "#/definitions/dto.ContainerNetwork" + }, + "type": "array" }, "openStdin": { "type": "boolean" @@ -22811,12 +23115,6 @@ }, "dto.ContainerStatus": { "properties": { - "buildCacheReclaimable": { - "type": "integer" - }, - "buildCacheUsage": { - "type": "integer" - }, "composeCount": { "type": "integer" }, @@ -22826,12 +23124,6 @@ "containerCount": { "type": "integer" }, - "containerReclaimable": { - "type": "integer" - }, - "containerUsage": { - "type": "integer" - }, "created": { "type": "integer" }, @@ -22844,12 +23136,6 @@ "imageCount": { "type": "integer" }, - "imageReclaimable": { - "type": "integer" - }, - "imageUsage": { - "type": "integer" - }, "networkCount": { "type": "integer" }, @@ -22870,12 +23156,6 @@ }, "volumeCount": { "type": "integer" - }, - "volumeReclaimable": { - "type": "integer" - }, - "volumeUsage": { - "type": "integer" } }, "type": "object" @@ -23557,6 +23837,9 @@ ], "type": "string" }, + "initialDB": { + "type": "string" + }, "name": { "maxLength": 256, "type": "string" @@ -23989,6 +24272,27 @@ ], "type": "object" }, + "dto.Fail2BanSet": { + "properties": { + "ips": { + "items": { + "type": "string" + }, + "type": "array" + }, + "operate": { + "enum": [ + "banned", + "ignore" + ], + "type": "string" + } + }, + "required": [ + "operate" + ], + "type": "object" + }, "dto.Fail2BanUpdate": { "properties": { "key": { @@ -24266,6 +24570,57 @@ }, "type": "object" }, + "dto.GPUMemoryUsageHelper": { + "properties": { + "gpuProcesses": { + "items": { + "$ref": "#/definitions/dto.GPUProcess" + }, + "type": "array" + }, + "percent": { + "type": "number" + }, + "total": { + "type": "number" + }, + "used": { + "type": "number" + } + }, + "type": "object" + }, + "dto.GPUPowerUsageHelper": { + "properties": { + "percent": { + "type": "number" + }, + "total": { + "type": "number" + }, + "used": { + "type": "number" + } + }, + "type": "object" + }, + "dto.GPUProcess": { + "properties": { + "pid": { + "type": "string" + }, + "processName": { + "type": "string" + }, + "type": { + "type": "string" + }, + "usedMemory": { + "type": "string" + } + }, + "type": "object" + }, "dto.GroupCreate": { "properties": { "id": { @@ -24481,6 +24836,12 @@ }, "dto.ImageBuild": { "properties": { + "args": { + "items": { + "type": "string" + }, + "type": "array" + }, "dockerfile": { "type": "string" }, @@ -24512,9 +24873,15 @@ "createdAt": { "type": "string" }, + "description": { + "type": "string" + }, "id": { "type": "string" }, + "isPinned": { + "type": "boolean" + }, "isUsed": { "type": "boolean" }, @@ -24692,6 +25059,38 @@ ], "type": "object" }, + "dto.InstallDetail": { + "properties": { + "detailID": { + "type": "integer" + }, + "httpPort": { + "type": "integer" + }, + "httpsPort": { + "type": "integer" + }, + "installID": { + "type": "integer" + }, + "name": { + "type": "string" + }, + "path": { + "type": "string" + }, + "status": { + "type": "string" + }, + "version": { + "type": "string" + }, + "webUI": { + "type": "string" + } + }, + "type": "object" + }, "dto.IptablesBatchOperate": { "properties": { "rules": { @@ -24736,6 +25135,8 @@ "properties": { "chain": { "enum": [ + "1PANEL_BASIC", + "1PANEL_BASIC_BEFORE", "1PANEL_INPUT", "1PANEL_OUTPUT" ], @@ -24771,9 +25172,9 @@ }, "strategy": { "enum": [ - "ACCEPT", - "DROP", - "REJECT" + "accept", + "drop", + "reject" ], "type": "string" } @@ -24785,6 +25186,17 @@ ], "type": "object" }, + "dto.LauncherOption": { + "properties": { + "isShow": { + "type": "boolean" + }, + "key": { + "type": "string" + } + }, + "type": "object" + }, "dto.LoadRedisStatus": { "properties": { "name": { @@ -24854,9 +25266,6 @@ "captchaID": { "type": "string" }, - "ignoreCaptcha": { - "type": "boolean" - }, "language": { "enum": [ "zh", @@ -24933,13 +25342,6 @@ "type": "array" }, "param": { - "enum": [ - "cpu", - "memory", - "load", - "io", - "network" - ], "type": "string" }, "value": { @@ -24947,9 +25349,61 @@ "type": "array" } }, - "required": [ - "param" - ], + "type": "object" + }, + "dto.MonitorGPUData": { + "properties": { + "date": { + "items": { + "type": "string" + }, + "type": "array" + }, + "gpuValue": { + "items": { + "type": "number" + }, + "type": "array" + }, + "memoryValue": { + "items": { + "$ref": "#/definitions/dto.GPUMemoryUsageHelper" + }, + "type": "array" + }, + "powerValue": { + "items": { + "$ref": "#/definitions/dto.GPUPowerUsageHelper" + }, + "type": "array" + }, + "speedValue": { + "items": { + "type": "integer" + }, + "type": "array" + }, + "temperatureValue": { + "items": { + "type": "number" + }, + "type": "array" + } + }, + "type": "object" + }, + "dto.MonitorGPUSearch": { + "properties": { + "endTime": { + "type": "string" + }, + "productName": { + "type": "string" + }, + "startTime": { + "type": "string" + } + }, "type": "object" }, "dto.MonitorSearch": { @@ -25026,6 +25480,9 @@ }, "dto.MysqlDBCreate": { "properties": { + "collation": { + "type": "string" + }, "database": { "type": "string" }, @@ -25033,12 +25490,6 @@ "type": "string" }, "format": { - "enum": [ - "utf8mb4", - "utf8", - "gbk", - "big5" - ], "type": "string" }, "from": { @@ -25165,6 +25616,20 @@ ], "type": "object" }, + "dto.MysqlFormatCollationOption": { + "properties": { + "collations": { + "items": { + "type": "string" + }, + "type": "array" + }, + "format": { + "type": "string" + } + }, + "type": "object" + }, "dto.MysqlLoadDB": { "properties": { "database": { @@ -25193,26 +25658,6 @@ ], "type": "object" }, - "dto.MysqlOption": { - "properties": { - "database": { - "type": "string" - }, - "from": { - "type": "string" - }, - "id": { - "type": "integer" - }, - "name": { - "type": "string" - }, - "type": { - "type": "string" - } - }, - "type": "object" - }, "dto.MysqlStatus": { "properties": { "Aborted_clients": { @@ -26033,6 +26478,9 @@ "address": { "type": "string" }, + "chain": { + "type": "string" + }, "description": { "type": "string" }, @@ -27579,18 +28027,27 @@ }, "dto.UpdateFirewallDescription": { "properties": { - "address": { + "chain": { "type": "string" }, "description": { "type": "string" }, - "port": { + "dstIP": { + "type": "string" + }, + "dstPort": { "type": "string" }, "protocol": { "type": "string" }, + "srcIP": { + "type": "string" + }, + "srcPort": { + "type": "string" + }, "strategy": { "enum": [ "accept", @@ -32251,15 +32708,9 @@ "description": { "type": "string" }, - "github": { - "type": "string" - }, "gpuSupport": { "type": "boolean" }, - "icon": { - "type": "string" - }, "id": { "type": "integer" }, @@ -32278,29 +32729,14 @@ "recommend": { "type": "integer" }, - "resource": { - "type": "string" - }, "status": { "type": "string" }, "tags": { - "items": { - "$ref": "#/definitions/response.TagDTO" - }, - "type": "array" - }, - "type": { - "type": "string" - }, - "versions": { "items": { "type": "string" }, "type": "array" - }, - "website": { - "type": "string" } }, "type": "object" @@ -32399,8 +32835,11 @@ }, "type": "array" }, - "systemDisk": { - "$ref": "#/definitions/response.DiskInfo" + "systemDisks": { + "items": { + "$ref": "#/definitions/response.DiskInfo" + }, + "type": "array" }, "totalCapacity": { "type": "integer"