diff --git a/agent/app/api/v2/container.go b/agent/app/api/v2/container.go index 37477c9b6cb0..2257706e0b47 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 9cdc21a8ae3b..f78b7e212a46 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 6469adf9e0c7..2af4e043be0d 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 d2e0b8c0ab0d..775ac1e4ee9e 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 6f8197ff0554..f5c85fd2b353 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 55e09a60a77c..30b6fd8e2db9 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 c95f2ae2046f..a8e83cf80f12 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 a0b03ba21af2..6543fc00a157 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 c2a6d06320e0..d869d73dbe8a 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 544ac0226acb..f113ab5f924b 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 ed9b5dadde3a..df13922a275d 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 4e223772cf29..86b099fc8010 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": "file" + } + } + }, + "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,7 +9613,7 @@ const docTemplate = `{ } } }, - "/databases/load": { + "/databases/format/options": { "post": { "consumes": [ "application/json" @@ -9542,11 +9625,21 @@ const docTemplate = `{ "name": "request", "required": true, "schema": { - "$ref": "#/definitions/dto.MysqlLoadDB" + "$ref": "#/definitions/dto.OperationWithName" } } ], - "responses": {}, + "responses": { + "200": { + "description": "OK", + "schema": { + "items": { + "$ref": "#/definitions/dto.MysqlFormatCollationOption" + }, + "type": "array" + } + } + }, "security": [ { "ApiKeyAuth": [] @@ -9555,14 +9648,14 @@ const docTemplate = `{ "Timestamp": [] } ], - "summary": "Load mysql database from remote", + "summary": "List mysql database format collation options", "tags": [ "Database Mysql" ] } }, - "/databases/options": { - "get": { + "/databases/load": { + "post": { "consumes": [ "application/json" ], @@ -9573,19 +9666,13 @@ const docTemplate = `{ "name": "request", "required": true, "schema": { - "$ref": "#/definitions/dto.PageInfo" + "$ref": "#/definitions/dto.MysqlLoadDB" } } ], "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" @@ -23320,6 +23600,9 @@ const docTemplate = `{ "cpuLogicalCores": { "type": "integer" }, + "cpuMhz": { + "type": "number" + }, "cpuModelName": { "type": "string" }, @@ -23356,6 +23639,9 @@ const docTemplate = `{ "platformVersion": { "type": "string" }, + "prettyDistro": { + "type": "string" + }, "quickJump": { "items": { "$ref": "#/definitions/dto.QuickJump" @@ -23376,6 +23662,12 @@ const docTemplate = `{ }, "dto.DashboardCurrent": { "properties": { + "cpuDetailedPercent": { + "items": { + "type": "number" + }, + "type": "array" + }, "cpuPercent": { "items": { "type": "number" @@ -23561,6 +23853,9 @@ const docTemplate = `{ ], "type": "string" }, + "initialDB": { + "type": "string" + }, "name": { "maxLength": 256, "type": "string" @@ -23642,6 +23937,9 @@ const docTemplate = `{ "id": { "type": "integer" }, + "initialDB": { + "type": "string" + }, "name": { "maxLength": 256, "type": "string" @@ -23771,6 +24069,9 @@ const docTemplate = `{ "id": { "type": "integer" }, + "initialDB": { + "type": "string" + }, "password": { "type": "string" }, @@ -23993,6 +24294,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 +24592,23 @@ const docTemplate = `{ }, "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 +24824,12 @@ const docTemplate = `{ }, "dto.ImageBuild": { "properties": { + "args": { + "items": { + "type": "string" + }, + "type": "array" + }, "dockerfile": { "type": "string" }, @@ -24516,9 +24861,15 @@ const docTemplate = `{ "createdAt": { "type": "string" }, + "description": { + "type": "string" + }, "id": { "type": "string" }, + "isPinned": { + "type": "boolean" + }, "isUsed": { "type": "boolean" }, @@ -24696,6 +25047,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 +25123,8 @@ const docTemplate = `{ "properties": { "chain": { "enum": [ + "1PANEL_BASIC", + "1PANEL_BASIC_BEFORE", "1PANEL_INPUT", "1PANEL_OUTPUT" ], @@ -24775,9 +25160,9 @@ const docTemplate = `{ }, "strategy": { "enum": [ - "ACCEPT", - "DROP", - "REJECT" + "accept", + "drop", + "reject" ], "type": "string" } @@ -24789,6 +25174,17 @@ const docTemplate = `{ ], "type": "object" }, + "dto.LauncherOption": { + "properties": { + "isShow": { + "type": "boolean" + }, + "key": { + "type": "string" + } + }, + "type": "object" + }, "dto.LoadRedisStatus": { "properties": { "name": { @@ -24858,9 +25254,6 @@ const docTemplate = `{ "captchaID": { "type": "string" }, - "ignoreCaptcha": { - "type": "boolean" - }, "language": { "enum": [ "zh", @@ -24937,13 +25330,6 @@ const docTemplate = `{ "type": "array" }, "param": { - "enum": [ - "cpu", - "memory", - "load", - "io", - "network" - ], "type": "string" }, "value": { @@ -24951,9 +25337,94 @@ const docTemplate = `{ "type": "array" } }, - "required": [ - "param" - ], + "type": "object" + }, + "dto.MonitorGPUData": { + "properties": { + "date": { + "items": { + "type": "string" + }, + "type": "array" + }, + "gpuProcesses": { + "items": { + "items": { + "$ref": "#/definitions/dto.GPUProcess" + }, + "type": "array" + }, + "type": "array" + }, + "gpuValue": { + "items": { + "type": "number" + }, + "type": "array" + }, + "memoryPercent": { + "items": { + "type": "number" + }, + "type": "array" + }, + "memoryTotal": { + "items": { + "type": "number" + }, + "type": "array" + }, + "memoryUsed": { + "items": { + "type": "number" + }, + "type": "array" + }, + "powerPercent": { + "items": { + "type": "number" + }, + "type": "array" + }, + "powerTotal": { + "items": { + "type": "number" + }, + "type": "array" + }, + "powerUsed": { + "items": { + "type": "number" + }, + "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 +25501,9 @@ const docTemplate = `{ }, "dto.MysqlDBCreate": { "properties": { + "collation": { + "type": "string" + }, "database": { "type": "string" }, @@ -25037,12 +25511,6 @@ const docTemplate = `{ "type": "string" }, "format": { - "enum": [ - "utf8mb4", - "utf8", - "gbk", - "big5" - ], "type": "string" }, "from": { @@ -25169,6 +25637,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 +25679,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": { @@ -25562,6 +26024,12 @@ const docTemplate = `{ }, "dto.NodeCurrent": { "properties": { + "cpuDetailedPercent": { + "items": { + "type": "number" + }, + "type": "array" + }, "cpuTotal": { "type": "integer" }, @@ -25802,6 +26270,9 @@ const docTemplate = `{ }, "platformFamily": { "type": "string" + }, + "prettyDistro": { + "type": "string" } }, "type": "object" @@ -26037,6 +26508,9 @@ const docTemplate = `{ "address": { "type": "string" }, + "chain": { + "type": "string" + }, "description": { "type": "string" }, @@ -27583,18 +28057,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 +32738,9 @@ const docTemplate = `{ "description": { "type": "string" }, - "github": { - "type": "string" - }, "gpuSupport": { "type": "boolean" }, - "icon": { - "type": "string" - }, "id": { "type": "integer" }, @@ -32282,29 +32759,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 +32865,11 @@ const docTemplate = `{ }, "type": "array" }, - "systemDisk": { - "$ref": "#/definitions/response.DiskInfo" + "systemDisks": { + "items": { + "$ref": "#/definitions/response.DiskInfo" + }, + "type": "array" }, "totalCapacity": { "type": "integer" @@ -33945,4 +34410,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 054f4b6170e8..5807801096ed 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": "file" + } + } + }, + "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,7 +9609,7 @@ } } }, - "/databases/load": { + "/databases/format/options": { "post": { "consumes": [ "application/json" @@ -9538,11 +9621,21 @@ "name": "request", "required": true, "schema": { - "$ref": "#/definitions/dto.MysqlLoadDB" + "$ref": "#/definitions/dto.OperationWithName" } } ], - "responses": {}, + "responses": { + "200": { + "description": "OK", + "schema": { + "items": { + "$ref": "#/definitions/dto.MysqlFormatCollationOption" + }, + "type": "array" + } + } + }, "security": [ { "ApiKeyAuth": [] @@ -9551,14 +9644,14 @@ "Timestamp": [] } ], - "summary": "Load mysql database from remote", + "summary": "List mysql database format collation options", "tags": [ "Database Mysql" ] } }, - "/databases/options": { - "get": { + "/databases/load": { + "post": { "consumes": [ "application/json" ], @@ -9569,19 +9662,13 @@ "name": "request", "required": true, "schema": { - "$ref": "#/definitions/dto.PageInfo" + "$ref": "#/definitions/dto.MysqlLoadDB" } } ], "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,15 +15626,50 @@ ] } }, - "/settings/get/{key}": { - "get": { + "/settings/description/save": { + "post": { + "consumes": [ + "application/json" + ], "parameters": [ { - "description": "key", - "in": "path", - "name": "key", - "required": true, - "type": "string" + "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": [ + { + "description": "key", + "in": "path", + "name": "key", + "required": true, + "type": "string" } ], "responses": { @@ -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" @@ -23316,6 +23596,9 @@ "cpuLogicalCores": { "type": "integer" }, + "cpuMhz": { + "type": "number" + }, "cpuModelName": { "type": "string" }, @@ -23352,6 +23635,9 @@ "platformVersion": { "type": "string" }, + "prettyDistro": { + "type": "string" + }, "quickJump": { "items": { "$ref": "#/definitions/dto.QuickJump" @@ -23372,6 +23658,12 @@ }, "dto.DashboardCurrent": { "properties": { + "cpuDetailedPercent": { + "items": { + "type": "number" + }, + "type": "array" + }, "cpuPercent": { "items": { "type": "number" @@ -23557,6 +23849,9 @@ ], "type": "string" }, + "initialDB": { + "type": "string" + }, "name": { "maxLength": 256, "type": "string" @@ -23638,6 +23933,9 @@ "id": { "type": "integer" }, + "initialDB": { + "type": "string" + }, "name": { "maxLength": 256, "type": "string" @@ -23767,6 +24065,9 @@ "id": { "type": "integer" }, + "initialDB": { + "type": "string" + }, "password": { "type": "string" }, @@ -23989,6 +24290,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 +24588,23 @@ }, "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 +24820,12 @@ }, "dto.ImageBuild": { "properties": { + "args": { + "items": { + "type": "string" + }, + "type": "array" + }, "dockerfile": { "type": "string" }, @@ -24512,9 +24857,15 @@ "createdAt": { "type": "string" }, + "description": { + "type": "string" + }, "id": { "type": "string" }, + "isPinned": { + "type": "boolean" + }, "isUsed": { "type": "boolean" }, @@ -24692,6 +25043,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 +25119,8 @@ "properties": { "chain": { "enum": [ + "1PANEL_BASIC", + "1PANEL_BASIC_BEFORE", "1PANEL_INPUT", "1PANEL_OUTPUT" ], @@ -24771,9 +25156,9 @@ }, "strategy": { "enum": [ - "ACCEPT", - "DROP", - "REJECT" + "accept", + "drop", + "reject" ], "type": "string" } @@ -24785,6 +25170,17 @@ ], "type": "object" }, + "dto.LauncherOption": { + "properties": { + "isShow": { + "type": "boolean" + }, + "key": { + "type": "string" + } + }, + "type": "object" + }, "dto.LoadRedisStatus": { "properties": { "name": { @@ -24854,9 +25250,6 @@ "captchaID": { "type": "string" }, - "ignoreCaptcha": { - "type": "boolean" - }, "language": { "enum": [ "zh", @@ -24933,13 +25326,6 @@ "type": "array" }, "param": { - "enum": [ - "cpu", - "memory", - "load", - "io", - "network" - ], "type": "string" }, "value": { @@ -24947,9 +25333,94 @@ "type": "array" } }, - "required": [ - "param" - ], + "type": "object" + }, + "dto.MonitorGPUData": { + "properties": { + "date": { + "items": { + "type": "string" + }, + "type": "array" + }, + "gpuProcesses": { + "items": { + "items": { + "$ref": "#/definitions/dto.GPUProcess" + }, + "type": "array" + }, + "type": "array" + }, + "gpuValue": { + "items": { + "type": "number" + }, + "type": "array" + }, + "memoryPercent": { + "items": { + "type": "number" + }, + "type": "array" + }, + "memoryTotal": { + "items": { + "type": "number" + }, + "type": "array" + }, + "memoryUsed": { + "items": { + "type": "number" + }, + "type": "array" + }, + "powerPercent": { + "items": { + "type": "number" + }, + "type": "array" + }, + "powerTotal": { + "items": { + "type": "number" + }, + "type": "array" + }, + "powerUsed": { + "items": { + "type": "number" + }, + "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 +25497,9 @@ }, "dto.MysqlDBCreate": { "properties": { + "collation": { + "type": "string" + }, "database": { "type": "string" }, @@ -25033,12 +25507,6 @@ "type": "string" }, "format": { - "enum": [ - "utf8mb4", - "utf8", - "gbk", - "big5" - ], "type": "string" }, "from": { @@ -25165,6 +25633,20 @@ ], "type": "object" }, + "dto.MysqlFormatCollationOption": { + "properties": { + "collations": { + "items": { + "type": "string" + }, + "type": "array" + }, + "format": { + "type": "string" + } + }, + "type": "object" + }, "dto.MysqlLoadDB": { "properties": { "database": { @@ -25193,26 +25675,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": { @@ -25558,6 +26020,12 @@ }, "dto.NodeCurrent": { "properties": { + "cpuDetailedPercent": { + "items": { + "type": "number" + }, + "type": "array" + }, "cpuTotal": { "type": "integer" }, @@ -25798,6 +26266,9 @@ }, "platformFamily": { "type": "string" + }, + "prettyDistro": { + "type": "string" } }, "type": "object" @@ -26033,6 +26504,9 @@ "address": { "type": "string" }, + "chain": { + "type": "string" + }, "description": { "type": "string" }, @@ -27579,18 +28053,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 +32734,9 @@ "description": { "type": "string" }, - "github": { - "type": "string" - }, "gpuSupport": { "type": "boolean" }, - "icon": { - "type": "string" - }, "id": { "type": "integer" }, @@ -32278,29 +32755,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 +32861,11 @@ }, "type": "array" }, - "systemDisk": { - "$ref": "#/definitions/response.DiskInfo" + "systemDisks": { + "items": { + "$ref": "#/definitions/response.DiskInfo" + }, + "type": "array" }, "totalCapacity": { "type": "integer"