fix: 解决操作日志打印错误的问题 (#6899)

This commit is contained in:
ssongliu 2024-10-30 17:02:19 +08:00 committed by ssongliu
parent c2bb422b66
commit 3d6a97e5a6
5 changed files with 515 additions and 56 deletions

View File

@ -2,6 +2,7 @@ package v1
import ( import (
"errors" "errors"
"github.com/1Panel-dev/1Panel/backend/app/dto" "github.com/1Panel-dev/1Panel/backend/app/dto"
"github.com/1Panel-dev/1Panel/backend/app/api/v1/helper" "github.com/1Panel-dev/1Panel/backend/app/api/v1/helper"
@ -56,7 +57,7 @@ func (b *BaseApi) LoadDashboardBaseInfo(c *gin.Context) {
// @Tags Dashboard // @Tags Dashboard
// @Summary Load dashboard current info // @Summary Load dashboard current info
// @Description 获取首页实时数据 // @Description 获取首页实时数据
// @Accept json // @Accept json
// @Param request body dto.DashboardReq true "request" // @Param request body dto.DashboardReq true "request"
// @Success 200 {object} dto.DashboardCurrent // @Success 200 {object} dto.DashboardCurrent
// @Security ApiKeyAuth // @Security ApiKeyAuth

View File

@ -62,7 +62,7 @@ func (b *BaseApi) CreateRuntime(c *gin.Context) {
// @Success 200 // @Success 200
// @Security ApiKeyAuth // @Security ApiKeyAuth
// @Router /runtimes/del [post] // @Router /runtimes/del [post]
// @x-panel-log {"bodyKeys":["id"],"paramKeys":[],"BeforeFunctions":[],"formatZH":"删除网站 [name]","formatEN":"Delete website [name]"} // @x-panel-log {"bodyKeys":["id"],"paramKeys":[],"BeforeFunctions":[],"formatZH":"删除运行环境 [name]","formatEN":"Delete runtime [name]"}
func (b *BaseApi) DeleteRuntime(c *gin.Context) { func (b *BaseApi) DeleteRuntime(c *gin.Context) {
var req request.RuntimeDelete var req request.RuntimeDelete
if err := helper.CheckBindAndValidate(&req, c); err != nil { if err := helper.CheckBindAndValidate(&req, c); err != nil {

View File

@ -3872,8 +3872,8 @@ const docTemplate = `{
} }
} }
}, },
"/dashboard/current/:ioOption/:netOption": { "/dashboard/current": {
"get": { "post": {
"security": [ "security": [
{ {
"ApiKeyAuth": [] "ApiKeyAuth": []
@ -3889,18 +3889,13 @@ const docTemplate = `{
"summary": "Load dashboard current info", "summary": "Load dashboard current info",
"parameters": [ "parameters": [
{ {
"type": "string",
"description": "request", "description": "request",
"name": "ioOption", "name": "request",
"in": "path", "in": "body",
"required": true "required": true,
}, "schema": {
{ "$ref": "#/definitions/dto.DashboardReq"
"type": "string", }
"description": "request",
"name": "netOption",
"in": "path",
"required": true
} }
], ],
"responses": { "responses": {
@ -9130,8 +9125,8 @@ const docTemplate = `{
"bodyKeys": [ "bodyKeys": [
"id" "id"
], ],
"formatEN": "Delete website [name]", "formatEN": "Delete runtime [name]",
"formatZH": "删除网站 [name]", "formatZH": "删除运行环境 [name]",
"paramKeys": [] "paramKeys": []
} }
} }
@ -10808,7 +10803,7 @@ const docTemplate = `{
"in": "body", "in": "body",
"required": true, "required": true,
"schema": { "schema": {
"$ref": "#/definitions/dto.SearchWithPage" "$ref": "#/definitions/dto.PageSnapshot"
} }
} }
], ],
@ -10822,6 +10817,39 @@ const docTemplate = `{
} }
} }
}, },
"/settings/snapshot/size": {
"post": {
"security": [
{
"ApiKeyAuth": []
}
],
"description": "获取系统快照大小",
"consumes": [
"application/json"
],
"tags": [
"System Setting"
],
"summary": "Load system snapshot size",
"parameters": [
{
"description": "request",
"name": "request",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/dto.PageSnapshot"
}
}
],
"responses": {
"200": {
"description": "OK"
}
}
}
},
"/settings/snapshot/status": { "/settings/snapshot/status": {
"post": { "post": {
"security": [ "security": [
@ -15591,6 +15619,12 @@ const docTemplate = `{
"dto.ClamCreate": { "dto.ClamCreate": {
"type": "object", "type": "object",
"properties": { "properties": {
"alertCount": {
"type": "integer"
},
"alertTitle": {
"type": "string"
},
"description": { "description": {
"type": "string" "type": "string"
}, },
@ -15689,6 +15723,12 @@ const docTemplate = `{
"dto.ClamUpdate": { "dto.ClamUpdate": {
"type": "object", "type": "object",
"properties": { "properties": {
"alertCount": {
"type": "integer"
},
"alertTitle": {
"type": "string"
},
"description": { "description": {
"type": "string" "type": "string"
}, },
@ -15805,6 +15845,9 @@ const docTemplate = `{
"detailName": { "detailName": {
"type": "string" "type": "string"
}, },
"fileName": {
"type": "string"
},
"name": { "name": {
"type": "string" "type": "string"
}, },
@ -15876,6 +15919,12 @@ const docTemplate = `{
"from" "from"
], ],
"properties": { "properties": {
"env": {
"type": "array",
"items": {
"type": "string"
}
},
"file": { "file": {
"type": "string" "type": "string"
}, },
@ -15902,8 +15951,7 @@ const docTemplate = `{
"type": "object", "type": "object",
"required": [ "required": [
"name", "name",
"operation", "operation"
"path"
], ],
"properties": { "properties": {
"name": { "name": {
@ -15912,9 +15960,11 @@ const docTemplate = `{
"operation": { "operation": {
"type": "string", "type": "string",
"enum": [ "enum": [
"up",
"start", "start",
"stop", "stop",
"down" "down",
"delete"
] ]
}, },
"path": { "path": {
@ -15987,6 +16037,12 @@ const docTemplate = `{
"content": { "content": {
"type": "string" "type": "string"
}, },
"env": {
"type": "array",
"items": {
"type": "string"
}
},
"name": { "name": {
"type": "string" "type": "string"
}, },
@ -16162,6 +16218,7 @@ const docTemplate = `{
"operation": { "operation": {
"type": "string", "type": "string",
"enum": [ "enum": [
"up",
"start", "start",
"stop", "stop",
"restart", "restart",
@ -16309,6 +16366,12 @@ const docTemplate = `{
"type" "type"
], ],
"properties": { "properties": {
"alertCount": {
"type": "integer"
},
"alertTitle": {
"type": "string"
},
"appID": { "appID": {
"type": "string" "type": "string"
}, },
@ -16383,9 +16446,16 @@ const docTemplate = `{
"required": [ "required": [
"id", "id",
"name", "name",
"spec" "spec",
"type"
], ],
"properties": { "properties": {
"alertCount": {
"type": "integer"
},
"alertTitle": {
"type": "string"
},
"appID": { "appID": {
"type": "string" "type": "string"
}, },
@ -16432,6 +16502,9 @@ const docTemplate = `{
"spec": { "spec": {
"type": "string" "type": "string"
}, },
"type": {
"type": "string"
},
"url": { "url": {
"type": "string" "type": "string"
}, },
@ -16557,6 +16630,9 @@ const docTemplate = `{
"dto.DashboardBase": { "dto.DashboardBase": {
"type": "object", "type": "object",
"properties": { "properties": {
"SystemProxy": {
"type": "string"
},
"appInstalledNumber": { "appInstalledNumber": {
"type": "integer" "type": "integer"
}, },
@ -16581,6 +16657,9 @@ const docTemplate = `{
"hostname": { "hostname": {
"type": "string" "type": "string"
}, },
"ipv4Addr": {
"type": "string"
},
"kernelArch": { "kernelArch": {
"type": "string" "type": "string"
}, },
@ -16705,6 +16784,26 @@ const docTemplate = `{
}, },
"uptime": { "uptime": {
"type": "integer" "type": "integer"
},
"xpuData": {
"type": "array",
"items": {
"$ref": "#/definitions/dto.XPUInfo"
}
}
}
},
"dto.DashboardReq": {
"type": "object",
"properties": {
"ioOption": {
"type": "string"
},
"netOption": {
"type": "string"
},
"scope": {
"type": "string"
} }
} }
}, },
@ -18608,6 +18707,41 @@ const docTemplate = `{
} }
} }
}, },
"dto.PageSnapshot": {
"type": "object",
"required": [
"order",
"orderBy",
"page",
"pageSize"
],
"properties": {
"info": {
"type": "string"
},
"order": {
"type": "string",
"enum": [
"null",
"ascending",
"descending"
]
},
"orderBy": {
"type": "string",
"enum": [
"name",
"created_at"
]
},
"page": {
"type": "integer"
},
"pageSize": {
"type": "integer"
}
}
},
"dto.PasswordUpdate": { "dto.PasswordUpdate": {
"type": "object", "type": "object",
"required": [ "required": [
@ -19273,6 +19407,9 @@ const docTemplate = `{
"sslType" "sslType"
], ],
"properties": { "properties": {
"autoRestart": {
"type": "string"
},
"cert": { "cert": {
"type": "string" "type": "string"
}, },
@ -19501,6 +19638,9 @@ const docTemplate = `{
"appStoreVersion": { "appStoreVersion": {
"type": "string" "type": "string"
}, },
"autoRestart": {
"type": "string"
},
"bindAddress": { "bindAddress": {
"type": "string" "type": "string"
}, },
@ -19925,6 +20065,32 @@ const docTemplate = `{
} }
} }
}, },
"dto.XPUInfo": {
"type": "object",
"properties": {
"deviceID": {
"type": "integer"
},
"deviceName": {
"type": "string"
},
"memory": {
"type": "string"
},
"memoryUsed": {
"type": "string"
},
"memoryUtil": {
"type": "string"
},
"power": {
"type": "string"
},
"temperature": {
"type": "string"
}
}
},
"files.FileInfo": { "files.FileInfo": {
"type": "object", "type": "object",
"properties": { "properties": {
@ -22434,6 +22600,9 @@ const docTemplate = `{
"proxyPass": { "proxyPass": {
"type": "string" "type": "string"
}, },
"proxySSLName": {
"type": "string"
},
"replaces": { "replaces": {
"type": "object", "type": "object",
"additionalProperties": { "additionalProperties": {
@ -22476,6 +22645,9 @@ const docTemplate = `{
"ID": { "ID": {
"type": "integer" "type": "integer"
}, },
"disableLog": {
"type": "boolean"
},
"nameservers": { "nameservers": {
"type": "array", "type": "array",
"items": { "items": {

View File

@ -3866,8 +3866,8 @@
} }
} }
}, },
"/dashboard/current/:ioOption/:netOption": { "/dashboard/current": {
"get": { "post": {
"security": [ "security": [
{ {
"ApiKeyAuth": [] "ApiKeyAuth": []
@ -3883,18 +3883,13 @@
"summary": "Load dashboard current info", "summary": "Load dashboard current info",
"parameters": [ "parameters": [
{ {
"type": "string",
"description": "request", "description": "request",
"name": "ioOption", "name": "request",
"in": "path", "in": "body",
"required": true "required": true,
}, "schema": {
{ "$ref": "#/definitions/dto.DashboardReq"
"type": "string", }
"description": "request",
"name": "netOption",
"in": "path",
"required": true
} }
], ],
"responses": { "responses": {
@ -9124,8 +9119,8 @@
"bodyKeys": [ "bodyKeys": [
"id" "id"
], ],
"formatEN": "Delete website [name]", "formatEN": "Delete runtime [name]",
"formatZH": "删除网站 [name]", "formatZH": "删除运行环境 [name]",
"paramKeys": [] "paramKeys": []
} }
} }
@ -10802,7 +10797,7 @@
"in": "body", "in": "body",
"required": true, "required": true,
"schema": { "schema": {
"$ref": "#/definitions/dto.SearchWithPage" "$ref": "#/definitions/dto.PageSnapshot"
} }
} }
], ],
@ -10816,6 +10811,39 @@
} }
} }
}, },
"/settings/snapshot/size": {
"post": {
"security": [
{
"ApiKeyAuth": []
}
],
"description": "获取系统快照大小",
"consumes": [
"application/json"
],
"tags": [
"System Setting"
],
"summary": "Load system snapshot size",
"parameters": [
{
"description": "request",
"name": "request",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/dto.PageSnapshot"
}
}
],
"responses": {
"200": {
"description": "OK"
}
}
}
},
"/settings/snapshot/status": { "/settings/snapshot/status": {
"post": { "post": {
"security": [ "security": [
@ -15585,6 +15613,12 @@
"dto.ClamCreate": { "dto.ClamCreate": {
"type": "object", "type": "object",
"properties": { "properties": {
"alertCount": {
"type": "integer"
},
"alertTitle": {
"type": "string"
},
"description": { "description": {
"type": "string" "type": "string"
}, },
@ -15683,6 +15717,12 @@
"dto.ClamUpdate": { "dto.ClamUpdate": {
"type": "object", "type": "object",
"properties": { "properties": {
"alertCount": {
"type": "integer"
},
"alertTitle": {
"type": "string"
},
"description": { "description": {
"type": "string" "type": "string"
}, },
@ -15799,6 +15839,9 @@
"detailName": { "detailName": {
"type": "string" "type": "string"
}, },
"fileName": {
"type": "string"
},
"name": { "name": {
"type": "string" "type": "string"
}, },
@ -15870,6 +15913,12 @@
"from" "from"
], ],
"properties": { "properties": {
"env": {
"type": "array",
"items": {
"type": "string"
}
},
"file": { "file": {
"type": "string" "type": "string"
}, },
@ -15896,8 +15945,7 @@
"type": "object", "type": "object",
"required": [ "required": [
"name", "name",
"operation", "operation"
"path"
], ],
"properties": { "properties": {
"name": { "name": {
@ -15906,9 +15954,11 @@
"operation": { "operation": {
"type": "string", "type": "string",
"enum": [ "enum": [
"up",
"start", "start",
"stop", "stop",
"down" "down",
"delete"
] ]
}, },
"path": { "path": {
@ -15981,6 +16031,12 @@
"content": { "content": {
"type": "string" "type": "string"
}, },
"env": {
"type": "array",
"items": {
"type": "string"
}
},
"name": { "name": {
"type": "string" "type": "string"
}, },
@ -16156,6 +16212,7 @@
"operation": { "operation": {
"type": "string", "type": "string",
"enum": [ "enum": [
"up",
"start", "start",
"stop", "stop",
"restart", "restart",
@ -16303,6 +16360,12 @@
"type" "type"
], ],
"properties": { "properties": {
"alertCount": {
"type": "integer"
},
"alertTitle": {
"type": "string"
},
"appID": { "appID": {
"type": "string" "type": "string"
}, },
@ -16377,9 +16440,16 @@
"required": [ "required": [
"id", "id",
"name", "name",
"spec" "spec",
"type"
], ],
"properties": { "properties": {
"alertCount": {
"type": "integer"
},
"alertTitle": {
"type": "string"
},
"appID": { "appID": {
"type": "string" "type": "string"
}, },
@ -16426,6 +16496,9 @@
"spec": { "spec": {
"type": "string" "type": "string"
}, },
"type": {
"type": "string"
},
"url": { "url": {
"type": "string" "type": "string"
}, },
@ -16551,6 +16624,9 @@
"dto.DashboardBase": { "dto.DashboardBase": {
"type": "object", "type": "object",
"properties": { "properties": {
"SystemProxy": {
"type": "string"
},
"appInstalledNumber": { "appInstalledNumber": {
"type": "integer" "type": "integer"
}, },
@ -16575,6 +16651,9 @@
"hostname": { "hostname": {
"type": "string" "type": "string"
}, },
"ipv4Addr": {
"type": "string"
},
"kernelArch": { "kernelArch": {
"type": "string" "type": "string"
}, },
@ -16699,6 +16778,26 @@
}, },
"uptime": { "uptime": {
"type": "integer" "type": "integer"
},
"xpuData": {
"type": "array",
"items": {
"$ref": "#/definitions/dto.XPUInfo"
}
}
}
},
"dto.DashboardReq": {
"type": "object",
"properties": {
"ioOption": {
"type": "string"
},
"netOption": {
"type": "string"
},
"scope": {
"type": "string"
} }
} }
}, },
@ -18602,6 +18701,41 @@
} }
} }
}, },
"dto.PageSnapshot": {
"type": "object",
"required": [
"order",
"orderBy",
"page",
"pageSize"
],
"properties": {
"info": {
"type": "string"
},
"order": {
"type": "string",
"enum": [
"null",
"ascending",
"descending"
]
},
"orderBy": {
"type": "string",
"enum": [
"name",
"created_at"
]
},
"page": {
"type": "integer"
},
"pageSize": {
"type": "integer"
}
}
},
"dto.PasswordUpdate": { "dto.PasswordUpdate": {
"type": "object", "type": "object",
"required": [ "required": [
@ -19267,6 +19401,9 @@
"sslType" "sslType"
], ],
"properties": { "properties": {
"autoRestart": {
"type": "string"
},
"cert": { "cert": {
"type": "string" "type": "string"
}, },
@ -19495,6 +19632,9 @@
"appStoreVersion": { "appStoreVersion": {
"type": "string" "type": "string"
}, },
"autoRestart": {
"type": "string"
},
"bindAddress": { "bindAddress": {
"type": "string" "type": "string"
}, },
@ -19919,6 +20059,32 @@
} }
} }
}, },
"dto.XPUInfo": {
"type": "object",
"properties": {
"deviceID": {
"type": "integer"
},
"deviceName": {
"type": "string"
},
"memory": {
"type": "string"
},
"memoryUsed": {
"type": "string"
},
"memoryUtil": {
"type": "string"
},
"power": {
"type": "string"
},
"temperature": {
"type": "string"
}
}
},
"files.FileInfo": { "files.FileInfo": {
"type": "object", "type": "object",
"properties": { "properties": {
@ -22428,6 +22594,9 @@
"proxyPass": { "proxyPass": {
"type": "string" "type": "string"
}, },
"proxySSLName": {
"type": "string"
},
"replaces": { "replaces": {
"type": "object", "type": "object",
"additionalProperties": { "additionalProperties": {
@ -22470,6 +22639,9 @@
"ID": { "ID": {
"type": "integer" "type": "integer"
}, },
"disableLog": {
"type": "boolean"
},
"nameservers": { "nameservers": {
"type": "array", "type": "array",
"items": { "items": {

View File

@ -233,6 +233,10 @@ definitions:
type: object type: object
dto.ClamCreate: dto.ClamCreate:
properties: properties:
alertCount:
type: integer
alertTitle:
type: string
description: description:
type: string type: string
infectedDir: infectedDir:
@ -297,6 +301,10 @@ definitions:
type: object type: object
dto.ClamUpdate: dto.ClamUpdate:
properties: properties:
alertCount:
type: integer
alertTitle:
type: string
description: description:
type: string type: string
id: id:
@ -371,6 +379,8 @@ definitions:
properties: properties:
detailName: detailName:
type: string type: string
fileName:
type: string
name: name:
type: string type: string
secret: secret:
@ -424,6 +434,10 @@ definitions:
type: object type: object
dto.ComposeCreate: dto.ComposeCreate:
properties: properties:
env:
items:
type: string
type: array
file: file:
type: string type: string
from: from:
@ -447,9 +461,11 @@ definitions:
type: string type: string
operation: operation:
enum: enum:
- up
- start - start
- stop - stop
- down - down
- delete
type: string type: string
path: path:
type: string type: string
@ -458,7 +474,6 @@ definitions:
required: required:
- name - name
- operation - operation
- path
type: object type: object
dto.ComposeTemplateCreate: dto.ComposeTemplateCreate:
properties: properties:
@ -497,6 +512,10 @@ definitions:
properties: properties:
content: content:
type: string type: string
env:
items:
type: string
type: array
name: name:
type: string type: string
path: path:
@ -614,6 +633,7 @@ definitions:
type: array type: array
operation: operation:
enum: enum:
- up
- start - start
- stop - stop
- restart - restart
@ -713,6 +733,10 @@ definitions:
type: object type: object
dto.CronjobCreate: dto.CronjobCreate:
properties: properties:
alertCount:
type: integer
alertTitle:
type: string
appID: appID:
type: string type: string
backupAccounts: backupAccounts:
@ -765,6 +789,10 @@ definitions:
type: object type: object
dto.CronjobUpdate: dto.CronjobUpdate:
properties: properties:
alertCount:
type: integer
alertTitle:
type: string
appID: appID:
type: string type: string
backupAccounts: backupAccounts:
@ -796,6 +824,8 @@ definitions:
type: string type: string
spec: spec:
type: string type: string
type:
type: string
url: url:
type: string type: string
website: website:
@ -804,6 +834,7 @@ definitions:
- id - id
- name - name
- spec - spec
- type
type: object type: object
dto.CronjobUpdateStatus: dto.CronjobUpdateStatus:
properties: properties:
@ -883,6 +914,8 @@ definitions:
type: object type: object
dto.DashboardBase: dto.DashboardBase:
properties: properties:
SystemProxy:
type: string
appInstalledNumber: appInstalledNumber:
type: integer type: integer
cpuCores: cpuCores:
@ -899,6 +932,8 @@ definitions:
type: integer type: integer
hostname: hostname:
type: string type: string
ipv4Addr:
type: string
kernelArch: kernelArch:
type: string type: string
kernelVersion: kernelVersion:
@ -982,6 +1017,19 @@ definitions:
type: string type: string
uptime: uptime:
type: integer type: integer
xpuData:
items:
$ref: '#/definitions/dto.XPUInfo'
type: array
type: object
dto.DashboardReq:
properties:
ioOption:
type: string
netOption:
type: string
scope:
type: string
type: object type: object
dto.DatabaseCreate: dto.DatabaseCreate:
properties: properties:
@ -2278,6 +2326,31 @@ definitions:
total: total:
type: integer type: integer
type: object type: object
dto.PageSnapshot:
properties:
info:
type: string
order:
enum:
- "null"
- ascending
- descending
type: string
orderBy:
enum:
- name
- created_at
type: string
page:
type: integer
pageSize:
type: integer
required:
- order
- orderBy
- page
- pageSize
type: object
dto.PasswordUpdate: dto.PasswordUpdate:
properties: properties:
newPassword: newPassword:
@ -2723,6 +2796,8 @@ definitions:
type: object type: object
dto.SSLUpdate: dto.SSLUpdate:
properties: properties:
autoRestart:
type: string
cert: cert:
type: string type: string
domain: domain:
@ -2882,6 +2957,8 @@ definitions:
type: string type: string
appStoreVersion: appStoreVersion:
type: string type: string
autoRestart:
type: string
bindAddress: bindAddress:
type: string type: string
bindDomain: bindDomain:
@ -3161,6 +3238,23 @@ definitions:
type: type:
type: string type: string
type: object type: object
dto.XPUInfo:
properties:
deviceID:
type: integer
deviceName:
type: string
memory:
type: string
memoryUsed:
type: string
memoryUtil:
type: string
power:
type: string
temperature:
type: string
type: object
files.FileInfo: files.FileInfo:
properties: properties:
content: content:
@ -4836,6 +4930,8 @@ definitions:
type: string type: string
proxyPass: proxyPass:
type: string type: string
proxySSLName:
type: string
replaces: replaces:
additionalProperties: additionalProperties:
type: string type: string
@ -4868,6 +4964,8 @@ definitions:
properties: properties:
ID: ID:
type: integer type: integer
disableLog:
type: boolean
nameservers: nameservers:
items: items:
type: string type: string
@ -7981,22 +8079,18 @@ paths:
summary: Load os info summary: Load os info
tags: tags:
- Dashboard - Dashboard
/dashboard/current/:ioOption/:netOption: /dashboard/current:
get: post:
consumes: consumes:
- application/json - application/json
description: 获取首页实时数据 description: 获取首页实时数据
parameters: parameters:
- description: request - description: request
in: path in: body
name: ioOption name: request
required: true required: true
type: string schema:
- description: request $ref: '#/definitions/dto.DashboardReq'
in: path
name: netOption
required: true
type: string
responses: responses:
"200": "200":
description: OK description: OK
@ -11310,8 +11404,8 @@ paths:
BeforeFunctions: [] BeforeFunctions: []
bodyKeys: bodyKeys:
- id - id
formatEN: Delete website [name] formatEN: Delete runtime [name]
formatZH: 删除网站 [name] formatZH: 删除运行环境 [name]
paramKeys: [] paramKeys: []
/runtimes/node/modules: /runtimes/node/modules:
post: post:
@ -12368,7 +12462,7 @@ paths:
name: request name: request
required: true required: true
schema: schema:
$ref: '#/definitions/dto.SearchWithPage' $ref: '#/definitions/dto.PageSnapshot'
responses: responses:
"200": "200":
description: OK description: OK
@ -12379,6 +12473,26 @@ paths:
summary: Page system snapshot summary: Page system snapshot
tags: tags:
- System Setting - System Setting
/settings/snapshot/size:
post:
consumes:
- application/json
description: 获取系统快照大小
parameters:
- description: request
in: body
name: request
required: true
schema:
$ref: '#/definitions/dto.PageSnapshot'
responses:
"200":
description: OK
security:
- ApiKeyAuth: []
summary: Load system snapshot size
tags:
- System Setting
/settings/snapshot/status: /settings/snapshot/status:
post: post:
consumes: consumes: