mirror of
https://github.com/1Panel-dev/1Panel.git
synced 2025-12-17 12:58:51 +08:00
ref: Adjust Swagger format
This commit is contained in:
parent
05addd4cde
commit
44b92a509d
3 changed files with 131 additions and 79 deletions
|
|
@ -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 {string} file "app icon"
|
||||
// @Success 200 {file} file "app icon"
|
||||
// @Security ApiKeyAuth
|
||||
// @Security Timestamp
|
||||
// @Router /apps/icon/:appId [get]
|
||||
|
|
|
|||
|
|
@ -849,7 +849,7 @@ const docTemplate = `{
|
|||
"200": {
|
||||
"description": "app icon",
|
||||
"schema": {
|
||||
"type": "string"
|
||||
"type": "file"
|
||||
}
|
||||
}
|
||||
},
|
||||
|
|
@ -23600,6 +23600,9 @@ const docTemplate = `{
|
|||
"cpuLogicalCores": {
|
||||
"type": "integer"
|
||||
},
|
||||
"cpuMhz": {
|
||||
"type": "number"
|
||||
},
|
||||
"cpuModelName": {
|
||||
"type": "string"
|
||||
},
|
||||
|
|
@ -23636,6 +23639,9 @@ const docTemplate = `{
|
|||
"platformVersion": {
|
||||
"type": "string"
|
||||
},
|
||||
"prettyDistro": {
|
||||
"type": "string"
|
||||
},
|
||||
"quickJump": {
|
||||
"items": {
|
||||
"$ref": "#/definitions/dto.QuickJump"
|
||||
|
|
@ -23656,6 +23662,12 @@ const docTemplate = `{
|
|||
},
|
||||
"dto.DashboardCurrent": {
|
||||
"properties": {
|
||||
"cpuDetailedPercent": {
|
||||
"items": {
|
||||
"type": "number"
|
||||
},
|
||||
"type": "array"
|
||||
},
|
||||
"cpuPercent": {
|
||||
"items": {
|
||||
"type": "number"
|
||||
|
|
@ -23925,6 +23937,9 @@ const docTemplate = `{
|
|||
"id": {
|
||||
"type": "integer"
|
||||
},
|
||||
"initialDB": {
|
||||
"type": "string"
|
||||
},
|
||||
"name": {
|
||||
"maxLength": 256,
|
||||
"type": "string"
|
||||
|
|
@ -24054,6 +24069,9 @@ const docTemplate = `{
|
|||
"id": {
|
||||
"type": "integer"
|
||||
},
|
||||
"initialDB": {
|
||||
"type": "string"
|
||||
},
|
||||
"password": {
|
||||
"type": "string"
|
||||
},
|
||||
|
|
@ -24574,40 +24592,6 @@ 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": {
|
||||
|
|
@ -25363,21 +25347,54 @@ const docTemplate = `{
|
|||
},
|
||||
"type": "array"
|
||||
},
|
||||
"gpuProcesses": {
|
||||
"items": {
|
||||
"items": {
|
||||
"$ref": "#/definitions/dto.GPUProcess"
|
||||
},
|
||||
"type": "array"
|
||||
},
|
||||
"type": "array"
|
||||
},
|
||||
"gpuValue": {
|
||||
"items": {
|
||||
"type": "number"
|
||||
},
|
||||
"type": "array"
|
||||
},
|
||||
"memoryValue": {
|
||||
"memoryPercent": {
|
||||
"items": {
|
||||
"$ref": "#/definitions/dto.GPUMemoryUsageHelper"
|
||||
"type": "number"
|
||||
},
|
||||
"type": "array"
|
||||
},
|
||||
"powerValue": {
|
||||
"memoryTotal": {
|
||||
"items": {
|
||||
"$ref": "#/definitions/dto.GPUPowerUsageHelper"
|
||||
"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"
|
||||
},
|
||||
|
|
@ -26007,6 +26024,12 @@ const docTemplate = `{
|
|||
},
|
||||
"dto.NodeCurrent": {
|
||||
"properties": {
|
||||
"cpuDetailedPercent": {
|
||||
"items": {
|
||||
"type": "number"
|
||||
},
|
||||
"type": "array"
|
||||
},
|
||||
"cpuTotal": {
|
||||
"type": "integer"
|
||||
},
|
||||
|
|
@ -26247,6 +26270,9 @@ const docTemplate = `{
|
|||
},
|
||||
"platformFamily": {
|
||||
"type": "string"
|
||||
},
|
||||
"prettyDistro": {
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"type": "object"
|
||||
|
|
|
|||
|
|
@ -845,7 +845,7 @@
|
|||
"200": {
|
||||
"description": "app icon",
|
||||
"schema": {
|
||||
"type": "string"
|
||||
"type": "file"
|
||||
}
|
||||
}
|
||||
},
|
||||
|
|
@ -23596,6 +23596,9 @@
|
|||
"cpuLogicalCores": {
|
||||
"type": "integer"
|
||||
},
|
||||
"cpuMhz": {
|
||||
"type": "number"
|
||||
},
|
||||
"cpuModelName": {
|
||||
"type": "string"
|
||||
},
|
||||
|
|
@ -23632,6 +23635,9 @@
|
|||
"platformVersion": {
|
||||
"type": "string"
|
||||
},
|
||||
"prettyDistro": {
|
||||
"type": "string"
|
||||
},
|
||||
"quickJump": {
|
||||
"items": {
|
||||
"$ref": "#/definitions/dto.QuickJump"
|
||||
|
|
@ -23652,6 +23658,12 @@
|
|||
},
|
||||
"dto.DashboardCurrent": {
|
||||
"properties": {
|
||||
"cpuDetailedPercent": {
|
||||
"items": {
|
||||
"type": "number"
|
||||
},
|
||||
"type": "array"
|
||||
},
|
||||
"cpuPercent": {
|
||||
"items": {
|
||||
"type": "number"
|
||||
|
|
@ -23921,6 +23933,9 @@
|
|||
"id": {
|
||||
"type": "integer"
|
||||
},
|
||||
"initialDB": {
|
||||
"type": "string"
|
||||
},
|
||||
"name": {
|
||||
"maxLength": 256,
|
||||
"type": "string"
|
||||
|
|
@ -24050,6 +24065,9 @@
|
|||
"id": {
|
||||
"type": "integer"
|
||||
},
|
||||
"initialDB": {
|
||||
"type": "string"
|
||||
},
|
||||
"password": {
|
||||
"type": "string"
|
||||
},
|
||||
|
|
@ -24570,40 +24588,6 @@
|
|||
},
|
||||
"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": {
|
||||
|
|
@ -25359,21 +25343,54 @@
|
|||
},
|
||||
"type": "array"
|
||||
},
|
||||
"gpuProcesses": {
|
||||
"items": {
|
||||
"items": {
|
||||
"$ref": "#/definitions/dto.GPUProcess"
|
||||
},
|
||||
"type": "array"
|
||||
},
|
||||
"type": "array"
|
||||
},
|
||||
"gpuValue": {
|
||||
"items": {
|
||||
"type": "number"
|
||||
},
|
||||
"type": "array"
|
||||
},
|
||||
"memoryValue": {
|
||||
"memoryPercent": {
|
||||
"items": {
|
||||
"$ref": "#/definitions/dto.GPUMemoryUsageHelper"
|
||||
"type": "number"
|
||||
},
|
||||
"type": "array"
|
||||
},
|
||||
"powerValue": {
|
||||
"memoryTotal": {
|
||||
"items": {
|
||||
"$ref": "#/definitions/dto.GPUPowerUsageHelper"
|
||||
"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"
|
||||
},
|
||||
|
|
@ -26003,6 +26020,12 @@
|
|||
},
|
||||
"dto.NodeCurrent": {
|
||||
"properties": {
|
||||
"cpuDetailedPercent": {
|
||||
"items": {
|
||||
"type": "number"
|
||||
},
|
||||
"type": "array"
|
||||
},
|
||||
"cpuTotal": {
|
||||
"type": "integer"
|
||||
},
|
||||
|
|
@ -26243,6 +26266,9 @@
|
|||
},
|
||||
"platformFamily": {
|
||||
"type": "string"
|
||||
},
|
||||
"prettyDistro": {
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"type": "object"
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue