diff --git a/backend/app/api/v1/app.go b/backend/app/api/v1/app.go index f946218c3..32613d9fa 100644 --- a/backend/app/api/v1/app.go +++ b/backend/app/api/v1/app.go @@ -37,7 +37,7 @@ func (b *BaseApi) SearchApp(c *gin.Context) { // @Success 200 // @Security ApiKeyAuth // @Router /apps/sync [post] -// @x-panel-log {"bodyKeys":[],"paramKeys":[],"BeforeFuntions":[],"formatZH":"应用商店同步","formatEN":"App store synchronization"} +// @x-panel-log {"bodyKeys":[],"paramKeys":[],"BeforeFunctions":[],"formatZH":"应用商店同步","formatEN":"App store synchronization"} func (b *BaseApi) SyncApp(c *gin.Context) { go appService.SyncAppListFromLocal() res, err := appService.GetAppUpdate() @@ -154,7 +154,7 @@ func (b *BaseApi) GetIgnoredApp(c *gin.Context) { // @Success 200 {object} model.AppInstall // @Security ApiKeyAuth // @Router /apps/install [post] -// @x-panel-log {"bodyKeys":["name"],"paramKeys":[],"BeforeFuntions":[{"input_column":"name","input_value":"name","isList":false,"db":"app_installs","output_column":"app_id","output_value":"appId"},{"info":"appId","isList":false,"db":"apps","output_column":"key","output_value":"appKey"}],"formatZH":"安装应用 [appKey]-[name]","formatEN":"Install app [appKey]-[name]"} +// @x-panel-log {"bodyKeys":["name"],"paramKeys":[],"BeforeFunctions":[{"input_column":"name","input_value":"name","isList":false,"db":"app_installs","output_column":"app_id","output_value":"appId"},{"info":"appId","isList":false,"db":"apps","output_column":"key","output_value":"appKey"}],"formatZH":"安装应用 [appKey]-[name]","formatEN":"Install app [appKey]-[name]"} func (b *BaseApi) InstallApp(c *gin.Context) { var req request.AppInstallCreate if err := c.ShouldBindJSON(&req); err != nil { diff --git a/backend/app/api/v1/app_install.go b/backend/app/api/v1/app_install.go index ccae9bdaa..3dbe2f385 100644 --- a/backend/app/api/v1/app_install.go +++ b/backend/app/api/v1/app_install.go @@ -161,7 +161,7 @@ func (b *BaseApi) DeleteCheck(c *gin.Context) { // @Success 200 // @Security ApiKeyAuth // @Router /apps/installed/sync [post] -// @x-panel-log {"bodyKeys":[],"paramKeys":[],"BeforeFuntions":[],"formatZH":"同步已安装应用列表","formatEN":"Sync the list of installed apps"} +// @x-panel-log {"bodyKeys":[],"paramKeys":[],"BeforeFunctions":[],"formatZH":"同步已安装应用列表","formatEN":"Sync the list of installed apps"} func (b *BaseApi) SyncInstalled(c *gin.Context) { if err := appInstallService.SyncAll(false); err != nil { helper.ErrorWithDetail(c, constant.CodeErrInternalServer, constant.ErrTypeInternalServer, err) @@ -178,7 +178,7 @@ func (b *BaseApi) SyncInstalled(c *gin.Context) { // @Success 200 // @Security ApiKeyAuth // @Router /apps/installed/op [post] -// @x-panel-log {"bodyKeys":["installId","operate"],"paramKeys":[],"BeforeFuntions":[{"input_column":"id","input_value":"installId","isList":false,"db":"app_installs","output_column":"app_id","output_value":"appId"},{"input_column":"id","input_value":"installId","isList":false,"db":"app_installs","output_column":"name","output_value":"appName"},{"input_column":"id","input_value":"appId","isList":false,"db":"apps","output_column":"key","output_value":"appKey"}],"formatZH":"[operate] 应用 [appKey][appName]","formatEN":"[operate] App [appKey][appName]"} +// @x-panel-log {"bodyKeys":["installId","operate"],"paramKeys":[],"BeforeFunctions":[{"input_column":"id","input_value":"installId","isList":false,"db":"app_installs","output_column":"app_id","output_value":"appId"},{"input_column":"id","input_value":"installId","isList":false,"db":"app_installs","output_column":"name","output_value":"appName"},{"input_column":"id","input_value":"appId","isList":false,"db":"apps","output_column":"key","output_value":"appKey"}],"formatZH":"[operate] 应用 [appKey][appName]","formatEN":"[operate] App [appKey][appName]"} func (b *BaseApi) OperateInstalled(c *gin.Context) { var req request.AppInstalledOperate if err := c.ShouldBindJSON(&req); err != nil { @@ -240,7 +240,7 @@ func (b *BaseApi) GetUpdateVersions(c *gin.Context) { // @Success 200 // @Security ApiKeyAuth // @Router /apps/installed/port/change [post] -// @x-panel-log {"bodyKeys":["key","name","port"],"paramKeys":[],"BeforeFuntions":[],"formatZH":"应用端口修改 [key]-[name] => [port]","formatEN":"Application port update [key]-[name] => [port]"} +// @x-panel-log {"bodyKeys":["key","name","port"],"paramKeys":[],"BeforeFunctions":[],"formatZH":"应用端口修改 [key]-[name] => [port]","formatEN":"Application port update [key]-[name] => [port]"} func (b *BaseApi) ChangeAppPort(c *gin.Context) { var req request.PortUpdate if err := c.ShouldBindJSON(&req); err != nil { @@ -311,7 +311,7 @@ func (b *BaseApi) GetParams(c *gin.Context) { // @Success 200 // @Security ApiKeyAuth // @Router /apps/installed/params/update [post] -// @x-panel-log {"bodyKeys":["installId"],"paramKeys":[],"BeforeFuntions":[],"formatZH":"应用参数修改 [installId]","formatEN":"Application param update [installId]"} +// @x-panel-log {"bodyKeys":["installId"],"paramKeys":[],"BeforeFunctions":[],"formatZH":"应用参数修改 [installId]","formatEN":"Application param update [installId]"} func (b *BaseApi) UpdateInstalled(c *gin.Context) { var req request.AppInstalledUpdate if err := c.ShouldBindJSON(&req); err != nil { @@ -333,7 +333,7 @@ func (b *BaseApi) UpdateInstalled(c *gin.Context) { // @Success 200 // @Security ApiKeyAuth // @Router /apps/installed/ignore [post] -// @x-panel-log {"bodyKeys":["installId"],"paramKeys":[],"BeforeFuntions":[],"formatZH":"忽略应用 [installId] 版本升级","formatEN":"Application param update [installId]"} +// @x-panel-log {"bodyKeys":["installId"],"paramKeys":[],"BeforeFunctions":[],"formatZH":"忽略应用 [installId] 版本升级","formatEN":"Application param update [installId]"} func (b *BaseApi) IgnoreUpgrade(c *gin.Context) { var req request.AppInstalledIgnoreUpgrade if err := c.ShouldBindJSON(&req); err != nil { diff --git a/backend/app/api/v1/backup.go b/backend/app/api/v1/backup.go index aec5ceed8..d8ca85af9 100644 --- a/backend/app/api/v1/backup.go +++ b/backend/app/api/v1/backup.go @@ -20,7 +20,7 @@ import ( // @Success 200 // @Security ApiKeyAuth // @Router /settings/backup [post] -// @x-panel-log {"bodyKeys":["type"],"paramKeys":[],"BeforeFuntions":[],"formatZH":"创建备份账号 [type]","formatEN":"create backup account [type]"} +// @x-panel-log {"bodyKeys":["type"],"paramKeys":[],"BeforeFunctions":[],"formatZH":"创建备份账号 [type]","formatEN":"create backup account [type]"} func (b *BaseApi) CreateBackup(c *gin.Context) { var req dto.BackupOperate if err := c.ShouldBindJSON(&req); err != nil { @@ -122,7 +122,7 @@ func (b *BaseApi) LoadOneDriveInfo(c *gin.Context) { // @Success 200 // @Security ApiKeyAuth // @Router /settings/backup/del [post] -// @x-panel-log {"bodyKeys":["id"],"paramKeys":[],"BeforeFuntions":[{"input_column":"id","input_value":"id","isList":true,"db":"backup_accounts","output_column":"type","output_value":"types"}],"formatZH":"删除备份账号 [types]","formatEN":"delete backup account [types]"} +// @x-panel-log {"bodyKeys":["id"],"paramKeys":[],"BeforeFunctions":[{"input_column":"id","input_value":"id","isList":true,"db":"backup_accounts","output_column":"type","output_value":"types"}],"formatZH":"删除备份账号 [types]","formatEN":"delete backup account [types]"} func (b *BaseApi) DeleteBackup(c *gin.Context) { var req dto.OperateByID if err := c.ShouldBindJSON(&req); err != nil { @@ -176,7 +176,7 @@ func (b *BaseApi) SearchBackupRecords(c *gin.Context) { // @Success 200 // @Security ApiKeyAuth // @Router /settings/backup/record/download [post] -// @x-panel-log {"bodyKeys":["source","fileName"],"paramKeys":[],"BeforeFuntions":[],"formatZH":"下载备份记录 [source][fileName]","formatEN":"download backup records [source][fileName]"} +// @x-panel-log {"bodyKeys":["source","fileName"],"paramKeys":[],"BeforeFunctions":[],"formatZH":"下载备份记录 [source][fileName]","formatEN":"download backup records [source][fileName]"} func (b *BaseApi) DownloadRecord(c *gin.Context) { var req dto.DownloadRecord if err := c.ShouldBindJSON(&req); err != nil { @@ -204,7 +204,7 @@ func (b *BaseApi) DownloadRecord(c *gin.Context) { // @Success 200 // @Security ApiKeyAuth // @Router /settings/backup/record/del [post] -// @x-panel-log {"bodyKeys":["ids"],"paramKeys":[],"BeforeFuntions":[{"input_column":"id","input_value":"ids","isList":true,"db":"backup_records","output_column":"file_name","output_value":"files"}],"formatZH":"删除备份记录 [files]","formatEN":"delete backup records [files]"} +// @x-panel-log {"bodyKeys":["ids"],"paramKeys":[],"BeforeFunctions":[{"input_column":"id","input_value":"ids","isList":true,"db":"backup_records","output_column":"file_name","output_value":"files"}],"formatZH":"删除备份记录 [files]","formatEN":"delete backup records [files]"} func (b *BaseApi) DeleteBackupRecord(c *gin.Context) { var req dto.BatchDeleteReq if err := c.ShouldBindJSON(&req); err != nil { @@ -231,7 +231,7 @@ func (b *BaseApi) DeleteBackupRecord(c *gin.Context) { // @Success 200 // @Security ApiKeyAuth // @Router /settings/backup/update [post] -// @x-panel-log {"bodyKeys":["type"],"paramKeys":[],"BeforeFuntions":[],"formatZH":"更新备份账号 [types]","formatEN":"update backup account [types]"} +// @x-panel-log {"bodyKeys":["type"],"paramKeys":[],"BeforeFunctions":[],"formatZH":"更新备份账号 [types]","formatEN":"update backup account [types]"} func (b *BaseApi) UpdateBackup(c *gin.Context) { var req dto.BackupOperate if err := c.ShouldBindJSON(&req); err != nil { @@ -317,7 +317,7 @@ func (b *BaseApi) LoadFilesFromBackup(c *gin.Context) { // @Success 200 // @Security ApiKeyAuth // @Router /settings/backup/ [post] -// @x-panel-log {"bodyKeys":["type","name","detailName"],"paramKeys":[],"BeforeFuntions":[],"formatZH":"备份 [type] 数据 [name][detailName]","formatEN":"backup [type] data [name][detailName]"} +// @x-panel-log {"bodyKeys":["type","name","detailName"],"paramKeys":[],"BeforeFunctions":[],"formatZH":"备份 [type] 数据 [name][detailName]","formatEN":"backup [type] data [name][detailName]"} func (b *BaseApi) Backup(c *gin.Context) { var req dto.CommonBackup if err := c.ShouldBindJSON(&req); err != nil { @@ -362,7 +362,7 @@ func (b *BaseApi) Backup(c *gin.Context) { // @Success 200 // @Security ApiKeyAuth // @Router /settings/backup/recover [post] -// @x-panel-log {"bodyKeys":["type","name","detailName","file"],"paramKeys":[],"BeforeFuntions":[],"formatZH":"从 [file] 恢复 [type] 数据 [name][detailName]","formatEN":"recover [type] data [name][detailName] from [file]"} +// @x-panel-log {"bodyKeys":["type","name","detailName","file"],"paramKeys":[],"BeforeFunctions":[],"formatZH":"从 [file] 恢复 [type] 数据 [name][detailName]","formatEN":"recover [type] data [name][detailName] from [file]"} func (b *BaseApi) Recover(c *gin.Context) { var req dto.CommonRecover if err := c.ShouldBindJSON(&req); err != nil { @@ -415,7 +415,7 @@ func (b *BaseApi) Recover(c *gin.Context) { // @Success 200 // @Security ApiKeyAuth // @Router /settings/backup/recover/byupload [post] -// @x-panel-log {"bodyKeys":["type","name","detailName","file"],"paramKeys":[],"BeforeFuntions":[],"formatZH":"从 [file] 恢复 [type] 数据 [name][detailName]","formatEN":"recover [type] data [name][detailName] from [file]"} +// @x-panel-log {"bodyKeys":["type","name","detailName","file"],"paramKeys":[],"BeforeFunctions":[],"formatZH":"从 [file] 恢复 [type] 数据 [name][detailName]","formatEN":"recover [type] data [name][detailName] from [file]"} func (b *BaseApi) RecoverByUpload(c *gin.Context) { var req dto.CommonRecover if err := c.ShouldBindJSON(&req); err != nil { diff --git a/backend/app/api/v1/command.go b/backend/app/api/v1/command.go index 023a41cba..34224afbf 100644 --- a/backend/app/api/v1/command.go +++ b/backend/app/api/v1/command.go @@ -16,7 +16,7 @@ import ( // @Success 200 // @Security ApiKeyAuth // @Router /hosts/command [post] -// @x-panel-log {"bodyKeys":["name","command"],"paramKeys":[],"BeforeFuntions":[],"formatZH":"创建快捷命令 [name][command]","formatEN":"create quick command [name][command]"} +// @x-panel-log {"bodyKeys":["name","command"],"paramKeys":[],"BeforeFunctions":[],"formatZH":"创建快捷命令 [name][command]","formatEN":"create quick command [name][command]"} func (b *BaseApi) CreateCommand(c *gin.Context) { var req dto.CommandOperate if err := c.ShouldBindJSON(&req); err != nil { @@ -85,7 +85,7 @@ func (b *BaseApi) ListCommand(c *gin.Context) { // @Success 200 // @Security ApiKeyAuth // @Router /hosts/command/del [post] -// @x-panel-log {"bodyKeys":["ids"],"paramKeys":[],"BeforeFuntions":[{"input_column":"id","input_value":"ids","isList":true,"db":"commands","output_column":"name","output_value":"names"}],"formatZH":"删除快捷命令 [names]","formatEN":"delete quick command [names]"} +// @x-panel-log {"bodyKeys":["ids"],"paramKeys":[],"BeforeFunctions":[{"input_column":"id","input_value":"ids","isList":true,"db":"commands","output_column":"name","output_value":"names"}],"formatZH":"删除快捷命令 [names]","formatEN":"delete quick command [names]"} func (b *BaseApi) DeleteCommand(c *gin.Context) { var req dto.BatchDeleteReq if err := c.ShouldBindJSON(&req); err != nil { @@ -112,7 +112,7 @@ func (b *BaseApi) DeleteCommand(c *gin.Context) { // @Success 200 // @Security ApiKeyAuth // @Router /hosts/command/update [post] -// @x-panel-log {"bodyKeys":["name"],"paramKeys":[],"BeforeFuntions":[],"formatZH":"更新快捷命令 [name]","formatEN":"update quick command [name]"} +// @x-panel-log {"bodyKeys":["name"],"paramKeys":[],"BeforeFunctions":[],"formatZH":"更新快捷命令 [name]","formatEN":"update quick command [name]"} func (b *BaseApi) UpdateCommand(c *gin.Context) { var req dto.CommandOperate if err := c.ShouldBindJSON(&req); err != nil { diff --git a/backend/app/api/v1/compose_template.go b/backend/app/api/v1/compose_template.go index a2db26498..5aaf05ef9 100644 --- a/backend/app/api/v1/compose_template.go +++ b/backend/app/api/v1/compose_template.go @@ -16,7 +16,7 @@ import ( // @Success 200 // @Security ApiKeyAuth // @Router /containers/template [post] -// @x-panel-log {"bodyKeys":["name"],"paramKeys":[],"BeforeFuntions":[],"formatZH":"创建 compose 模版 [name]","formatEN":"create compose template [name]"} +// @x-panel-log {"bodyKeys":["name"],"paramKeys":[],"BeforeFunctions":[],"formatZH":"创建 compose 模版 [name]","formatEN":"create compose template [name]"} func (b *BaseApi) CreateComposeTemplate(c *gin.Context) { var req dto.ComposeTemplateCreate if err := c.ShouldBindJSON(&req); err != nil { @@ -87,7 +87,7 @@ func (b *BaseApi) ListComposeTemplate(c *gin.Context) { // @Success 200 // @Security ApiKeyAuth // @Router /containers/template/del [post] -// @x-panel-log {"bodyKeys":["ids"],"paramKeys":[],"BeforeFuntions":[{"input_column":"id","input_value":"ids","isList":true,"db":"compose_templates","output_column":"name","output_value":"names"}],"formatZH":"删除 compose 模版 [names]","formatEN":"delete compose template [names]"} +// @x-panel-log {"bodyKeys":["ids"],"paramKeys":[],"BeforeFunctions":[{"input_column":"id","input_value":"ids","isList":true,"db":"compose_templates","output_column":"name","output_value":"names"}],"formatZH":"删除 compose 模版 [names]","formatEN":"delete compose template [names]"} func (b *BaseApi) DeleteComposeTemplate(c *gin.Context) { var req dto.BatchDeleteReq if err := c.ShouldBindJSON(&req); err != nil { @@ -114,7 +114,7 @@ func (b *BaseApi) DeleteComposeTemplate(c *gin.Context) { // @Success 200 // @Security ApiKeyAuth // @Router /containers/template/update [post] -// @x-panel-log {"bodyKeys":["id"],"paramKeys":[],"BeforeFuntions":[{"input_column":"id","input_value":"id","isList":false,"db":"compose_templates","output_column":"name","output_value":"name"}],"formatZH":"更新 compose 模版 [name]","formatEN":"update compose template information [name]"} +// @x-panel-log {"bodyKeys":["id"],"paramKeys":[],"BeforeFunctions":[{"input_column":"id","input_value":"id","isList":false,"db":"compose_templates","output_column":"name","output_value":"name"}],"formatZH":"更新 compose 模版 [name]","formatEN":"update compose template information [name]"} func (b *BaseApi) UpdateComposeTemplate(c *gin.Context) { var req dto.ComposeTemplateUpdate if err := c.ShouldBindJSON(&req); err != nil { diff --git a/backend/app/api/v1/container.go b/backend/app/api/v1/container.go index f681c0e89..aab30afdc 100644 --- a/backend/app/api/v1/container.go +++ b/backend/app/api/v1/container.go @@ -95,7 +95,7 @@ func (b *BaseApi) SearchCompose(c *gin.Context) { // @Success 200 // @Security ApiKeyAuth // @Router /containers/compose/test [post] -// @x-panel-log {"bodyKeys":["name"],"paramKeys":[],"BeforeFuntions":[],"formatZH":"检测 compose [name] 格式","formatEN":"check compose [name]"} +// @x-panel-log {"bodyKeys":["name"],"paramKeys":[],"BeforeFunctions":[],"formatZH":"检测 compose [name] 格式","formatEN":"check compose [name]"} func (b *BaseApi) TestCompose(c *gin.Context) { var req dto.ComposeCreate if err := c.ShouldBindJSON(&req); err != nil { @@ -123,7 +123,7 @@ func (b *BaseApi) TestCompose(c *gin.Context) { // @Success 200 // @Security ApiKeyAuth // @Router /containers/compose [post] -// @x-panel-log {"bodyKeys":["name"],"paramKeys":[],"BeforeFuntions":[],"formatZH":"创建 compose [name]","formatEN":"create compose [name]"} +// @x-panel-log {"bodyKeys":["name"],"paramKeys":[],"BeforeFunctions":[],"formatZH":"创建 compose [name]","formatEN":"create compose [name]"} func (b *BaseApi) CreateCompose(c *gin.Context) { var req dto.ComposeCreate if err := c.ShouldBindJSON(&req); err != nil { @@ -151,7 +151,7 @@ func (b *BaseApi) CreateCompose(c *gin.Context) { // @Success 200 // @Security ApiKeyAuth // @Router /containers/compose/operate [post] -// @x-panel-log {"bodyKeys":["name","operation"],"paramKeys":[],"BeforeFuntions":[],"formatZH":"compose [operation] [name]","formatEN":"compose [operation] [name]"} +// @x-panel-log {"bodyKeys":["name","operation"],"paramKeys":[],"BeforeFunctions":[],"formatZH":"compose [operation] [name]","formatEN":"compose [operation] [name]"} func (b *BaseApi) OperatorCompose(c *gin.Context) { var req dto.ComposeOperation if err := c.ShouldBindJSON(&req); err != nil { @@ -178,7 +178,7 @@ func (b *BaseApi) OperatorCompose(c *gin.Context) { // @Success 200 // @Security ApiKeyAuth // @Router /containers/update [post] -// @x-panel-log {"bodyKeys":["name","image"],"paramKeys":[],"BeforeFuntions":[],"formatZH":"更新容器 [name][image]","formatEN":"update container [name][image]"} +// @x-panel-log {"bodyKeys":["name","image"],"paramKeys":[],"BeforeFunctions":[],"formatZH":"更新容器 [name][image]","formatEN":"update container [name][image]"} func (b *BaseApi) ContainerUpdate(c *gin.Context) { var req dto.ContainerOperate if err := c.ShouldBindJSON(&req); err != nil { @@ -258,7 +258,7 @@ func (b *BaseApi) ContainerListStats(c *gin.Context) { // @Success 200 // @Security ApiKeyAuth // @Router /containers [post] -// @x-panel-log {"bodyKeys":["name","image"],"paramKeys":[],"BeforeFuntions":[],"formatZH":"创建容器 [name][image]","formatEN":"create container [name][image]"} +// @x-panel-log {"bodyKeys":["name","image"],"paramKeys":[],"BeforeFunctions":[],"formatZH":"创建容器 [name][image]","formatEN":"create container [name][image]"} func (b *BaseApi) ContainerCreate(c *gin.Context) { var req dto.ContainerOperate if err := c.ShouldBindJSON(&req); err != nil { @@ -284,7 +284,7 @@ func (b *BaseApi) ContainerCreate(c *gin.Context) { // @Success 200 // @Security ApiKeyAuth // @Router /containers/upgrade [post] -// @x-panel-log {"bodyKeys":["name","image"],"paramKeys":[],"BeforeFuntions":[],"formatZH":"更新容器镜像 [name][image]","formatEN":"upgrade container image [name][image]"} +// @x-panel-log {"bodyKeys":["name","image"],"paramKeys":[],"BeforeFunctions":[],"formatZH":"更新容器镜像 [name][image]","formatEN":"upgrade container image [name][image]"} func (b *BaseApi) ContainerUpgrade(c *gin.Context) { var req dto.ContainerUpgrade if err := c.ShouldBindJSON(&req); err != nil { @@ -310,7 +310,7 @@ func (b *BaseApi) ContainerUpgrade(c *gin.Context) { // @Success 200 {object} dto.ContainerPruneReport // @Security ApiKeyAuth // @Router /containers/prune [post] -// @x-panel-log {"bodyKeys":["pruneType"],"paramKeys":[],"BeforeFuntions":[],"formatZH":"清理容器 [pruneType]","formatEN":"clean container [pruneType]"} +// @x-panel-log {"bodyKeys":["pruneType"],"paramKeys":[],"BeforeFunctions":[],"formatZH":"清理容器 [pruneType]","formatEN":"clean container [pruneType]"} func (b *BaseApi) ContainerPrune(c *gin.Context) { var req dto.ContainerPrune if err := c.ShouldBindJSON(&req); err != nil { @@ -337,7 +337,7 @@ func (b *BaseApi) ContainerPrune(c *gin.Context) { // @Success 200 // @Security ApiKeyAuth // @Router /containers/clean/log [post] -// @x-panel-log {"bodyKeys":["name"],"paramKeys":[],"BeforeFuntions":[],"formatZH":"清理容器 [name] 日志","formatEN":"clean container [name] logs"} +// @x-panel-log {"bodyKeys":["name"],"paramKeys":[],"BeforeFunctions":[],"formatZH":"清理容器 [name] 日志","formatEN":"clean container [name] logs"} func (b *BaseApi) CleanContainerLog(c *gin.Context) { var req dto.OperationWithName if err := c.ShouldBindJSON(&req); err != nil { @@ -381,7 +381,7 @@ func (b *BaseApi) LoadContainerLog(c *gin.Context) { // @Success 200 // @Security ApiKeyAuth // @Router /containers/operate [post] -// @x-panel-log {"bodyKeys":["name","operation","newName"],"paramKeys":[],"BeforeFuntions":[],"formatZH":"容器 [name] 执行 [operation] [newName]","formatEN":"container [operation] [name] [newName]"} +// @x-panel-log {"bodyKeys":["name","operation","newName"],"paramKeys":[],"BeforeFunctions":[],"formatZH":"容器 [name] 执行 [operation] [newName]","formatEN":"container [operation] [name] [newName]"} func (b *BaseApi) ContainerOperation(c *gin.Context) { var req dto.ContainerOperation if err := c.ShouldBindJSON(&req); err != nil { @@ -532,7 +532,7 @@ func (b *BaseApi) ListNetwork(c *gin.Context) { // @Success 200 // @Security ApiKeyAuth // @Router /containers/network/del [post] -// @x-panel-log {"bodyKeys":["names"],"paramKeys":[],"BeforeFuntions":[],"formatZH":"删除容器网络 [names]","formatEN":"delete container network [names]"} +// @x-panel-log {"bodyKeys":["names"],"paramKeys":[],"BeforeFunctions":[],"formatZH":"删除容器网络 [names]","formatEN":"delete container network [names]"} func (b *BaseApi) DeleteNetwork(c *gin.Context) { var req dto.BatchDelete if err := c.ShouldBindJSON(&req); err != nil { @@ -559,7 +559,7 @@ func (b *BaseApi) DeleteNetwork(c *gin.Context) { // @Success 200 // @Security ApiKeyAuth // @Router /containers/network [post] -// @x-panel-log {"bodyKeys":["name"],"paramKeys":[],"BeforeFuntions":[],"formatZH":"创建容器网络 name","formatEN":"create container network [name]"} +// @x-panel-log {"bodyKeys":["name"],"paramKeys":[],"BeforeFunctions":[],"formatZH":"创建容器网络 name","formatEN":"create container network [name]"} func (b *BaseApi) CreateNetwork(c *gin.Context) { var req dto.NetworkCreate if err := c.ShouldBindJSON(&req); err != nil { @@ -634,7 +634,7 @@ func (b *BaseApi) ListVolume(c *gin.Context) { // @Success 200 // @Security ApiKeyAuth // @Router /containers/volume/del [post] -// @x-panel-log {"bodyKeys":["names"],"paramKeys":[],"BeforeFuntions":[],"formatZH":"删除容器存储卷 [names]","formatEN":"delete container volume [names]"} +// @x-panel-log {"bodyKeys":["names"],"paramKeys":[],"BeforeFunctions":[],"formatZH":"删除容器存储卷 [names]","formatEN":"delete container volume [names]"} func (b *BaseApi) DeleteVolume(c *gin.Context) { var req dto.BatchDelete if err := c.ShouldBindJSON(&req); err != nil { @@ -661,7 +661,7 @@ func (b *BaseApi) DeleteVolume(c *gin.Context) { // @Success 200 // @Security ApiKeyAuth // @Router /containers/volume [post] -// @x-panel-log {"bodyKeys":["name"],"paramKeys":[],"BeforeFuntions":[],"formatZH":"创建容器存储卷 [name]","formatEN":"create container volume [name]"} +// @x-panel-log {"bodyKeys":["name"],"paramKeys":[],"BeforeFunctions":[],"formatZH":"创建容器存储卷 [name]","formatEN":"create container volume [name]"} func (b *BaseApi) CreateVolume(c *gin.Context) { var req dto.VolumeCreate if err := c.ShouldBindJSON(&req); err != nil { @@ -688,7 +688,7 @@ func (b *BaseApi) CreateVolume(c *gin.Context) { // @Success 200 // @Security ApiKeyAuth // @Router /containers/compose/update [post] -// @x-panel-log {"bodyKeys":["name"],"paramKeys":[],"BeforeFuntions":[],"formatZH":"更新 compose [name]","formatEN":"update compose information [name]"} +// @x-panel-log {"bodyKeys":["name"],"paramKeys":[],"BeforeFunctions":[],"formatZH":"更新 compose [name]","formatEN":"update compose information [name]"} func (b *BaseApi) ComposeUpdate(c *gin.Context) { var req dto.ComposeUpdate if err := c.ShouldBindJSON(&req); err != nil { diff --git a/backend/app/api/v1/cronjob.go b/backend/app/api/v1/cronjob.go index 0a1614150..18f67dca8 100644 --- a/backend/app/api/v1/cronjob.go +++ b/backend/app/api/v1/cronjob.go @@ -19,7 +19,7 @@ import ( // @Success 200 // @Security ApiKeyAuth // @Router /cronjobs [post] -// @x-panel-log {"bodyKeys":["type","name"],"paramKeys":[],"BeforeFuntions":[],"formatZH":"创建计划任务 [type][name]","formatEN":"create cronjob [type][name]"} +// @x-panel-log {"bodyKeys":["type","name"],"paramKeys":[],"BeforeFunctions":[],"formatZH":"创建计划任务 [type][name]","formatEN":"create cronjob [type][name]"} func (b *BaseApi) CreateCronjob(c *gin.Context) { var req dto.CronjobCreate if err := c.ShouldBindJSON(&req); err != nil { @@ -124,7 +124,7 @@ func (b *BaseApi) LoadRecordLog(c *gin.Context) { // @Success 200 // @Security ApiKeyAuth // @Router /cronjobs/records/clean [post] -// @x-panel-log {"bodyKeys":["id"],"paramKeys":[],"BeforeFuntions":[{"input_column":"id","input_value":"id","isList":false,"db":"cronjobs","output_column":"name","output_value":"name"}],"formatZH":"清空计划任务记录 [name]","formatEN":"clean cronjob [name] records"} +// @x-panel-log {"bodyKeys":["id"],"paramKeys":[],"BeforeFunctions":[{"input_column":"id","input_value":"id","isList":false,"db":"cronjobs","output_column":"name","output_value":"name"}],"formatZH":"清空计划任务记录 [name]","formatEN":"clean cronjob [name] records"} func (b *BaseApi) CleanRecord(c *gin.Context) { var req dto.CronjobClean if err := c.ShouldBindJSON(&req); err != nil { @@ -148,7 +148,7 @@ func (b *BaseApi) CleanRecord(c *gin.Context) { // @Success 200 // @Security ApiKeyAuth // @Router /cronjobs/del [post] -// @x-panel-log {"bodyKeys":["ids"],"paramKeys":[],"BeforeFuntions":[{"input_column":"id","input_value":"ids","isList":true,"db":"cronjobs","output_column":"name","output_value":"names"}],"formatZH":"删除计划任务 [names]","formatEN":"delete cronjob [names]"} +// @x-panel-log {"bodyKeys":["ids"],"paramKeys":[],"BeforeFunctions":[{"input_column":"id","input_value":"ids","isList":true,"db":"cronjobs","output_column":"name","output_value":"names"}],"formatZH":"删除计划任务 [names]","formatEN":"delete cronjob [names]"} func (b *BaseApi) DeleteCronjob(c *gin.Context) { var req dto.CronjobBatchDelete if err := c.ShouldBindJSON(&req); err != nil { @@ -175,7 +175,7 @@ func (b *BaseApi) DeleteCronjob(c *gin.Context) { // @Success 200 // @Security ApiKeyAuth // @Router /cronjobs/update [post] -// @x-panel-log {"bodyKeys":["id"],"paramKeys":[],"BeforeFuntions":[{"input_column":"id","input_value":"id","isList":false,"db":"cronjobs","output_column":"name","output_value":"name"}],"formatZH":"更新计划任务 [name]","formatEN":"update cronjob [name]"} +// @x-panel-log {"bodyKeys":["id"],"paramKeys":[],"BeforeFunctions":[{"input_column":"id","input_value":"id","isList":false,"db":"cronjobs","output_column":"name","output_value":"name"}],"formatZH":"更新计划任务 [name]","formatEN":"update cronjob [name]"} func (b *BaseApi) UpdateCronjob(c *gin.Context) { var req dto.CronjobUpdate if err := c.ShouldBindJSON(&req); err != nil { @@ -202,7 +202,7 @@ func (b *BaseApi) UpdateCronjob(c *gin.Context) { // @Success 200 // @Security ApiKeyAuth // @Router /cronjobs/status [post] -// @x-panel-log {"bodyKeys":["id","status"],"paramKeys":[],"BeforeFuntions":[{"input_column":"id","input_value":"id","isList":false,"db":"cronjobs","output_column":"name","output_value":"name"}],"formatZH":"修改计划任务 [name] 状态为 [status]","formatEN":"change the status of cronjob [name] to [status]."} +// @x-panel-log {"bodyKeys":["id","status"],"paramKeys":[],"BeforeFunctions":[{"input_column":"id","input_value":"id","isList":false,"db":"cronjobs","output_column":"name","output_value":"name"}],"formatZH":"修改计划任务 [name] 状态为 [status]","formatEN":"change the status of cronjob [name] to [status]."} func (b *BaseApi) UpdateCronjobStatus(c *gin.Context) { var req dto.CronjobUpdateStatus if err := c.ShouldBindJSON(&req); err != nil { @@ -229,7 +229,7 @@ func (b *BaseApi) UpdateCronjobStatus(c *gin.Context) { // @Success 200 // @Security ApiKeyAuth // @Router /cronjobs/download [post] -// @x-panel-log {"bodyKeys":["recordID"],"paramKeys":[],"BeforeFuntions":[{"input_column":"id","input_value":"recordID","isList":false,"db":"job_records","output_column":"file","output_value":"file"}],"formatZH":"下载计划任务记录 [file]","formatEN":"download the cronjob record [file]"} +// @x-panel-log {"bodyKeys":["recordID"],"paramKeys":[],"BeforeFunctions":[{"input_column":"id","input_value":"recordID","isList":false,"db":"job_records","output_column":"file","output_value":"file"}],"formatZH":"下载计划任务记录 [file]","formatEN":"download the cronjob record [file]"} func (b *BaseApi) TargetDownload(c *gin.Context) { var req dto.CronjobDownload if err := c.ShouldBindJSON(&req); err != nil { @@ -258,7 +258,7 @@ func (b *BaseApi) TargetDownload(c *gin.Context) { // @Success 200 // @Security ApiKeyAuth // @Router /cronjobs/handle [post] -// @x-panel-log {"bodyKeys":["id"],"paramKeys":[],"BeforeFuntions":[{"input_column":"id","input_value":"id","isList":false,"db":"cronjobs","output_column":"name","output_value":"name"}],"formatZH":"手动执行计划任务 [name]","formatEN":"manually execute the cronjob [name]"} +// @x-panel-log {"bodyKeys":["id"],"paramKeys":[],"BeforeFunctions":[{"input_column":"id","input_value":"id","isList":false,"db":"cronjobs","output_column":"name","output_value":"name"}],"formatZH":"手动执行计划任务 [name]","formatEN":"manually execute the cronjob [name]"} func (b *BaseApi) HandleOnce(c *gin.Context) { var req dto.OperateByID if err := c.ShouldBindJSON(&req); err != nil { diff --git a/backend/app/api/v1/database.go b/backend/app/api/v1/database.go index 55ee76869..fecfca06e 100644 --- a/backend/app/api/v1/database.go +++ b/backend/app/api/v1/database.go @@ -16,7 +16,7 @@ import ( // @Success 200 // @Security ApiKeyAuth // @Router /databases/db [post] -// @x-panel-log {"bodyKeys":["name", "type"],"paramKeys":[],"BeforeFuntions":[],"formatZH":"创建远程数据库 [name][type]","formatEN":"create database [name][type]"} +// @x-panel-log {"bodyKeys":["name", "type"],"paramKeys":[],"BeforeFunctions":[],"formatZH":"创建远程数据库 [name][type]","formatEN":"create database [name][type]"} func (b *BaseApi) CreateDatabase(c *gin.Context) { var req dto.DatabaseCreate if err := c.ShouldBindJSON(&req); err != nil { @@ -42,7 +42,7 @@ func (b *BaseApi) CreateDatabase(c *gin.Context) { // @Success 200 // @Security ApiKeyAuth // @Router /databases/db/check [post] -// @x-panel-log {"bodyKeys":["name", "type"],"paramKeys":[],"BeforeFuntions":[],"formatZH":"检测远程数据库 [name][type] 连接性","formatEN":"check if database [name][type] is connectable"} +// @x-panel-log {"bodyKeys":["name", "type"],"paramKeys":[],"BeforeFunctions":[],"formatZH":"检测远程数据库 [name][type] 连接性","formatEN":"check if database [name][type] is connectable"} func (b *BaseApi) CheckDatabase(c *gin.Context) { var req dto.DatabaseCreate if err := c.ShouldBindJSON(&req); err != nil { @@ -133,7 +133,7 @@ func (b *BaseApi) GetDatabase(c *gin.Context) { // @Success 200 // @Security ApiKeyAuth // @Router /databases/db/del [post] -// @x-panel-log {"bodyKeys":["ids"],"paramKeys":[],"BeforeFuntions":[{"input_column":"id","input_value":"ids","isList":true,"db":"databases","output_column":"name","output_value":"names"}],"formatZH":"删除远程数据库 [names]","formatEN":"delete database [names]"} +// @x-panel-log {"bodyKeys":["ids"],"paramKeys":[],"BeforeFunctions":[{"input_column":"id","input_value":"ids","isList":true,"db":"databases","output_column":"name","output_value":"names"}],"formatZH":"删除远程数据库 [names]","formatEN":"delete database [names]"} func (b *BaseApi) DeleteDatabase(c *gin.Context) { var req dto.OperateByID if err := c.ShouldBindJSON(&req); err != nil { @@ -160,7 +160,7 @@ func (b *BaseApi) DeleteDatabase(c *gin.Context) { // @Success 200 // @Security ApiKeyAuth // @Router /databases/db/update [post] -// @x-panel-log {"bodyKeys":["name"],"paramKeys":[],"BeforeFuntions":[],"formatZH":"更新远程数据库 [name]","formatEN":"update database [name]"} +// @x-panel-log {"bodyKeys":["name"],"paramKeys":[],"BeforeFunctions":[],"formatZH":"更新远程数据库 [name]","formatEN":"update database [name]"} func (b *BaseApi) UpdateDatabase(c *gin.Context) { var req dto.DatabaseUpdate if err := c.ShouldBindJSON(&req); err != nil { diff --git a/backend/app/api/v1/database_mysql.go b/backend/app/api/v1/database_mysql.go index ff2853db5..fec2b8a9d 100644 --- a/backend/app/api/v1/database_mysql.go +++ b/backend/app/api/v1/database_mysql.go @@ -19,7 +19,7 @@ import ( // @Success 200 // @Security ApiKeyAuth // @Router /databases [post] -// @x-panel-log {"bodyKeys":["name"],"paramKeys":[],"BeforeFuntions":[],"formatZH":"创建 mysql 数据库 [name]","formatEN":"create mysql database [name]"} +// @x-panel-log {"bodyKeys":["name"],"paramKeys":[],"BeforeFunctions":[],"formatZH":"创建 mysql 数据库 [name]","formatEN":"create mysql database [name]"} func (b *BaseApi) CreateMysql(c *gin.Context) { var req dto.MysqlDBCreate if err := c.ShouldBindJSON(&req); err != nil { @@ -54,7 +54,7 @@ func (b *BaseApi) CreateMysql(c *gin.Context) { // @Success 200 // @Security ApiKeyAuth // @Router /databases/description/update [post] -// @x-panel-log {"bodyKeys":["id","description"],"paramKeys":[],"BeforeFuntions":[{"input_column":"id","input_value":"id","isList":false,"db":"database_mysqls","output_column":"name","output_value":"name"}],"formatZH":"mysql 数据库 [name] 描述信息修改 [description]","formatEN":"The description of the mysql database [name] is modified => [description]"} +// @x-panel-log {"bodyKeys":["id","description"],"paramKeys":[],"BeforeFunctions":[{"input_column":"id","input_value":"id","isList":false,"db":"database_mysqls","output_column":"name","output_value":"name"}],"formatZH":"mysql 数据库 [name] 描述信息修改 [description]","formatEN":"The description of the mysql database [name] is modified => [description]"} func (b *BaseApi) UpdateMysqlDescription(c *gin.Context) { var req dto.UpdateDescription if err := c.ShouldBindJSON(&req); err != nil { @@ -80,7 +80,7 @@ func (b *BaseApi) UpdateMysqlDescription(c *gin.Context) { // @Success 200 // @Security ApiKeyAuth // @Router /databases/change/password [post] -// @x-panel-log {"bodyKeys":["id"],"paramKeys":[],"BeforeFuntions":[{"input_column":"id","input_value":"id","isList":false,"db":"database_mysqls","output_column":"name","output_value":"name"}],"formatZH":"更新数据库 [name] 密码","formatEN":"Update database [name] password"} +// @x-panel-log {"bodyKeys":["id"],"paramKeys":[],"BeforeFunctions":[{"input_column":"id","input_value":"id","isList":false,"db":"database_mysqls","output_column":"name","output_value":"name"}],"formatZH":"更新数据库 [name] 密码","formatEN":"Update database [name] password"} func (b *BaseApi) ChangeMysqlPassword(c *gin.Context) { var req dto.ChangeDBInfo if err := c.ShouldBindJSON(&req); err != nil { @@ -115,7 +115,7 @@ func (b *BaseApi) ChangeMysqlPassword(c *gin.Context) { // @Success 200 // @Security ApiKeyAuth // @Router /databases/change/access [post] -// @x-panel-log {"bodyKeys":["id"],"paramKeys":[],"BeforeFuntions":[{"input_column":"id","input_value":"id","isList":false,"db":"database_mysqls","output_column":"name","output_value":"name"}],"formatZH":"更新数据库 [name] 访问权限","formatEN":"Update database [name] access"} +// @x-panel-log {"bodyKeys":["id"],"paramKeys":[],"BeforeFunctions":[{"input_column":"id","input_value":"id","isList":false,"db":"database_mysqls","output_column":"name","output_value":"name"}],"formatZH":"更新数据库 [name] 访问权限","formatEN":"Update database [name] access"} func (b *BaseApi) ChangeMysqlAccess(c *gin.Context) { var req dto.ChangeDBInfo if err := c.ShouldBindJSON(&req); err != nil { @@ -141,7 +141,7 @@ func (b *BaseApi) ChangeMysqlAccess(c *gin.Context) { // @Success 200 // @Security ApiKeyAuth // @Router /databases/variables/update [post] -// @x-panel-log {"bodyKeys":[],"paramKeys":[],"BeforeFuntions":[],"formatZH":"调整 mysql 数据库性能参数","formatEN":"adjust mysql database performance parameters"} +// @x-panel-log {"bodyKeys":[],"paramKeys":[],"BeforeFunctions":[],"formatZH":"调整 mysql 数据库性能参数","formatEN":"adjust mysql database performance parameters"} func (b *BaseApi) UpdateMysqlVariables(c *gin.Context) { var req dto.MysqlVariablesUpdate if err := c.ShouldBindJSON(&req); err != nil { @@ -164,7 +164,7 @@ func (b *BaseApi) UpdateMysqlVariables(c *gin.Context) { // @Success 200 // @Security ApiKeyAuth // @Router /databases/conffile/update [post] -// @x-panel-log {"bodyKeys":[],"paramKeys":[],"BeforeFuntions":[],"formatZH":"更新 mysql 数据库配置信息","formatEN":"update the mysql database configuration information"} +// @x-panel-log {"bodyKeys":[],"paramKeys":[],"BeforeFunctions":[],"formatZH":"更新 mysql 数据库配置信息","formatEN":"update the mysql database configuration information"} func (b *BaseApi) UpdateMysqlConfByFile(c *gin.Context) { var req dto.MysqlConfUpdateByFile if err := c.ShouldBindJSON(&req); err != nil { @@ -289,7 +289,7 @@ func (b *BaseApi) DeleteCheckMysql(c *gin.Context) { // @Success 200 // @Security ApiKeyAuth // @Router /databases/del [post] -// @x-panel-log {"bodyKeys":["id"],"paramKeys":[],"BeforeFuntions":[{"input_column":"id","input_value":"id","isList":false,"db":"database_mysqls","output_column":"name","output_value":"name"}],"formatZH":"删除 mysql 数据库 [name]","formatEN":"delete mysql database [name]"} +// @x-panel-log {"bodyKeys":["id"],"paramKeys":[],"BeforeFunctions":[{"input_column":"id","input_value":"id","isList":false,"db":"database_mysqls","output_column":"name","output_value":"name"}],"formatZH":"删除 mysql 数据库 [name]","formatEN":"delete mysql database [name]"} func (b *BaseApi) DeleteMysql(c *gin.Context) { var req dto.MysqlDBDelete if err := c.ShouldBindJSON(&req); err != nil { diff --git a/backend/app/api/v1/database_redis.go b/backend/app/api/v1/database_redis.go index 076b00855..bd9c90fbe 100644 --- a/backend/app/api/v1/database_redis.go +++ b/backend/app/api/v1/database_redis.go @@ -70,7 +70,7 @@ func (b *BaseApi) LoadPersistenceConf(c *gin.Context) { // @Success 200 // @Security ApiKeyAuth // @Router /databases/redis/conf/update [post] -// @x-panel-log {"bodyKeys":[],"paramKeys":[],"BeforeFuntions":[],"formatZH":"更新 redis 数据库配置信息","formatEN":"update the redis database configuration information"} +// @x-panel-log {"bodyKeys":[],"paramKeys":[],"BeforeFunctions":[],"formatZH":"更新 redis 数据库配置信息","formatEN":"update the redis database configuration information"} func (b *BaseApi) UpdateRedisConf(c *gin.Context) { var req dto.RedisConfUpdate if err := c.ShouldBindJSON(&req); err != nil { @@ -96,7 +96,7 @@ func (b *BaseApi) UpdateRedisConf(c *gin.Context) { // @Success 200 // @Security ApiKeyAuth // @Router /databases/redis/password [post] -// @x-panel-log {"bodyKeys":[],"paramKeys":[],"BeforeFuntions":[],"formatZH":"修改 redis 数据库密码","formatEN":"change the password of the redis database"} +// @x-panel-log {"bodyKeys":[],"paramKeys":[],"BeforeFunctions":[],"formatZH":"修改 redis 数据库密码","formatEN":"change the password of the redis database"} func (b *BaseApi) ChangeRedisPassword(c *gin.Context) { var req dto.ChangeRedisPass if err := c.ShouldBindJSON(&req); err != nil { @@ -131,7 +131,7 @@ func (b *BaseApi) ChangeRedisPassword(c *gin.Context) { // @Success 200 // @Security ApiKeyAuth // @Router /databases/redis/persistence/update [post] -// @x-panel-log {"bodyKeys":[],"paramKeys":[],"BeforeFuntions":[],"formatZH":"redis 数据库持久化配置更新","formatEN":"redis database persistence configuration update"} +// @x-panel-log {"bodyKeys":[],"paramKeys":[],"BeforeFunctions":[],"formatZH":"redis 数据库持久化配置更新","formatEN":"redis database persistence configuration update"} func (b *BaseApi) UpdateRedisPersistenceConf(c *gin.Context) { var req dto.RedisConfPersistenceUpdate if err := c.ShouldBindJSON(&req); err != nil { @@ -184,7 +184,7 @@ func (b *BaseApi) RedisBackupList(c *gin.Context) { // @Success 200 // @Security ApiKeyAuth // @Router /databases/redis/conffile/update [post] -// @x-panel-log {"bodyKeys":[],"paramKeys":[],"BeforeFuntions":[],"formatZH":"更新 redis 数据库配置信息","formatEN":"update the redis database configuration information"} +// @x-panel-log {"bodyKeys":[],"paramKeys":[],"BeforeFunctions":[],"formatZH":"更新 redis 数据库配置信息","formatEN":"update the redis database configuration information"} func (b *BaseApi) UpdateRedisConfByFile(c *gin.Context) { var req dto.RedisConfUpdateByFile if err := c.ShouldBindJSON(&req); err != nil { diff --git a/backend/app/api/v1/docker.go b/backend/app/api/v1/docker.go index bfe75389d..5d5cfdf89 100644 --- a/backend/app/api/v1/docker.go +++ b/backend/app/api/v1/docker.go @@ -62,7 +62,7 @@ func (b *BaseApi) LoadDaemonJson(c *gin.Context) { // @Success 200 // @Security ApiKeyAuth // @Router /containers/daemonjson/update [post] -// @x-panel-log {"bodyKeys":["key", "value"],"paramKeys":[],"BeforeFuntions":[],"formatZH":"更新 docker daemon.json 配置 [key]=>[value]","formatEN":"Updated the docker daemon.json configuration [key]=>[value]"} +// @x-panel-log {"bodyKeys":["key", "value"],"paramKeys":[],"BeforeFunctions":[],"formatZH":"更新 docker daemon.json 配置 [key]=>[value]","formatEN":"Updated the docker daemon.json configuration [key]=>[value]"} func (b *BaseApi) UpdateDaemonJson(c *gin.Context) { var req dto.SettingUpdate if err := c.ShouldBindJSON(&req); err != nil { @@ -86,7 +86,7 @@ func (b *BaseApi) UpdateDaemonJson(c *gin.Context) { // @Success 200 // @Security ApiKeyAuth // @Router /containers/daemonjson/update [post] -// @x-panel-log {"bodyKeys":[],"paramKeys":[],"BeforeFuntions":[],"formatZH":"更新 docker daemon.json 日志配置","formatEN":"Updated the docker daemon.json log option"} +// @x-panel-log {"bodyKeys":[],"paramKeys":[],"BeforeFunctions":[],"formatZH":"更新 docker daemon.json 日志配置","formatEN":"Updated the docker daemon.json log option"} func (b *BaseApi) UpdateLogOption(c *gin.Context) { var req dto.LogOption if err := c.ShouldBindJSON(&req); err != nil { @@ -110,7 +110,7 @@ func (b *BaseApi) UpdateLogOption(c *gin.Context) { // @Success 200 // @Security ApiKeyAuth // @Router /containers/daemonjson/update/byfile [post] -// @x-panel-log {"bodyKeys":[],"paramKeys":[],"BeforeFuntions":[],"formatZH":"更新 docker daemon.json 配置","formatEN":"Updated the docker daemon.json configuration"} +// @x-panel-log {"bodyKeys":[],"paramKeys":[],"BeforeFunctions":[],"formatZH":"更新 docker daemon.json 配置","formatEN":"Updated the docker daemon.json configuration"} func (b *BaseApi) UpdateDaemonJsonByFile(c *gin.Context) { var req dto.DaemonJsonUpdateByFile if err := c.ShouldBindJSON(&req); err != nil { @@ -138,7 +138,7 @@ func (b *BaseApi) UpdateDaemonJsonByFile(c *gin.Context) { // @Success 200 // @Security ApiKeyAuth // @Router /containers/docker/operate [post] -// @x-panel-log {"bodyKeys":["operation"],"paramKeys":[],"BeforeFuntions":[],"formatZH":"docker 服务 [operation]","formatEN":"[operation] docker service"} +// @x-panel-log {"bodyKeys":["operation"],"paramKeys":[],"BeforeFunctions":[],"formatZH":"docker 服务 [operation]","formatEN":"[operation] docker service"} func (b *BaseApi) OperateDocker(c *gin.Context) { var req dto.DockerOperation if err := c.ShouldBindJSON(&req); err != nil { diff --git a/backend/app/api/v1/file.go b/backend/app/api/v1/file.go index 20a234291..aaa5a320a 100644 --- a/backend/app/api/v1/file.go +++ b/backend/app/api/v1/file.go @@ -106,7 +106,7 @@ func (b *BaseApi) GetFileTree(c *gin.Context) { // @Success 200 // @Security ApiKeyAuth // @Router /files [post] -// @x-panel-log {"bodyKeys":["path"],"paramKeys":[],"BeforeFuntions":[],"formatZH":"创建文件/文件夹 [path]","formatEN":"Create dir or file [path]"} +// @x-panel-log {"bodyKeys":["path"],"paramKeys":[],"BeforeFunctions":[],"formatZH":"创建文件/文件夹 [path]","formatEN":"Create dir or file [path]"} func (b *BaseApi) CreateFile(c *gin.Context) { var req request.FileCreate if err := c.ShouldBindJSON(&req); err != nil { @@ -129,7 +129,7 @@ func (b *BaseApi) CreateFile(c *gin.Context) { // @Success 200 // @Security ApiKeyAuth // @Router /files/del [post] -// @x-panel-log {"bodyKeys":["path"],"paramKeys":[],"BeforeFuntions":[],"formatZH":"删除文件/文件夹 [path]","formatEN":"Delete dir or file [path]"} +// @x-panel-log {"bodyKeys":["path"],"paramKeys":[],"BeforeFunctions":[],"formatZH":"删除文件/文件夹 [path]","formatEN":"Delete dir or file [path]"} func (b *BaseApi) DeleteFile(c *gin.Context) { var req request.FileDelete if err := c.ShouldBindJSON(&req); err != nil { @@ -152,7 +152,7 @@ func (b *BaseApi) DeleteFile(c *gin.Context) { // @Success 200 // @Security ApiKeyAuth // @Router /files/batch/del [post] -// @x-panel-log {"bodyKeys":["paths"],"paramKeys":[],"BeforeFuntions":[],"formatZH":"批量删除文件/文件夹 [paths]","formatEN":"Batch delete dir or file [paths]"} +// @x-panel-log {"bodyKeys":["paths"],"paramKeys":[],"BeforeFunctions":[],"formatZH":"批量删除文件/文件夹 [paths]","formatEN":"Batch delete dir or file [paths]"} func (b *BaseApi) BatchDeleteFile(c *gin.Context) { var req request.FileBatchDelete if err := c.ShouldBindJSON(&req); err != nil { @@ -175,7 +175,7 @@ func (b *BaseApi) BatchDeleteFile(c *gin.Context) { // @Success 200 // @Security ApiKeyAuth // @Router /files/mode [post] -// @x-panel-log {"bodyKeys":["path","mode"],"paramKeys":[],"BeforeFuntions":[],"formatZH":"修改权限 [paths] => [mode]","formatEN":"Change mode [paths] => [mode]"} +// @x-panel-log {"bodyKeys":["path","mode"],"paramKeys":[],"BeforeFunctions":[],"formatZH":"修改权限 [paths] => [mode]","formatEN":"Change mode [paths] => [mode]"} func (b *BaseApi) ChangeFileMode(c *gin.Context) { var req request.FileCreate if err := c.ShouldBindJSON(&req); err != nil { @@ -198,7 +198,7 @@ func (b *BaseApi) ChangeFileMode(c *gin.Context) { // @Success 200 // @Security ApiKeyAuth // @Router /files/owner [post] -// @x-panel-log {"bodyKeys":["path","user","group"],"paramKeys":[],"BeforeFuntions":[],"formatZH":"修改用户/组 [paths] => [user]/[group]","formatEN":"Change owner [paths] => [user]/[group]"} +// @x-panel-log {"bodyKeys":["path","user","group"],"paramKeys":[],"BeforeFunctions":[],"formatZH":"修改用户/组 [paths] => [user]/[group]","formatEN":"Change owner [paths] => [user]/[group]"} func (b *BaseApi) ChangeFileOwner(c *gin.Context) { var req request.FileRoleUpdate if err := c.ShouldBindJSON(&req); err != nil { @@ -220,7 +220,7 @@ func (b *BaseApi) ChangeFileOwner(c *gin.Context) { // @Success 200 // @Security ApiKeyAuth // @Router /files/compress [post] -// @x-panel-log {"bodyKeys":["name"],"paramKeys":[],"BeforeFuntions":[],"formatZH":"压缩文件 [name]","formatEN":"Compress file [name]"} +// @x-panel-log {"bodyKeys":["name"],"paramKeys":[],"BeforeFunctions":[],"formatZH":"压缩文件 [name]","formatEN":"Compress file [name]"} func (b *BaseApi) CompressFile(c *gin.Context) { var req request.FileCompress if err := c.ShouldBindJSON(&req); err != nil { @@ -243,7 +243,7 @@ func (b *BaseApi) CompressFile(c *gin.Context) { // @Success 200 // @Security ApiKeyAuth // @Router /files/decompress [post] -// @x-panel-log {"bodyKeys":["path"],"paramKeys":[],"BeforeFuntions":[],"formatZH":"解压 [path]","formatEN":"Decompress file [path]"} +// @x-panel-log {"bodyKeys":["path"],"paramKeys":[],"BeforeFunctions":[],"formatZH":"解压 [path]","formatEN":"Decompress file [path]"} func (b *BaseApi) DeCompressFile(c *gin.Context) { var req request.FileDeCompress if err := c.ShouldBindJSON(&req); err != nil { @@ -266,7 +266,7 @@ func (b *BaseApi) DeCompressFile(c *gin.Context) { // @Success 200 {object} response.FileInfo // @Security ApiKeyAuth // @Router /files/content [post] -// @x-panel-log {"bodyKeys":["path"],"paramKeys":[],"BeforeFuntions":[],"formatZH":"获取文件内容 [path]","formatEN":"Load file content [path]"} +// @x-panel-log {"bodyKeys":["path"],"paramKeys":[],"BeforeFunctions":[],"formatZH":"获取文件内容 [path]","formatEN":"Load file content [path]"} func (b *BaseApi) GetContent(c *gin.Context) { var req request.FileOption if err := c.ShouldBindJSON(&req); err != nil { @@ -289,7 +289,7 @@ func (b *BaseApi) GetContent(c *gin.Context) { // @Success 200 // @Security ApiKeyAuth // @Router /files/save [post] -// @x-panel-log {"bodyKeys":["path"],"paramKeys":[],"BeforeFuntions":[],"formatZH":"更新文件内容 [path]","formatEN":"Update file content [path]"} +// @x-panel-log {"bodyKeys":["path"],"paramKeys":[],"BeforeFunctions":[],"formatZH":"更新文件内容 [path]","formatEN":"Update file content [path]"} func (b *BaseApi) SaveContent(c *gin.Context) { var req request.FileEdit if err := c.ShouldBindJSON(&req); err != nil { @@ -310,7 +310,7 @@ func (b *BaseApi) SaveContent(c *gin.Context) { // @Success 200 // @Security ApiKeyAuth // @Router /files/upload [post] -// @x-panel-log {"bodyKeys":["path"],"paramKeys":[],"BeforeFuntions":[],"formatZH":"上传文件 [path]","formatEN":"Upload file [path]"} +// @x-panel-log {"bodyKeys":["path"],"paramKeys":[],"BeforeFunctions":[],"formatZH":"上传文件 [path]","formatEN":"Upload file [path]"} func (b *BaseApi) UploadFiles(c *gin.Context) { form, err := c.MultipartForm() if err != nil { @@ -356,7 +356,7 @@ func (b *BaseApi) UploadFiles(c *gin.Context) { // @Success 200 // @Security ApiKeyAuth // @Router /files/check [post] -// @x-panel-log {"bodyKeys":["path"],"paramKeys":[],"BeforeFuntions":[],"formatZH":"检测文件 [path] 是否存在","formatEN":"Check whether file [path] exists"} +// @x-panel-log {"bodyKeys":["path"],"paramKeys":[],"BeforeFunctions":[],"formatZH":"检测文件 [path] 是否存在","formatEN":"Check whether file [path] exists"} func (b *BaseApi) CheckFile(c *gin.Context) { var req request.FilePathCheck if err := c.ShouldBindJSON(&req); err != nil { @@ -384,7 +384,7 @@ func (b *BaseApi) CheckFile(c *gin.Context) { // @Success 200 // @Security ApiKeyAuth // @Router /files/rename [post] -// @x-panel-log {"bodyKeys":["oldName","newName"],"paramKeys":[],"BeforeFuntions":[],"formatZH":"重命名 [oldName] => [newName]","formatEN":"Rename [oldName] => [newName]"} +// @x-panel-log {"bodyKeys":["oldName","newName"],"paramKeys":[],"BeforeFunctions":[],"formatZH":"重命名 [oldName] => [newName]","formatEN":"Rename [oldName] => [newName]"} func (b *BaseApi) ChangeFileName(c *gin.Context) { var req request.FileRename if err := c.ShouldBindJSON(&req); err != nil { @@ -406,7 +406,7 @@ func (b *BaseApi) ChangeFileName(c *gin.Context) { // @Success 200 // @Security ApiKeyAuth // @Router /files/wget [post] -// @x-panel-log {"bodyKeys":["url","path","name"],"paramKeys":[],"BeforeFuntions":[],"formatZH":"下载 url => [path]/[name]","formatEN":"Download url => [path]/[name]"} +// @x-panel-log {"bodyKeys":["url","path","name"],"paramKeys":[],"BeforeFunctions":[],"formatZH":"下载 url => [path]/[name]","formatEN":"Download url => [path]/[name]"} func (b *BaseApi) WgetFile(c *gin.Context) { var req request.FileWget if err := c.ShouldBindJSON(&req); err != nil { @@ -431,7 +431,7 @@ func (b *BaseApi) WgetFile(c *gin.Context) { // @Success 200 // @Security ApiKeyAuth // @Router /files/move [post] -// @x-panel-log {"bodyKeys":["oldPaths","newPath"],"paramKeys":[],"BeforeFuntions":[],"formatZH":"移动文件 [oldPaths] => [newPath]","formatEN":"Move [oldPaths] => [newPath]"} +// @x-panel-log {"bodyKeys":["oldPaths","newPath"],"paramKeys":[],"BeforeFunctions":[],"formatZH":"移动文件 [oldPaths] => [newPath]","formatEN":"Move [oldPaths] => [newPath]"} func (b *BaseApi) MoveFile(c *gin.Context) { var req request.FileMove if err := c.ShouldBindJSON(&req); err != nil { @@ -453,7 +453,7 @@ func (b *BaseApi) MoveFile(c *gin.Context) { // @Success 200 // @Security ApiKeyAuth // @Router /files/download [post] -// @x-panel-log {"bodyKeys":["name"],"paramKeys":[],"BeforeFuntions":[],"formatZH":"下载文件 [name]","formatEN":"Download file [name]"} +// @x-panel-log {"bodyKeys":["name"],"paramKeys":[],"BeforeFunctions":[],"formatZH":"下载文件 [name]","formatEN":"Download file [name]"} func (b *BaseApi) Download(c *gin.Context) { filePath := c.Query("path") file, err := os.Open(filePath) @@ -474,7 +474,7 @@ func (b *BaseApi) Download(c *gin.Context) { // @Success 200 // @Security ApiKeyAuth // @Router /files/chunkdownload [post] -// @x-panel-log {"bodyKeys":["name"],"paramKeys":[],"BeforeFuntions":[],"formatZH":"下载文件 [name]","formatEN":"Download file [name]"} +// @x-panel-log {"bodyKeys":["name"],"paramKeys":[],"BeforeFunctions":[],"formatZH":"下载文件 [name]","formatEN":"Download file [name]"} func (b *BaseApi) DownloadChunkFiles(c *gin.Context) { var req request.FileChunkDownload if err := c.ShouldBindJSON(&req); err != nil { @@ -552,7 +552,7 @@ func (b *BaseApi) DownloadChunkFiles(c *gin.Context) { // @Success 200 // @Security ApiKeyAuth // @Router /files/size [post] -// @x-panel-log {"bodyKeys":["path"],"paramKeys":[],"BeforeFuntions":[],"formatZH":"获取文件夹大小 [path]","formatEN":"Load file size [path]"} +// @x-panel-log {"bodyKeys":["path"],"paramKeys":[],"BeforeFunctions":[],"formatZH":"获取文件夹大小 [path]","formatEN":"Load file size [path]"} func (b *BaseApi) Size(c *gin.Context) { var req request.DirSizeReq if err := c.ShouldBindJSON(&req); err != nil { diff --git a/backend/app/api/v1/firewall.go b/backend/app/api/v1/firewall.go index 26afe9c8f..d455bae89 100644 --- a/backend/app/api/v1/firewall.go +++ b/backend/app/api/v1/firewall.go @@ -63,7 +63,7 @@ func (b *BaseApi) SearchFirewallRule(c *gin.Context) { // @Success 200 {object} dto.PageResult // @Security ApiKeyAuth // @Router /hosts/firewall/operate [post] -// @x-panel-log {"bodyKeys":["operation"],"paramKeys":[],"BeforeFuntions":[],"formatZH":"[operation] 防火墙","formatEN":"[operation] firewall"} +// @x-panel-log {"bodyKeys":["operation"],"paramKeys":[],"BeforeFunctions":[],"formatZH":"[operation] 防火墙","formatEN":"[operation] firewall"} func (b *BaseApi) OperateFirewall(c *gin.Context) { var req dto.FirewallOperation if err := c.ShouldBindJSON(&req); err != nil { @@ -91,7 +91,7 @@ func (b *BaseApi) OperateFirewall(c *gin.Context) { // @Success 200 // @Security ApiKeyAuth // @Router /hosts/firewall/port [post] -// @x-panel-log {"bodyKeys":["port","strategy"],"paramKeys":[],"BeforeFuntions":[],"formatZH":"添加端口规则 [strategy] [port]","formatEN":"create port rules [strategy][port]"} +// @x-panel-log {"bodyKeys":["port","strategy"],"paramKeys":[],"BeforeFunctions":[],"formatZH":"添加端口规则 [strategy] [port]","formatEN":"create port rules [strategy][port]"} func (b *BaseApi) OperatePortRule(c *gin.Context) { var req dto.PortRuleOperate if err := c.ShouldBindJSON(&req); err != nil { @@ -117,7 +117,7 @@ func (b *BaseApi) OperatePortRule(c *gin.Context) { // @Success 200 // @Security ApiKeyAuth // @Router /hosts/firewall/ip [post] -// @x-panel-log {"bodyKeys":["strategy","address"],"paramKeys":[],"BeforeFuntions":[],"formatZH":"添加 ip 规则 [strategy] [address]","formatEN":"create address rules [strategy][address]"} +// @x-panel-log {"bodyKeys":["strategy","address"],"paramKeys":[],"BeforeFunctions":[],"formatZH":"添加 ip 规则 [strategy] [address]","formatEN":"create address rules [strategy][address]"} func (b *BaseApi) OperateIPRule(c *gin.Context) { var req dto.AddrRuleOperate if err := c.ShouldBindJSON(&req); err != nil { diff --git a/backend/app/api/v1/group.go b/backend/app/api/v1/group.go index 62c2a6033..36ab9f4a1 100644 --- a/backend/app/api/v1/group.go +++ b/backend/app/api/v1/group.go @@ -16,7 +16,7 @@ import ( // @Success 200 // @Security ApiKeyAuth // @Router /groups [post] -// @x-panel-log {"bodyKeys":["name","type"],"paramKeys":[],"BeforeFuntions":[],"formatZH":"创建组 [name][type]","formatEN":"create group [name][type]"} +// @x-panel-log {"bodyKeys":["name","type"],"paramKeys":[],"BeforeFunctions":[],"formatZH":"创建组 [name][type]","formatEN":"create group [name][type]"} func (b *BaseApi) CreateGroup(c *gin.Context) { var req dto.GroupCreate if err := c.ShouldBindJSON(&req); err != nil { @@ -42,7 +42,7 @@ func (b *BaseApi) CreateGroup(c *gin.Context) { // @Success 200 // @Security ApiKeyAuth // @Router /groups/del [post] -// @x-panel-log {"bodyKeys":["id"],"paramKeys":[],"BeforeFuntions":[{"input_column":"id","input_value":"id","isList":false,"db":"groups","output_column":"name","output_value":"name"},{"input_column":"id","input_value":"id","isList":false,"db":"groups","output_column":"type","output_value":"type"}],"formatZH":"删除组 [type][name]","formatEN":"delete group [type][name]"} +// @x-panel-log {"bodyKeys":["id"],"paramKeys":[],"BeforeFunctions":[{"input_column":"id","input_value":"id","isList":false,"db":"groups","output_column":"name","output_value":"name"},{"input_column":"id","input_value":"id","isList":false,"db":"groups","output_column":"type","output_value":"type"}],"formatZH":"删除组 [type][name]","formatEN":"delete group [type][name]"} func (b *BaseApi) DeleteGroup(c *gin.Context) { var req dto.OperateByID if err := c.ShouldBindJSON(&req); err != nil { @@ -69,7 +69,7 @@ func (b *BaseApi) DeleteGroup(c *gin.Context) { // @Success 200 // @Security ApiKeyAuth // @Router /groups/update [post] -// @x-panel-log {"bodyKeys":["name","type"],"paramKeys":[],"BeforeFuntions":[],"formatZH":"更新组 [name][type]","formatEN":"update group [name][type]"} +// @x-panel-log {"bodyKeys":["name","type"],"paramKeys":[],"BeforeFunctions":[],"formatZH":"更新组 [name][type]","formatEN":"update group [name][type]"} func (b *BaseApi) UpdateGroup(c *gin.Context) { var req dto.GroupUpdate if err := c.ShouldBindJSON(&req); err != nil { diff --git a/backend/app/api/v1/host.go b/backend/app/api/v1/host.go index c248abf56..b033e2912 100644 --- a/backend/app/api/v1/host.go +++ b/backend/app/api/v1/host.go @@ -17,7 +17,7 @@ import ( // @Success 200 // @Security ApiKeyAuth // @Router /hosts [post] -// @x-panel-log {"bodyKeys":["name","addr"],"paramKeys":[],"BeforeFuntions":[],"formatZH":"创建主机 [name][addr]","formatEN":"create host [name][addr]"} +// @x-panel-log {"bodyKeys":["name","addr"],"paramKeys":[],"BeforeFunctions":[],"formatZH":"创建主机 [name][addr]","formatEN":"create host [name][addr]"} func (b *BaseApi) CreateHost(c *gin.Context) { var req dto.HostOperate if err := c.ShouldBindJSON(&req); err != nil { @@ -138,7 +138,7 @@ func (b *BaseApi) SearchHost(c *gin.Context) { // @Success 200 // @Security ApiKeyAuth // @Router /hosts/del [post] -// @x-panel-log {"bodyKeys":["ids"],"paramKeys":[],"BeforeFuntions":[{"input_column":"id","input_value":"ids","isList":true,"db":"hosts","output_column":"addr","output_value":"addrs"}],"formatZH":"删除主机 [addrs]","formatEN":"delete host [addrs]"} +// @x-panel-log {"bodyKeys":["ids"],"paramKeys":[],"BeforeFunctions":[{"input_column":"id","input_value":"ids","isList":true,"db":"hosts","output_column":"addr","output_value":"addrs"}],"formatZH":"删除主机 [addrs]","formatEN":"delete host [addrs]"} func (b *BaseApi) DeleteHost(c *gin.Context) { var req dto.BatchDeleteReq if err := c.ShouldBindJSON(&req); err != nil { @@ -165,7 +165,7 @@ func (b *BaseApi) DeleteHost(c *gin.Context) { // @Success 200 // @Security ApiKeyAuth // @Router /hosts/update [post] -// @x-panel-log {"bodyKeys":["name","addr"],"paramKeys":[],"BeforeFuntions":[],"formatZH":"更新主机信息 [name][addr]","formatEN":"update host [name][addr]"} +// @x-panel-log {"bodyKeys":["name","addr"],"paramKeys":[],"BeforeFunctions":[],"formatZH":"更新主机信息 [name][addr]","formatEN":"update host [name][addr]"} func (b *BaseApi) UpdateHost(c *gin.Context) { var req dto.HostOperate if err := c.ShouldBindJSON(&req); err != nil { @@ -235,7 +235,7 @@ func (b *BaseApi) UpdateHost(c *gin.Context) { // @Success 200 // @Security ApiKeyAuth // @Router /hosts/update/group [post] -// @x-panel-log {"bodyKeys":["id","group"],"paramKeys":[],"BeforeFuntions":[{"input_column":"id","input_value":"id","isList":false,"db":"hosts","output_column":"addr","output_value":"addr"}],"formatZH":"切换主机[addr]分组 => [group]","formatEN":"change host [addr] group => [group]"} +// @x-panel-log {"bodyKeys":["id","group"],"paramKeys":[],"BeforeFunctions":[{"input_column":"id","input_value":"id","isList":false,"db":"hosts","output_column":"addr","output_value":"addr"}],"formatZH":"切换主机[addr]分组 => [group]","formatEN":"change host [addr] group => [group]"} func (b *BaseApi) UpdateHostGroup(c *gin.Context) { var req dto.ChangeHostGroup if err := c.ShouldBindJSON(&req); err != nil { diff --git a/backend/app/api/v1/host_tool.go b/backend/app/api/v1/host_tool.go index 6e55b70e2..cbfb236d4 100644 --- a/backend/app/api/v1/host_tool.go +++ b/backend/app/api/v1/host_tool.go @@ -43,7 +43,7 @@ func (b *BaseApi) GetToolStatus(c *gin.Context) { // @Success 200 // @Security ApiKeyAuth // @Router /host/tool/create [post] -// @x-panel-log {"bodyKeys":["type"],"paramKeys":[],"BeforeFuntions":[],"formatZH":"创建 [type] 配置","formatEN":"create [type] config"} +// @x-panel-log {"bodyKeys":["type"],"paramKeys":[],"BeforeFunctions":[],"formatZH":"创建 [type] 配置","formatEN":"create [type] config"} func (b *BaseApi) InitToolConfig(c *gin.Context) { var req request.HostToolCreate if err := c.ShouldBindJSON(&req); err != nil { @@ -70,7 +70,7 @@ func (b *BaseApi) InitToolConfig(c *gin.Context) { // @Success 200 // @Security ApiKeyAuth // @Router /host/tool/operate [post] -// @x-panel-log {"bodyKeys":["operate","type"],"paramKeys":[],"BeforeFuntions":[],"formatZH":"[operate] [type] ","formatEN":"[operate] [type]"} +// @x-panel-log {"bodyKeys":["operate","type"],"paramKeys":[],"BeforeFunctions":[],"formatZH":"[operate] [type] ","formatEN":"[operate] [type]"} func (b *BaseApi) OperateTool(c *gin.Context) { var req request.HostToolReq if err := c.ShouldBindJSON(&req); err != nil { @@ -98,7 +98,7 @@ func (b *BaseApi) OperateTool(c *gin.Context) { // @Success 200 // @Security ApiKeyAuth // @Router /host/tool/config [post] -// @x-panel-log {"bodyKeys":["operate"],"paramKeys":[],"BeforeFuntions":[],"formatZH":"[operate] 主机工具配置文件 ","formatEN":"[operate] tool config"} +// @x-panel-log {"bodyKeys":["operate"],"paramKeys":[],"BeforeFunctions":[],"formatZH":"[operate] 主机工具配置文件 ","formatEN":"[operate] tool config"} func (b *BaseApi) OperateToolConfig(c *gin.Context) { var req request.HostToolConfig if err := c.ShouldBindJSON(&req); err != nil { @@ -153,7 +153,7 @@ func (b *BaseApi) GetToolLog(c *gin.Context) { // @Success 200 // @Security ApiKeyAuth // @Router /host/tool/supervisor/process [post] -// @x-panel-log {"bodyKeys":["operate"],"paramKeys":[],"BeforeFuntions":[],"formatZH":"[operate] 守护进程 ","formatEN":"[operate] process"} +// @x-panel-log {"bodyKeys":["operate"],"paramKeys":[],"BeforeFunctions":[],"formatZH":"[operate] 守护进程 ","formatEN":"[operate] process"} func (b *BaseApi) OperateProcess(c *gin.Context) { var req request.SupervisorProcessConfig if err := c.ShouldBindJSON(&req); err != nil { @@ -197,7 +197,7 @@ func (b *BaseApi) GetProcess(c *gin.Context) { // @Success 200 // @Security ApiKeyAuth // @Router /host/tool/supervisor/process/file [post] -// @x-panel-log {"bodyKeys":["operate"],"paramKeys":[],"BeforeFuntions":[],"formatZH":"[operate] Supervisor 进程文件 ","formatEN":"[operate] Supervisor Process Config file"} +// @x-panel-log {"bodyKeys":["operate"],"paramKeys":[],"BeforeFunctions":[],"formatZH":"[operate] Supervisor 进程文件 ","formatEN":"[operate] Supervisor Process Config file"} func (b *BaseApi) GetProcessFile(c *gin.Context) { var req request.SupervisorProcessFileReq if err := c.ShouldBindJSON(&req); err != nil { diff --git a/backend/app/api/v1/image.go b/backend/app/api/v1/image.go index f69d57178..4980543a1 100644 --- a/backend/app/api/v1/image.go +++ b/backend/app/api/v1/image.go @@ -64,7 +64,7 @@ func (b *BaseApi) ListImage(c *gin.Context) { // @Success 200 {string} log // @Security ApiKeyAuth // @Router /containers/image/build [post] -// @x-panel-log {"bodyKeys":["name"],"paramKeys":[],"BeforeFuntions":[],"formatZH":"构建镜像 [name]","formatEN":"build image [name]"} +// @x-panel-log {"bodyKeys":["name"],"paramKeys":[],"BeforeFunctions":[],"formatZH":"构建镜像 [name]","formatEN":"build image [name]"} func (b *BaseApi) ImageBuild(c *gin.Context) { var req dto.ImageBuild if err := c.ShouldBindJSON(&req); err != nil { @@ -93,7 +93,7 @@ func (b *BaseApi) ImageBuild(c *gin.Context) { // @Success 200 {string} log // @Security ApiKeyAuth // @Router /containers/image/pull [post] -// @x-panel-log {"bodyKeys":["repoID","imageName"],"paramKeys":[],"BeforeFuntions":[{"input_column":"id","input_value":"repoID","isList":false,"db":"image_repos","output_column":"name","output_value":"reponame"}],"formatZH":"镜像拉取 [reponame][imageName]","formatEN":"image pull [reponame][imageName]"} +// @x-panel-log {"bodyKeys":["repoID","imageName"],"paramKeys":[],"BeforeFunctions":[{"input_column":"id","input_value":"repoID","isList":false,"db":"image_repos","output_column":"name","output_value":"reponame"}],"formatZH":"镜像拉取 [reponame][imageName]","formatEN":"image pull [reponame][imageName]"} func (b *BaseApi) ImagePull(c *gin.Context) { var req dto.ImagePull if err := c.ShouldBindJSON(&req); err != nil { @@ -122,7 +122,7 @@ func (b *BaseApi) ImagePull(c *gin.Context) { // @Success 200 {string} log // @Security ApiKeyAuth // @Router /containers/image/push [post] -// @x-panel-log {"bodyKeys":["repoID","tagName","name"],"paramKeys":[],"BeforeFuntions":[{"input_column":"id","input_value":"repoID","isList":false,"db":"image_repos","output_column":"name","output_value":"reponame"}],"formatZH":"[tagName] 推送到 [reponame][name]","formatEN":"push [tagName] to [reponame][name]"} +// @x-panel-log {"bodyKeys":["repoID","tagName","name"],"paramKeys":[],"BeforeFunctions":[{"input_column":"id","input_value":"repoID","isList":false,"db":"image_repos","output_column":"name","output_value":"reponame"}],"formatZH":"[tagName] 推送到 [reponame][name]","formatEN":"push [tagName] to [reponame][name]"} func (b *BaseApi) ImagePush(c *gin.Context) { var req dto.ImagePush if err := c.ShouldBindJSON(&req); err != nil { @@ -151,7 +151,7 @@ func (b *BaseApi) ImagePush(c *gin.Context) { // @Success 200 // @Security ApiKeyAuth // @Router /containers/image/remove [post] -// @x-panel-log {"bodyKeys":["names"],"paramKeys":[],"BeforeFuntions":[],"formatZH":"移除镜像 [names]","formatEN":"remove image [names]"} +// @x-panel-log {"bodyKeys":["names"],"paramKeys":[],"BeforeFunctions":[],"formatZH":"移除镜像 [names]","formatEN":"remove image [names]"} func (b *BaseApi) ImageRemove(c *gin.Context) { var req dto.BatchDelete if err := c.ShouldBindJSON(&req); err != nil { @@ -179,7 +179,7 @@ func (b *BaseApi) ImageRemove(c *gin.Context) { // @Success 200 // @Security ApiKeyAuth // @Router /containers/image/save [post] -// @x-panel-log {"bodyKeys":["tagName","path","name"],"paramKeys":[],"BeforeFuntions":[],"formatZH":"保留 [tagName] 为 [path]/[name]","formatEN":"save [tagName] as [path]/[name]"} +// @x-panel-log {"bodyKeys":["tagName","path","name"],"paramKeys":[],"BeforeFunctions":[],"formatZH":"保留 [tagName] 为 [path]/[name]","formatEN":"save [tagName] as [path]/[name]"} func (b *BaseApi) ImageSave(c *gin.Context) { var req dto.ImageSave if err := c.ShouldBindJSON(&req); err != nil { @@ -207,7 +207,7 @@ func (b *BaseApi) ImageSave(c *gin.Context) { // @Success 200 // @Security ApiKeyAuth // @Router /containers/image/tag [post] -// @x-panel-log {"bodyKeys":["repoID","targetName"],"paramKeys":[],"BeforeFuntions":[{"input_column":"id","input_value":"repoID","isList":false,"db":"image_repos","output_column":"name","output_value":"reponame"}],"formatZH":"tag 镜像 [reponame][targetName]","formatEN":"tag image [reponame][targetName]"} +// @x-panel-log {"bodyKeys":["repoID","targetName"],"paramKeys":[],"BeforeFunctions":[{"input_column":"id","input_value":"repoID","isList":false,"db":"image_repos","output_column":"name","output_value":"reponame"}],"formatZH":"tag 镜像 [reponame][targetName]","formatEN":"tag image [reponame][targetName]"} func (b *BaseApi) ImageTag(c *gin.Context) { var req dto.ImageTag if err := c.ShouldBindJSON(&req); err != nil { @@ -235,7 +235,7 @@ func (b *BaseApi) ImageTag(c *gin.Context) { // @Success 200 // @Security ApiKeyAuth // @Router /containers/image/load [post] -// @x-panel-log {"bodyKeys":["path"],"paramKeys":[],"BeforeFuntions":[],"formatZH":"从 [path] 加载镜像","formatEN":"load image from [path]"} +// @x-panel-log {"bodyKeys":["path"],"paramKeys":[],"BeforeFunctions":[],"formatZH":"从 [path] 加载镜像","formatEN":"load image from [path]"} func (b *BaseApi) ImageLoad(c *gin.Context) { var req dto.ImageLoad if err := c.ShouldBindJSON(&req); err != nil { diff --git a/backend/app/api/v1/image_repo.go b/backend/app/api/v1/image_repo.go index 6ec3819b8..f3e1a8537 100644 --- a/backend/app/api/v1/image_repo.go +++ b/backend/app/api/v1/image_repo.go @@ -92,7 +92,7 @@ func (b *BaseApi) CheckRepoStatus(c *gin.Context) { // @Success 200 // @Security ApiKeyAuth // @Router /containers/repo [post] -// @x-panel-log {"bodyKeys":["name"],"paramKeys":[],"BeforeFuntions":[],"formatZH":"创建镜像仓库 [name]","formatEN":"create image repo [name]"} +// @x-panel-log {"bodyKeys":["name"],"paramKeys":[],"BeforeFunctions":[],"formatZH":"创建镜像仓库 [name]","formatEN":"create image repo [name]"} func (b *BaseApi) CreateRepo(c *gin.Context) { var req dto.ImageRepoCreate if err := c.ShouldBindJSON(&req); err != nil { @@ -119,7 +119,7 @@ func (b *BaseApi) CreateRepo(c *gin.Context) { // @Success 200 // @Security ApiKeyAuth // @Router /containers/repo/del [post] -// @x-panel-log {"bodyKeys":["ids"],"paramKeys":[],"BeforeFuntions":[{"input_column":"id","input_value":"ids","isList":true,"db":"image_repos","output_column":"name","output_value":"names"}],"formatZH":"删除镜像仓库 [names]","formatEN":"delete image repo [names]"} +// @x-panel-log {"bodyKeys":["ids"],"paramKeys":[],"BeforeFunctions":[{"input_column":"id","input_value":"ids","isList":true,"db":"image_repos","output_column":"name","output_value":"names"}],"formatZH":"删除镜像仓库 [names]","formatEN":"delete image repo [names]"} func (b *BaseApi) DeleteRepo(c *gin.Context) { var req dto.ImageRepoDelete if err := c.ShouldBindJSON(&req); err != nil { @@ -147,7 +147,7 @@ func (b *BaseApi) DeleteRepo(c *gin.Context) { // @Success 200 // @Security ApiKeyAuth // @Router /containers/repo/update [post] -// @x-panel-log {"bodyKeys":["id"],"paramKeys":[],"BeforeFuntions":[{"input_column":"id","input_value":"id","isList":false,"db":"image_repos","output_column":"name","output_value":"name"}],"formatZH":"更新镜像仓库 [name]","formatEN":"update image repo information [name]"} +// @x-panel-log {"bodyKeys":["id"],"paramKeys":[],"BeforeFunctions":[{"input_column":"id","input_value":"id","isList":false,"db":"image_repos","output_column":"name","output_value":"name"}],"formatZH":"更新镜像仓库 [name]","formatEN":"update image repo information [name]"} func (b *BaseApi) UpdateRepo(c *gin.Context) { var req dto.ImageRepoUpdate if err := c.ShouldBindJSON(&req); err != nil { diff --git a/backend/app/api/v1/logs.go b/backend/app/api/v1/logs.go index 92a947b0f..1121d22ac 100644 --- a/backend/app/api/v1/logs.go +++ b/backend/app/api/v1/logs.go @@ -70,7 +70,7 @@ func (b *BaseApi) GetOperationLogs(c *gin.Context) { // @Success 200 {object} dto.PageResult // @Security ApiKeyAuth // @Router /logs/clean [post] -// @x-panel-log {"bodyKeys":["logType"],"paramKeys":[],"BeforeFuntions":[],"formatZH":"清空 [logType] 日志信息","formatEN":"Clean the [logType] log information"} +// @x-panel-log {"bodyKeys":["logType"],"paramKeys":[],"BeforeFunctions":[],"formatZH":"清空 [logType] 日志信息","formatEN":"Clean the [logType] log information"} func (b *BaseApi) CleanLogs(c *gin.Context) { var req dto.CleanLog if err := c.ShouldBindJSON(&req); err != nil { diff --git a/backend/app/api/v1/nginx.go b/backend/app/api/v1/nginx.go index d79e24f45..d20647016 100644 --- a/backend/app/api/v1/nginx.go +++ b/backend/app/api/v1/nginx.go @@ -53,7 +53,7 @@ func (b *BaseApi) GetNginxConfigByScope(c *gin.Context) { // @Success 200 // @Security ApiKeyAuth // @Router /openResty/update [post] -// @x-panel-log {"bodyKeys":["websiteId"],"paramKeys":[],"BeforeFuntions":[{"input_column":"id","input_value":"websiteId","isList":false,"db":"websites","output_column":"primary_domain","output_value":"domain"}],"formatZH":"更新 nginx 配置 [domain]","formatEN":"Update nginx conf [domain]"} +// @x-panel-log {"bodyKeys":["websiteId"],"paramKeys":[],"BeforeFunctions":[{"input_column":"id","input_value":"websiteId","isList":false,"db":"websites","output_column":"primary_domain","output_value":"domain"}],"formatZH":"更新 nginx 配置 [domain]","formatEN":"Update nginx conf [domain]"} func (b *BaseApi) UpdateNginxConfigByScope(c *gin.Context) { var req request.NginxConfigUpdate if err := c.ShouldBindJSON(&req); err != nil { @@ -90,7 +90,7 @@ func (b *BaseApi) GetNginxStatus(c *gin.Context) { // @Success 200 // @Security ApiKeyAuth // @Router /openResty/file [post] -// @x-panel-log {"bodyKeys":[],"paramKeys":[],"BeforeFuntions":[],"formatZH":"更新 nginx 配置","formatEN":"Update nginx conf"} +// @x-panel-log {"bodyKeys":[],"paramKeys":[],"BeforeFunctions":[],"formatZH":"更新 nginx 配置","formatEN":"Update nginx conf"} func (b *BaseApi) UpdateNginxFile(c *gin.Context) { var req request.NginxConfigFileUpdate if err := c.ShouldBindJSON(&req); err != nil { diff --git a/backend/app/api/v1/process.go b/backend/app/api/v1/process.go index 7961bf942..d5fcf2274 100644 --- a/backend/app/api/v1/process.go +++ b/backend/app/api/v1/process.go @@ -25,7 +25,7 @@ func (b *BaseApi) ProcessWs(c *gin.Context) { // @Success 200 // @Security ApiKeyAuth // @Router /process/stop [post] -// @x-panel-log {"bodyKeys":["PID"],"paramKeys":[],"BeforeFuntions":[],"formatZH":"结束进程 [PID]","formatEN":"结束进程 [PID]"} +// @x-panel-log {"bodyKeys":["PID"],"paramKeys":[],"BeforeFunctions":[],"formatZH":"结束进程 [PID]","formatEN":"结束进程 [PID]"} func (b *BaseApi) StopProcess(c *gin.Context) { var req request.ProcessReq if err := c.ShouldBindJSON(&req); err != nil { diff --git a/backend/app/api/v1/runtime.go b/backend/app/api/v1/runtime.go index 841b84391..4da4cd485 100644 --- a/backend/app/api/v1/runtime.go +++ b/backend/app/api/v1/runtime.go @@ -41,7 +41,7 @@ func (b *BaseApi) SearchRuntimes(c *gin.Context) { // @Success 200 // @Security ApiKeyAuth // @Router /runtimes [post] -// @x-panel-log {"bodyKeys":["name"],"paramKeys":[],"BeforeFuntions":[],"formatZH":"创建运行环境 [name]","formatEN":"Create runtime [name]"} +// @x-panel-log {"bodyKeys":["name"],"paramKeys":[],"BeforeFunctions":[],"formatZH":"创建运行环境 [name]","formatEN":"Create runtime [name]"} func (b *BaseApi) CreateRuntime(c *gin.Context) { var req request.RuntimeCreate if err := c.ShouldBindJSON(&req); err != nil { @@ -63,7 +63,7 @@ func (b *BaseApi) CreateRuntime(c *gin.Context) { // @Success 200 // @Security ApiKeyAuth // @Router /runtimes/del [post] -// @x-panel-log {"bodyKeys":["id"],"paramKeys":[],"BeforeFuntions":[],"formatZH":"删除网站 [name]","formatEN":"Delete website [name]"} +// @x-panel-log {"bodyKeys":["id"],"paramKeys":[],"BeforeFunctions":[],"formatZH":"删除网站 [name]","formatEN":"Delete website [name]"} func (b *BaseApi) DeleteRuntime(c *gin.Context) { var req request.RuntimeDelete if err := c.ShouldBindJSON(&req); err != nil { @@ -86,7 +86,7 @@ func (b *BaseApi) DeleteRuntime(c *gin.Context) { // @Success 200 // @Security ApiKeyAuth // @Router /runtimes/update [post] -// @x-panel-log {"bodyKeys":["name"],"paramKeys":[],"BeforeFuntions":[],"formatZH":"更新运行环境 [name]","formatEN":"Update runtime [name]"} +// @x-panel-log {"bodyKeys":["name"],"paramKeys":[],"BeforeFunctions":[],"formatZH":"更新运行环境 [name]","formatEN":"Update runtime [name]"} func (b *BaseApi) UpdateRuntime(c *gin.Context) { var req request.RuntimeUpdate if err := c.ShouldBindJSON(&req); err != nil { @@ -152,7 +152,7 @@ func (b *BaseApi) GetNodePackageRunScript(c *gin.Context) { // @Success 200 // @Security ApiKeyAuth // @Router /runtimes/operate [post] -// @x-panel-log {"bodyKeys":["id"],"paramKeys":[],"BeforeFuntions":[],"formatZH":"操作运行环境 [name]","formatEN":"Operate runtime [name]"} +// @x-panel-log {"bodyKeys":["id"],"paramKeys":[],"BeforeFunctions":[],"formatZH":"操作运行环境 [name]","formatEN":"Operate runtime [name]"} func (b *BaseApi) OperateRuntime(c *gin.Context) { var req request.RuntimeOperate if err := c.ShouldBindJSON(&req); err != nil { diff --git a/backend/app/api/v1/setting.go b/backend/app/api/v1/setting.go index ff447f952..767365dc3 100644 --- a/backend/app/api/v1/setting.go +++ b/backend/app/api/v1/setting.go @@ -46,7 +46,7 @@ func (b *BaseApi) GetSystemAvailable(c *gin.Context) { // @Success 200 // @Security ApiKeyAuth // @Router /settings/update [post] -// @x-panel-log {"bodyKeys":["key","value"],"paramKeys":[],"BeforeFuntions":[],"formatZH":"修改系统配置 [key] => [value]","formatEN":"update system setting [key] => [value]"} +// @x-panel-log {"bodyKeys":["key","value"],"paramKeys":[],"BeforeFunctions":[],"formatZH":"修改系统配置 [key] => [value]","formatEN":"update system setting [key] => [value]"} func (b *BaseApi) UpdateSetting(c *gin.Context) { var req dto.SettingUpdate if err := c.ShouldBindJSON(&req); err != nil { @@ -73,7 +73,7 @@ func (b *BaseApi) UpdateSetting(c *gin.Context) { // @Success 200 // @Security ApiKeyAuth // @Router /settings/password/update [post] -// @x-panel-log {"bodyKeys":[],"paramKeys":[],"BeforeFuntions":[],"formatZH":"修改系统密码","formatEN":"update system password"} +// @x-panel-log {"bodyKeys":[],"paramKeys":[],"BeforeFunctions":[],"formatZH":"修改系统密码","formatEN":"update system password"} func (b *BaseApi) UpdatePassword(c *gin.Context) { var req dto.PasswordUpdate if err := c.ShouldBindJSON(&req); err != nil { @@ -100,7 +100,7 @@ func (b *BaseApi) UpdatePassword(c *gin.Context) { // @Success 200 // @Security ApiKeyAuth // @Router /settings/ssl/update [post] -// @x-panel-log {"bodyKeys":["ssl"],"paramKeys":[],"BeforeFuntions":[],"formatZH":"修改系统 ssl => [ssl]","formatEN":"update system ssl => [ssl]"} +// @x-panel-log {"bodyKeys":["ssl"],"paramKeys":[],"BeforeFunctions":[],"formatZH":"修改系统 ssl => [ssl]","formatEN":"update system ssl => [ssl]"} func (b *BaseApi) UpdateSSL(c *gin.Context) { var req dto.SSLUpdate if err := c.ShouldBindJSON(&req); err != nil { @@ -158,7 +158,7 @@ func (b *BaseApi) DownloadSSL(c *gin.Context) { // @Success 200 // @Security ApiKeyAuth // @Router /settings/port/update [post] -// @x-panel-log {"bodyKeys":["serverPort"],"paramKeys":[],"BeforeFuntions":[],"formatZH":"修改系统端口 => [serverPort]","formatEN":"update system port => [serverPort]"} +// @x-panel-log {"bodyKeys":["serverPort"],"paramKeys":[],"BeforeFunctions":[],"formatZH":"修改系统端口 => [serverPort]","formatEN":"update system port => [serverPort]"} func (b *BaseApi) UpdatePort(c *gin.Context) { var req dto.PortUpdate if err := c.ShouldBindJSON(&req); err != nil { @@ -185,7 +185,7 @@ func (b *BaseApi) UpdatePort(c *gin.Context) { // @Success 200 // @Security ApiKeyAuth // @Router /settings/expired/handle [post] -// @x-panel-log {"bodyKeys":[],"paramKeys":[],"BeforeFuntions":[],"formatZH":"重置过期密码","formatEN":"reset an expired Password"} +// @x-panel-log {"bodyKeys":[],"paramKeys":[],"BeforeFunctions":[],"formatZH":"重置过期密码","formatEN":"reset an expired Password"} func (b *BaseApi) HandlePasswordExpired(c *gin.Context) { var req dto.PasswordUpdate if err := c.ShouldBindJSON(&req); err != nil { @@ -227,7 +227,7 @@ func (b *BaseApi) LoadTimeZone(c *gin.Context) { // @Success 200 {string} ntime // @Security ApiKeyAuth // @Router /settings/time/sync [post] -// @x-panel-log {"bodyKeys":["ntpSite"],"paramKeys":[],"BeforeFuntions":[],"formatZH":"系统时间同步[ntpSite]","formatEN":"sync system time [ntpSite]"} +// @x-panel-log {"bodyKeys":["ntpSite"],"paramKeys":[],"BeforeFunctions":[],"formatZH":"系统时间同步[ntpSite]","formatEN":"sync system time [ntpSite]"} func (b *BaseApi) SyncTime(c *gin.Context) { var req dto.SyncTime if err := c.ShouldBindJSON(&req); err != nil { @@ -257,7 +257,7 @@ func (b *BaseApi) LoadBaseDir(c *gin.Context) { // @Success 200 // @Security ApiKeyAuth // @Router /settings/monitor/clean [post] -// @x-panel-log {"bodyKeys":[],"paramKeys":[],"BeforeFuntions":[],"formatZH":"清空监控数据","formatEN":"clean monitor datas"} +// @x-panel-log {"bodyKeys":[],"paramKeys":[],"BeforeFunctions":[],"formatZH":"清空监控数据","formatEN":"clean monitor datas"} func (b *BaseApi) CleanMonitor(c *gin.Context) { if err := global.DB.Exec("DELETE FROM monitor_bases").Error; err != nil { helper.ErrorWithDetail(c, constant.CodeErrInternalServer, constant.ErrTypeInternalServer, err) @@ -281,7 +281,7 @@ func (b *BaseApi) CleanMonitor(c *gin.Context) { // @Success 200 // @Security ApiKeyAuth // @Router /settings/scan [post] -// @x-panel-log {"bodyKeys":[],"paramKeys":[],"BeforeFuntions":[],"formatZH":"扫描系统垃圾文件","formatEN":"scan System Junk Files"} +// @x-panel-log {"bodyKeys":[],"paramKeys":[],"BeforeFunctions":[],"formatZH":"扫描系统垃圾文件","formatEN":"scan System Junk Files"} func (b *BaseApi) ScanSystem(c *gin.Context) { helper.SuccessWithData(c, settingService.SystemScan()) } @@ -294,7 +294,7 @@ func (b *BaseApi) ScanSystem(c *gin.Context) { // @Success 200 // @Security ApiKeyAuth // @Router /settings/clean [post] -// @x-panel-log {"bodyKeys":[],"paramKeys":[],"BeforeFuntions":[],"formatZH":"清理系统垃圾文件","formatEN":"Clean system junk files"} +// @x-panel-log {"bodyKeys":[],"paramKeys":[],"BeforeFunctions":[],"formatZH":"清理系统垃圾文件","formatEN":"Clean system junk files"} func (b *BaseApi) SystemClean(c *gin.Context) { var req []dto.Clean if err := c.ShouldBindJSON(&req); err != nil { @@ -338,7 +338,7 @@ func (b *BaseApi) LoadMFA(c *gin.Context) { // @Success 200 // @Security ApiKeyAuth // @Router /settings/mfa/bind [post] -// @x-panel-log {"bodyKeys":[],"paramKeys":[],"BeforeFuntions":[],"formatZH":"mfa 绑定","formatEN":"bind mfa"} +// @x-panel-log {"bodyKeys":[],"paramKeys":[],"BeforeFunctions":[],"formatZH":"mfa 绑定","formatEN":"bind mfa"} func (b *BaseApi) MFABind(c *gin.Context) { var req dto.MfaCredential if err := c.ShouldBindJSON(&req); err != nil { diff --git a/backend/app/api/v1/snapshot.go b/backend/app/api/v1/snapshot.go index b09eccdd7..3f18d20d4 100644 --- a/backend/app/api/v1/snapshot.go +++ b/backend/app/api/v1/snapshot.go @@ -16,7 +16,7 @@ import ( // @Success 200 // @Security ApiKeyAuth // @Router /settings/snapshot [post] -// @x-panel-log {"bodyKeys":["from", "description"],"paramKeys":[],"BeforeFuntions":[],"formatZH":"创建系统快照 [description] 到 [from]","formatEN":"Create system backup [description] to [from]"} +// @x-panel-log {"bodyKeys":["from", "description"],"paramKeys":[],"BeforeFunctions":[],"formatZH":"创建系统快照 [description] 到 [from]","formatEN":"Create system backup [description] to [from]"} func (b *BaseApi) CreateSnapshot(c *gin.Context) { var req dto.SnapshotCreate if err := c.ShouldBindJSON(&req); err != nil { @@ -42,7 +42,7 @@ func (b *BaseApi) CreateSnapshot(c *gin.Context) { // @Success 200 // @Security ApiKeyAuth // @Router /settings/snapshot/import [post] -// @x-panel-log {"bodyKeys":["from", "names"],"paramKeys":[],"BeforeFuntions":[],"formatZH":"从 [from] 同步系统快照 [names]","formatEN":"Sync system snapshots [names] from [from]"} +// @x-panel-log {"bodyKeys":["from", "names"],"paramKeys":[],"BeforeFunctions":[],"formatZH":"从 [from] 同步系统快照 [names]","formatEN":"Sync system snapshots [names] from [from]"} func (b *BaseApi) ImportSnapshot(c *gin.Context) { var req dto.SnapshotImport if err := c.ShouldBindJSON(&req); err != nil { @@ -94,7 +94,7 @@ func (b *BaseApi) LoadSnapShotStatus(c *gin.Context) { // @Success 200 // @Security ApiKeyAuth // @Router /settings/snapshot/description/update [post] -// @x-panel-log {"bodyKeys":["id","description"],"paramKeys":[],"BeforeFuntions":[{"input_column":"id","input_value":"id","isList":false,"db":"snapshots","output_column":"name","output_value":"name"}],"formatZH":"快照 [name] 描述信息修改 [description]","formatEN":"The description of the snapshot [name] is modified => [description]"} +// @x-panel-log {"bodyKeys":["id","description"],"paramKeys":[],"BeforeFunctions":[{"input_column":"id","input_value":"id","isList":false,"db":"snapshots","output_column":"name","output_value":"name"}],"formatZH":"快照 [name] 描述信息修改 [description]","formatEN":"The description of the snapshot [name] is modified => [description]"} func (b *BaseApi) UpdateSnapDescription(c *gin.Context) { var req dto.UpdateDescription if err := c.ShouldBindJSON(&req); err != nil { @@ -145,7 +145,7 @@ func (b *BaseApi) SearchSnapshot(c *gin.Context) { // @Success 200 // @Security ApiKeyAuth // @Router /settings/snapshot/recover [post] -// @x-panel-log {"bodyKeys":["id"],"paramKeys":[],"BeforeFuntions":[{"input_column":"id","input_value":"id","isList":false,"db":"snapshots","output_column":"name","output_value":"name"}],"formatZH":"从系统快照 [name] 恢复","formatEN":"Recover from system backup [name]"} +// @x-panel-log {"bodyKeys":["id"],"paramKeys":[],"BeforeFunctions":[{"input_column":"id","input_value":"id","isList":false,"db":"snapshots","output_column":"name","output_value":"name"}],"formatZH":"从系统快照 [name] 恢复","formatEN":"Recover from system backup [name]"} func (b *BaseApi) RecoverSnapshot(c *gin.Context) { var req dto.SnapshotRecover if err := c.ShouldBindJSON(&req); err != nil { @@ -172,7 +172,7 @@ func (b *BaseApi) RecoverSnapshot(c *gin.Context) { // @Success 200 // @Security ApiKeyAuth // @Router /settings/snapshot/rollback [post] -// @x-panel-log {"bodyKeys":["id"],"paramKeys":[],"BeforeFuntions":[{"input_column":"id","input_value":"id","isList":false,"db":"snapshots","output_column":"name","output_value":"name"}],"formatZH":"从系统快照 [name] 回滚","formatEN":"Rollback from system backup [name]"} +// @x-panel-log {"bodyKeys":["id"],"paramKeys":[],"BeforeFunctions":[{"input_column":"id","input_value":"id","isList":false,"db":"snapshots","output_column":"name","output_value":"name"}],"formatZH":"从系统快照 [name] 回滚","formatEN":"Rollback from system backup [name]"} func (b *BaseApi) RollbackSnapshot(c *gin.Context) { var req dto.SnapshotRecover if err := c.ShouldBindJSON(&req); err != nil { @@ -199,7 +199,7 @@ func (b *BaseApi) RollbackSnapshot(c *gin.Context) { // @Success 200 // @Security ApiKeyAuth // @Router /settings/snapshot/del [post] -// @x-panel-log {"bodyKeys":["ids"],"paramKeys":[],"BeforeFuntions":[{"input_column":"id","input_value":"ids","isList":true,"db":"snapshots","output_column":"name","output_value":"name"}],"formatZH":"删除系统快照 [name]","formatEN":"Delete system backup [name]"} +// @x-panel-log {"bodyKeys":["ids"],"paramKeys":[],"BeforeFunctions":[{"input_column":"id","input_value":"ids","isList":true,"db":"snapshots","output_column":"name","output_value":"name"}],"formatZH":"删除系统快照 [name]","formatEN":"Delete system backup [name]"} func (b *BaseApi) DeleteSnapshot(c *gin.Context) { var req dto.BatchDeleteReq if err := c.ShouldBindJSON(&req); err != nil { diff --git a/backend/app/api/v1/ssh.go b/backend/app/api/v1/ssh.go index e724bdb44..d600bd841 100644 --- a/backend/app/api/v1/ssh.go +++ b/backend/app/api/v1/ssh.go @@ -30,7 +30,7 @@ func (b *BaseApi) GetSSHInfo(c *gin.Context) { // @Param request body dto.Operate true "request" // @Security ApiKeyAuth // @Router /host/ssh/operate [post] -// @x-panel-log {"bodyKeys":["operation"],"paramKeys":[],"BeforeFuntions":[],"formatZH":"[operation] SSH ","formatEN":"[operation] SSH"} +// @x-panel-log {"bodyKeys":["operation"],"paramKeys":[],"BeforeFunctions":[],"formatZH":"[operation] SSH ","formatEN":"[operation] SSH"} func (b *BaseApi) OperateSSH(c *gin.Context) { var req dto.Operate if err := c.ShouldBindJSON(&req); err != nil { @@ -57,7 +57,7 @@ func (b *BaseApi) OperateSSH(c *gin.Context) { // @Success 200 // @Security ApiKeyAuth // @Router /host/ssh/update [post] -// @x-panel-log {"bodyKeys":["key","value"],"paramKeys":[],"BeforeFuntions":[],"formatZH":"修改 SSH 配置 [key] => [value]","formatEN":"update SSH setting [key] => [value]"} +// @x-panel-log {"bodyKeys":["key","value"],"paramKeys":[],"BeforeFunctions":[],"formatZH":"修改 SSH 配置 [key] => [value]","formatEN":"update SSH setting [key] => [value]"} func (b *BaseApi) UpdateSSH(c *gin.Context) { var req dto.SettingUpdate if err := c.ShouldBindJSON(&req); err != nil { @@ -84,7 +84,7 @@ func (b *BaseApi) UpdateSSH(c *gin.Context) { // @Success 200 // @Security ApiKeyAuth // @Router /host/conffile/update [post] -// @x-panel-log {"bodyKeys":[],"paramKeys":[],"BeforeFuntions":[],"formatZH":"修改 SSH 配置文件","formatEN":"update SSH conf"} +// @x-panel-log {"bodyKeys":[],"paramKeys":[],"BeforeFunctions":[],"formatZH":"修改 SSH 配置文件","formatEN":"update SSH conf"} func (b *BaseApi) UpdateSSHByfile(c *gin.Context) { var req dto.SSHConf if err := c.ShouldBindJSON(&req); err != nil { @@ -111,7 +111,7 @@ func (b *BaseApi) UpdateSSHByfile(c *gin.Context) { // @Success 200 // @Security ApiKeyAuth // @Router /host/ssh/generate [post] -// @x-panel-log {"bodyKeys":[],"paramKeys":[],"BeforeFuntions":[],"formatZH":"生成 SSH 密钥 ","formatEN":"generate SSH secret"} +// @x-panel-log {"bodyKeys":[],"paramKeys":[],"BeforeFunctions":[],"formatZH":"生成 SSH 密钥 ","formatEN":"generate SSH secret"} func (b *BaseApi) GenerateSSH(c *gin.Context) { var req dto.GenerateSSH if err := c.ShouldBindJSON(&req); err != nil { diff --git a/backend/app/api/v1/upgrade.go b/backend/app/api/v1/upgrade.go index 7cd7567a3..772e7fdf3 100644 --- a/backend/app/api/v1/upgrade.go +++ b/backend/app/api/v1/upgrade.go @@ -52,7 +52,7 @@ func (b *BaseApi) GetNotesByVersion(c *gin.Context) { // @Success 200 // @Security ApiKeyAuth // @Router /settings/upgrade [post] -// @x-panel-log {"bodyKeys":["version"],"paramKeys":[],"BeforeFuntions":[],"formatZH":"更新系统 => [version]","formatEN":"upgrade service => [version]"} +// @x-panel-log {"bodyKeys":["version"],"paramKeys":[],"BeforeFunctions":[],"formatZH":"更新系统 => [version]","formatEN":"upgrade service => [version]"} func (b *BaseApi) Upgrade(c *gin.Context) { var req dto.Upgrade if err := c.ShouldBindJSON(&req); err != nil { diff --git a/backend/app/api/v1/website.go b/backend/app/api/v1/website.go index 21b4795a8..5c1f6bf71 100644 --- a/backend/app/api/v1/website.go +++ b/backend/app/api/v1/website.go @@ -71,7 +71,7 @@ func (b *BaseApi) GetWebsiteOptions(c *gin.Context) { // @Success 200 // @Security ApiKeyAuth // @Router /websites [post] -// @x-panel-log {"bodyKeys":["primaryDomain"],"paramKeys":[],"BeforeFuntions":[],"formatZH":"创建网站 [primaryDomain]","formatEN":"Create website [primaryDomain]"} +// @x-panel-log {"bodyKeys":["primaryDomain"],"paramKeys":[],"BeforeFunctions":[],"formatZH":"创建网站 [primaryDomain]","formatEN":"Create website [primaryDomain]"} func (b *BaseApi) CreateWebsite(c *gin.Context) { var req request.WebsiteCreate if err := c.ShouldBindJSON(&req); err != nil { @@ -95,7 +95,7 @@ func (b *BaseApi) CreateWebsite(c *gin.Context) { // @Success 200 // @Security ApiKeyAuth // @Router /websites/operate [post] -// @x-panel-log {"bodyKeys":["id", "operate"],"paramKeys":[],"BeforeFuntions":[{"input_column":"id","input_value":"id","isList":false,"db":"websites","output_column":"primary_domain","output_value":"domain"}],"formatZH":"[operate] 网站 [domain]","formatEN":"[operate] website [domain]"} +// @x-panel-log {"bodyKeys":["id", "operate"],"paramKeys":[],"BeforeFunctions":[{"input_column":"id","input_value":"id","isList":false,"db":"websites","output_column":"primary_domain","output_value":"domain"}],"formatZH":"[operate] 网站 [domain]","formatEN":"[operate] website [domain]"} func (b *BaseApi) OpWebsite(c *gin.Context) { var req request.WebsiteOp if err := c.ShouldBindJSON(&req); err != nil { @@ -118,7 +118,7 @@ func (b *BaseApi) OpWebsite(c *gin.Context) { // @Success 200 // @Security ApiKeyAuth // @Router /websites/del [post] -// @x-panel-log {"bodyKeys":["id"],"paramKeys":[],"BeforeFuntions":[{"input_column":"id","input_value":"id","isList":false,"db":"websites","output_column":"primary_domain","output_value":"domain"}],"formatZH":"删除网站 [domain]","formatEN":"Delete website [domain]"} +// @x-panel-log {"bodyKeys":["id"],"paramKeys":[],"BeforeFunctions":[{"input_column":"id","input_value":"id","isList":false,"db":"websites","output_column":"primary_domain","output_value":"domain"}],"formatZH":"删除网站 [domain]","formatEN":"Delete website [domain]"} func (b *BaseApi) DeleteWebsite(c *gin.Context) { var req request.WebsiteDelete if err := c.ShouldBindJSON(&req); err != nil { @@ -142,7 +142,7 @@ func (b *BaseApi) DeleteWebsite(c *gin.Context) { // @Success 200 // @Security ApiKeyAuth // @Router /websites/update [post] -// @x-panel-log {"bodyKeys":["primaryDomain"],"paramKeys":[],"BeforeFuntions":[],"formatZH":"更新网站 [primaryDomain]","formatEN":"Update website [primaryDomain]"} +// @x-panel-log {"bodyKeys":["primaryDomain"],"paramKeys":[],"BeforeFunctions":[],"formatZH":"更新网站 [primaryDomain]","formatEN":"Update website [primaryDomain]"} func (b *BaseApi) UpdateWebsite(c *gin.Context) { var req request.WebsiteUpdate if err := c.ShouldBindJSON(&req); err != nil { @@ -232,7 +232,7 @@ func (b *BaseApi) GetWebDomains(c *gin.Context) { // @Success 200 // @Security ApiKeyAuth // @Router /websites/domains/del [post] -// @x-panel-log {"bodyKeys":["id"],"paramKeys":[],"BeforeFuntions":[{"input_column":"id","input_value":"id","isList":false,"db":"website_domains","output_column":"domain","output_value":"domain"}],"formatZH":"删除域名 [domain]","formatEN":"Delete domain [domain]"} +// @x-panel-log {"bodyKeys":["id"],"paramKeys":[],"BeforeFunctions":[{"input_column":"id","input_value":"id","isList":false,"db":"website_domains","output_column":"domain","output_value":"domain"}],"formatZH":"删除域名 [domain]","formatEN":"Delete domain [domain]"} func (b *BaseApi) DeleteWebDomain(c *gin.Context) { var req request.WebsiteDomainDelete if err := c.ShouldBindJSON(&req); err != nil { @@ -255,7 +255,7 @@ func (b *BaseApi) DeleteWebDomain(c *gin.Context) { // @Success 200 {object} model.WebsiteDomain // @Security ApiKeyAuth // @Router /websites/domains [post] -// @x-panel-log {"bodyKeys":["domain"],"paramKeys":[],"BeforeFuntions":[],"formatZH":"创建域名 [domain]","formatEN":"Create domain [domain]"} +// @x-panel-log {"bodyKeys":["domain"],"paramKeys":[],"BeforeFunctions":[],"formatZH":"创建域名 [domain]","formatEN":"Create domain [domain]"} func (b *BaseApi) CreateWebDomain(c *gin.Context) { var req request.WebsiteDomainCreate if err := c.ShouldBindJSON(&req); err != nil { @@ -300,7 +300,7 @@ func (b *BaseApi) GetNginxConfig(c *gin.Context) { // @Success 200 // @Security ApiKeyAuth // @Router /websites/config/update [post] -// @x-panel-log {"bodyKeys":["websiteId"],"paramKeys":[],"BeforeFuntions":[{"input_column":"id","input_value":"websiteId","isList":false,"db":"websites","output_column":"primary_domain","output_value":"domain"}],"formatZH":"nginx 配置修改 [domain]","formatEN":"Nginx conf update [domain]"} +// @x-panel-log {"bodyKeys":["websiteId"],"paramKeys":[],"BeforeFunctions":[{"input_column":"id","input_value":"websiteId","isList":false,"db":"websites","output_column":"primary_domain","output_value":"domain"}],"formatZH":"nginx 配置修改 [domain]","formatEN":"Nginx conf update [domain]"} func (b *BaseApi) UpdateNginxConfig(c *gin.Context) { var req request.NginxConfigUpdate if err := c.ShouldBindJSON(&req); err != nil { @@ -344,7 +344,7 @@ func (b *BaseApi) GetHTTPSConfig(c *gin.Context) { // @Success 200 {object} response.WebsiteHTTPS // @Security ApiKeyAuth // @Router /websites/:id/https [post] -// @x-panel-log {"bodyKeys":["websiteId"],"paramKeys":[],"BeforeFuntions":[{"input_column":"id","input_value":"websiteId","isList":false,"db":"websites","output_column":"primary_domain","output_value":"domain"}],"formatZH":"更新网站 [domain] https 配置","formatEN":"Update website https [domain] conf"} +// @x-panel-log {"bodyKeys":["websiteId"],"paramKeys":[],"BeforeFunctions":[{"input_column":"id","input_value":"websiteId","isList":false,"db":"websites","output_column":"primary_domain","output_value":"domain"}],"formatZH":"更新网站 [domain] https 配置","formatEN":"Update website https [domain] conf"} func (b *BaseApi) UpdateHTTPSConfig(c *gin.Context) { var req request.WebsiteHTTPSOp if err := c.ShouldBindJSON(&req); err != nil { @@ -414,7 +414,7 @@ func (b *BaseApi) GetWebsiteWafConfig(c *gin.Context) { // @Success 200 // @Security ApiKeyAuth // @Router /websites/waf/update [post] -// @x-panel-log {"bodyKeys":["websiteId"],"paramKeys":[],"BeforeFuntions":[{"input_column":"id","input_value":"websiteId","isList":false,"db":"websites","output_column":"primary_domain","output_value":"domain"}],"formatZH":"WAF 配置修改 [domain]","formatEN":"WAF conf update [domain]"} +// @x-panel-log {"bodyKeys":["websiteId"],"paramKeys":[],"BeforeFunctions":[{"input_column":"id","input_value":"websiteId","isList":false,"db":"websites","output_column":"primary_domain","output_value":"domain"}],"formatZH":"WAF 配置修改 [domain]","formatEN":"WAF conf update [domain]"} func (b *BaseApi) UpdateWebsiteWafConfig(c *gin.Context) { var req request.WebsiteWafUpdate if err := c.ShouldBindJSON(&req); err != nil { @@ -436,7 +436,7 @@ func (b *BaseApi) UpdateWebsiteWafConfig(c *gin.Context) { // @Success 200 // @Security ApiKeyAuth // @Router /websites/waf/file/update [post] -// @x-panel-log {"bodyKeys":["websiteId"],"paramKeys":[],"BeforeFuntions":[{"input_column":"id","input_value":"websiteId","isList":false,"db":"websites","output_column":"primary_domain","output_value":"domain"}],"formatZH":"WAF 配置文件修改 [domain]","formatEN":"WAF conf file update [domain]"} +// @x-panel-log {"bodyKeys":["websiteId"],"paramKeys":[],"BeforeFunctions":[{"input_column":"id","input_value":"websiteId","isList":false,"db":"websites","output_column":"primary_domain","output_value":"domain"}],"formatZH":"WAF 配置文件修改 [domain]","formatEN":"WAF conf file update [domain]"} func (b *BaseApi) UpdateWebsiteWafFile(c *gin.Context) { var req request.WebsiteWafFileUpdate if err := c.ShouldBindJSON(&req); err != nil { @@ -458,7 +458,7 @@ func (b *BaseApi) UpdateWebsiteWafFile(c *gin.Context) { // @Success 200 // @Security ApiKeyAuth // @Router /websites/nginx/update [post] -// @x-panel-log {"bodyKeys":["id"],"paramKeys":[],"BeforeFuntions":[{"input_column":"id","input_value":"id","isList":false,"db":"websites","output_column":"primary_domain","output_value":"domain"}],"formatZH":"[domain] Nginx 配置修改","formatEN":"[domain] Nginx conf update"} +// @x-panel-log {"bodyKeys":["id"],"paramKeys":[],"BeforeFunctions":[{"input_column":"id","input_value":"id","isList":false,"db":"websites","output_column":"primary_domain","output_value":"domain"}],"formatZH":"[domain] Nginx 配置修改","formatEN":"[domain] Nginx conf update"} func (b *BaseApi) UpdateWebsiteNginxConfig(c *gin.Context) { var req request.WebsiteNginxUpdate if err := c.ShouldBindJSON(&req); err != nil { @@ -480,7 +480,7 @@ func (b *BaseApi) UpdateWebsiteNginxConfig(c *gin.Context) { // @Success 200 {object} response.WebsiteLog // @Security ApiKeyAuth // @Router /websites/log [post] -// @x-panel-log {"bodyKeys":["id", "operate"],"paramKeys":[],"BeforeFuntions":[{"input_column":"id","input_value":"id","isList":false,"db":"websites","output_column":"primary_domain","output_value":"domain"}],"formatZH":"[domain][operate] 日志","formatEN":"[domain][operate] logs"} +// @x-panel-log {"bodyKeys":["id", "operate"],"paramKeys":[],"BeforeFunctions":[{"input_column":"id","input_value":"id","isList":false,"db":"websites","output_column":"primary_domain","output_value":"domain"}],"formatZH":"[domain][operate] 日志","formatEN":"[domain][operate] logs"} func (b *BaseApi) OpWebsiteLog(c *gin.Context) { var req request.WebsiteLogReq if err := c.ShouldBindJSON(&req); err != nil { @@ -503,7 +503,7 @@ func (b *BaseApi) OpWebsiteLog(c *gin.Context) { // @Success 200 // @Security ApiKeyAuth // @Router /websites/default/server [post] -// @x-panel-log {"bodyKeys":["id", "operate"],"paramKeys":[],"BeforeFuntions":[{"input_column":"id","input_value":"id","isList":false,"db":"websites","output_column":"primary_domain","output_value":"domain"}],"formatZH":"修改默认 server => [domain]","formatEN":"Change default server => [domain]"} +// @x-panel-log {"bodyKeys":["id", "operate"],"paramKeys":[],"BeforeFunctions":[{"input_column":"id","input_value":"id","isList":false,"db":"websites","output_column":"primary_domain","output_value":"domain"}],"formatZH":"修改默认 server => [domain]","formatEN":"Change default server => [domain]"} func (b *BaseApi) ChangeDefaultServer(c *gin.Context) { var req request.WebsiteDefaultUpdate if err := c.ShouldBindJSON(&req); err != nil { @@ -547,7 +547,7 @@ func (b *BaseApi) GetWebsitePHPConfig(c *gin.Context) { // @Success 200 // @Security ApiKeyAuth // @Router /websites/php/config [post] -// @x-panel-log {"bodyKeys":["id"],"paramKeys":[],"BeforeFuntions":[{"input_column":"id","input_value":"id","isList":false,"db":"websites","output_column":"primary_domain","output_value":"domain"}],"formatZH":"[domain] PHP 配置修改","formatEN":"[domain] PHP conf update"} +// @x-panel-log {"bodyKeys":["id"],"paramKeys":[],"BeforeFunctions":[{"input_column":"id","input_value":"id","isList":false,"db":"websites","output_column":"primary_domain","output_value":"domain"}],"formatZH":"[domain] PHP 配置修改","formatEN":"[domain] PHP conf update"} func (b *BaseApi) UpdateWebsitePHPConfig(c *gin.Context) { var req request.WebsitePHPConfigUpdate if err := c.ShouldBindJSON(&req); err != nil { @@ -569,7 +569,7 @@ func (b *BaseApi) UpdateWebsitePHPConfig(c *gin.Context) { // @Success 200 // @Security ApiKeyAuth // @Router /websites/php/update [post] -// @x-panel-log {"bodyKeys":["websiteId"],"paramKeys":[],"BeforeFuntions":[{"input_column":"id","input_value":"websiteId","isList":false,"db":"websites","output_column":"primary_domain","output_value":"domain"}],"formatZH":"php 配置修改 [domain]","formatEN":"Nginx conf update [domain]"} +// @x-panel-log {"bodyKeys":["websiteId"],"paramKeys":[],"BeforeFunctions":[{"input_column":"id","input_value":"websiteId","isList":false,"db":"websites","output_column":"primary_domain","output_value":"domain"}],"formatZH":"php 配置修改 [domain]","formatEN":"Nginx conf update [domain]"} func (b *BaseApi) UpdatePHPFile(c *gin.Context) { var req request.WebsitePHPFileUpdate if err := c.ShouldBindJSON(&req); err != nil { @@ -591,7 +591,7 @@ func (b *BaseApi) UpdatePHPFile(c *gin.Context) { // @Success 200 // @Security ApiKeyAuth // @Router /websites/php/version [post] -// @x-panel-log {"bodyKeys":["websiteId"],"paramKeys":[],"BeforeFuntions":[{"input_column":"id","input_value":"websiteId","isList":false,"db":"websites","output_column":"primary_domain","output_value":"domain"}],"formatZH":"php 版本变更 [domain]","formatEN":"php version update [domain]"} +// @x-panel-log {"bodyKeys":["websiteId"],"paramKeys":[],"BeforeFunctions":[{"input_column":"id","input_value":"websiteId","isList":false,"db":"websites","output_column":"primary_domain","output_value":"domain"}],"formatZH":"php 版本变更 [domain]","formatEN":"php version update [domain]"} func (b *BaseApi) ChangePHPVersion(c *gin.Context) { var req request.WebsitePHPVersionReq if err := c.ShouldBindJSON(&req); err != nil { @@ -635,7 +635,7 @@ func (b *BaseApi) GetRewriteConfig(c *gin.Context) { // @Success 200 // @Security ApiKeyAuth // @Router /websites/rewrite/update [post] -// @x-panel-log {"bodyKeys":["websiteID"],"paramKeys":[],"BeforeFuntions":[{"input_column":"id","input_value":"websiteID","isList":false,"db":"websites","output_column":"primary_domain","output_value":"domain"}],"formatZH":"伪静态配置修改 [domain]","formatEN":"Nginx conf rewrite update [domain]"} +// @x-panel-log {"bodyKeys":["websiteID"],"paramKeys":[],"BeforeFunctions":[{"input_column":"id","input_value":"websiteID","isList":false,"db":"websites","output_column":"primary_domain","output_value":"domain"}],"formatZH":"伪静态配置修改 [domain]","formatEN":"Nginx conf rewrite update [domain]"} func (b *BaseApi) UpdateRewriteConfig(c *gin.Context) { var req request.NginxRewriteUpdate if err := c.ShouldBindJSON(&req); err != nil { @@ -657,7 +657,7 @@ func (b *BaseApi) UpdateRewriteConfig(c *gin.Context) { // @Success 200 // @Security ApiKeyAuth // @Router /websites/dir/update [post] -// @x-panel-log {"bodyKeys":["id"],"paramKeys":[],"BeforeFuntions":[{"input_column":"id","input_value":"id","isList":false,"db":"websites","output_column":"primary_domain","output_value":"domain"}],"formatZH":"更新网站 [domain] 目录","formatEN":"Update domain [domain] dir"} +// @x-panel-log {"bodyKeys":["id"],"paramKeys":[],"BeforeFunctions":[{"input_column":"id","input_value":"id","isList":false,"db":"websites","output_column":"primary_domain","output_value":"domain"}],"formatZH":"更新网站 [domain] 目录","formatEN":"Update domain [domain] dir"} func (b *BaseApi) UpdateSiteDir(c *gin.Context) { var req request.WebsiteUpdateDir if err := c.ShouldBindJSON(&req); err != nil { @@ -679,7 +679,7 @@ func (b *BaseApi) UpdateSiteDir(c *gin.Context) { // @Success 200 // @Security ApiKeyAuth // @Router /websites/dir/permission [post] -// @x-panel-log {"bodyKeys":["id"],"paramKeys":[],"BeforeFuntions":[{"input_column":"id","input_value":"id","isList":false,"db":"websites","output_column":"primary_domain","output_value":"domain"}],"formatZH":"更新网站 [domain] 目录权限","formatEN":"Update domain [domain] dir permission"} +// @x-panel-log {"bodyKeys":["id"],"paramKeys":[],"BeforeFunctions":[{"input_column":"id","input_value":"id","isList":false,"db":"websites","output_column":"primary_domain","output_value":"domain"}],"formatZH":"更新网站 [domain] 目录权限","formatEN":"Update domain [domain] dir permission"} func (b *BaseApi) UpdateSiteDirPermission(c *gin.Context) { var req request.WebsiteUpdateDirPermission if err := c.ShouldBindJSON(&req); err != nil { @@ -723,7 +723,7 @@ func (b *BaseApi) GetProxyConfig(c *gin.Context) { // @Success 200 // @Security ApiKeyAuth // @Router /websites/proxies/update [post] -// @x-panel-log {"bodyKeys":["id"],"paramKeys":[],"BeforeFuntions":[{"input_column":"id","input_value":"id","isList":false,"db":"websites","output_column":"primary_domain","output_value":"domain"}],"formatZH":"修改网站 [domain] 反向代理配置 ","formatEN":"Update domain [domain] proxy config"} +// @x-panel-log {"bodyKeys":["id"],"paramKeys":[],"BeforeFunctions":[{"input_column":"id","input_value":"id","isList":false,"db":"websites","output_column":"primary_domain","output_value":"domain"}],"formatZH":"修改网站 [domain] 反向代理配置 ","formatEN":"Update domain [domain] proxy config"} func (b *BaseApi) UpdateProxyConfig(c *gin.Context) { var req request.WebsiteProxyConfig if err := c.ShouldBindJSON(&req); err != nil { @@ -746,7 +746,7 @@ func (b *BaseApi) UpdateProxyConfig(c *gin.Context) { // @Success 200 // @Security ApiKeyAuth // @Router /websites/proxy/file [post] -// @x-panel-log {"bodyKeys":["websiteID"],"paramKeys":[],"BeforeFuntions":[{"input_column":"id","input_value":"websiteID","isList":false,"db":"websites","output_column":"primary_domain","output_value":"domain"}],"formatZH":"更新反向代理文件 [domain]","formatEN":"Nginx conf proxy file update [domain]"} +// @x-panel-log {"bodyKeys":["websiteID"],"paramKeys":[],"BeforeFunctions":[{"input_column":"id","input_value":"websiteID","isList":false,"db":"websites","output_column":"primary_domain","output_value":"domain"}],"formatZH":"更新反向代理文件 [domain]","formatEN":"Nginx conf proxy file update [domain]"} func (b *BaseApi) UpdateProxyConfigFile(c *gin.Context) { var req request.NginxProxyUpdate if err := c.ShouldBindJSON(&req); err != nil { @@ -854,7 +854,7 @@ func (b *BaseApi) UpdateAntiLeech(c *gin.Context) { // @Success 200 // @Security ApiKeyAuth // @Router /websites/redirect/update [post] -// @x-panel-log {"bodyKeys":["websiteID"],"paramKeys":[],"BeforeFuntions":[{"input_column":"id","input_value":"websiteID","isList":false,"db":"websites","output_column":"primary_domain","output_value":"domain"}],"formatZH":"修改网站 [domain] 重定向理配置 ","formatEN":"Update domain [domain] redirect config"} +// @x-panel-log {"bodyKeys":["websiteID"],"paramKeys":[],"BeforeFunctions":[{"input_column":"id","input_value":"websiteID","isList":false,"db":"websites","output_column":"primary_domain","output_value":"domain"}],"formatZH":"修改网站 [domain] 重定向理配置 ","formatEN":"Update domain [domain] redirect config"} func (b *BaseApi) UpdateRedirectConfig(c *gin.Context) { var req request.NginxRedirectReq if err := c.ShouldBindJSON(&req); err != nil { @@ -899,7 +899,7 @@ func (b *BaseApi) GetRedirectConfig(c *gin.Context) { // @Success 200 // @Security ApiKeyAuth // @Router /websites/redirect/file [post] -// @x-panel-log {"bodyKeys":["websiteID"],"paramKeys":[],"BeforeFuntions":[{"input_column":"id","input_value":"websiteID","isList":false,"db":"websites","output_column":"primary_domain","output_value":"domain"}],"formatZH":"更新重定向文件 [domain]","formatEN":"Nginx conf redirect file update [domain]"} +// @x-panel-log {"bodyKeys":["websiteID"],"paramKeys":[],"BeforeFunctions":[{"input_column":"id","input_value":"websiteID","isList":false,"db":"websites","output_column":"primary_domain","output_value":"domain"}],"formatZH":"更新重定向文件 [domain]","formatEN":"Nginx conf redirect file update [domain]"} func (b *BaseApi) UpdateRedirectConfigFile(c *gin.Context) { var req request.NginxRedirectUpdate if err := c.ShouldBindJSON(&req); err != nil { diff --git a/backend/app/api/v1/website_acme_account.go b/backend/app/api/v1/website_acme_account.go index 5b66b52e8..919e85653 100644 --- a/backend/app/api/v1/website_acme_account.go +++ b/backend/app/api/v1/website_acme_account.go @@ -41,7 +41,7 @@ func (b *BaseApi) PageWebsiteAcmeAccount(c *gin.Context) { // @Success 200 {object} response.WebsiteAcmeAccountDTO // @Security ApiKeyAuth // @Router /websites/acme [post] -// @x-panel-log {"bodyKeys":["email"],"paramKeys":[],"BeforeFuntions":[],"formatZH":"创建网站 acme [email]","formatEN":"Create website acme [email]"} +// @x-panel-log {"bodyKeys":["email"],"paramKeys":[],"BeforeFunctions":[],"formatZH":"创建网站 acme [email]","formatEN":"Create website acme [email]"} func (b *BaseApi) CreateWebsiteAcmeAccount(c *gin.Context) { var req request.WebsiteAcmeAccountCreate if err := c.ShouldBindJSON(&req); err != nil { @@ -64,7 +64,7 @@ func (b *BaseApi) CreateWebsiteAcmeAccount(c *gin.Context) { // @Success 200 // @Security ApiKeyAuth // @Router /websites/acme/del [post] -// @x-panel-log {"bodyKeys":["id"],"paramKeys":[],"BeforeFuntions":[{"input_column":"id","input_value":"id","isList":false,"db":"website_acme_accounts","output_column":"email","output_value":"email"}],"formatZH":"删除网站 acme [email]","formatEN":"Delete website acme [email]"} +// @x-panel-log {"bodyKeys":["id"],"paramKeys":[],"BeforeFunctions":[{"input_column":"id","input_value":"id","isList":false,"db":"website_acme_accounts","output_column":"email","output_value":"email"}],"formatZH":"删除网站 acme [email]","formatEN":"Delete website acme [email]"} func (b *BaseApi) DeleteWebsiteAcmeAccount(c *gin.Context) { var req request.WebsiteResourceReq if err := c.ShouldBindJSON(&req); err != nil { diff --git a/backend/app/api/v1/website_dns_account.go b/backend/app/api/v1/website_dns_account.go index 79bc8578d..e641efc70 100644 --- a/backend/app/api/v1/website_dns_account.go +++ b/backend/app/api/v1/website_dns_account.go @@ -41,7 +41,7 @@ func (b *BaseApi) PageWebsiteDnsAccount(c *gin.Context) { // @Success 200 // @Security ApiKeyAuth // @Router /websites/dns [post] -// @x-panel-log {"bodyKeys":["name"],"paramKeys":[],"BeforeFuntions":[],"formatZH":"创建网站 dns [name]","formatEN":"Create website dns [name]"} +// @x-panel-log {"bodyKeys":["name"],"paramKeys":[],"BeforeFunctions":[],"formatZH":"创建网站 dns [name]","formatEN":"Create website dns [name]"} func (b *BaseApi) CreateWebsiteDnsAccount(c *gin.Context) { var req request.WebsiteDnsAccountCreate if err := c.ShouldBindJSON(&req); err != nil { @@ -63,7 +63,7 @@ func (b *BaseApi) CreateWebsiteDnsAccount(c *gin.Context) { // @Success 200 // @Security ApiKeyAuth // @Router /websites/dns/update [post] -// @x-panel-log {"bodyKeys":["name"],"paramKeys":[],"BeforeFuntions":[],"formatZH":"更新网站 dns [name]","formatEN":"Update website dns [name]"} +// @x-panel-log {"bodyKeys":["name"],"paramKeys":[],"BeforeFunctions":[],"formatZH":"更新网站 dns [name]","formatEN":"Update website dns [name]"} func (b *BaseApi) UpdateWebsiteDnsAccount(c *gin.Context) { var req request.WebsiteDnsAccountUpdate if err := c.ShouldBindJSON(&req); err != nil { @@ -85,7 +85,7 @@ func (b *BaseApi) UpdateWebsiteDnsAccount(c *gin.Context) { // @Success 200 // @Security ApiKeyAuth // @Router /websites/dns/del [post] -// @x-panel-log {"bodyKeys":["id"],"paramKeys":[],"BeforeFuntions":[{"input_column":"id","input_value":"id","isList":false,"db":"website_dns_accounts","output_column":"name","output_value":"name"}],"formatZH":"删除网站 dns [name]","formatEN":"Delete website dns [name]"} +// @x-panel-log {"bodyKeys":["id"],"paramKeys":[],"BeforeFunctions":[{"input_column":"id","input_value":"id","isList":false,"db":"website_dns_accounts","output_column":"name","output_value":"name"}],"formatZH":"删除网站 dns [name]","formatEN":"Delete website dns [name]"} func (b *BaseApi) DeleteWebsiteDnsAccount(c *gin.Context) { var req request.WebsiteResourceReq if err := c.ShouldBindJSON(&req); err != nil { diff --git a/backend/app/api/v1/website_ssl.go b/backend/app/api/v1/website_ssl.go index a382866cd..53fc912c8 100644 --- a/backend/app/api/v1/website_ssl.go +++ b/backend/app/api/v1/website_ssl.go @@ -52,7 +52,7 @@ func (b *BaseApi) PageWebsiteSSL(c *gin.Context) { // @Success 200 {object} request.WebsiteSSLCreate // @Security ApiKeyAuth // @Router /websites/ssl [post] -// @x-panel-log {"bodyKeys":["primaryDomain"],"paramKeys":[],"BeforeFuntions":[],"formatZH":"创建网站 ssl [primaryDomain]","formatEN":"Create website ssl [primaryDomain]"} +// @x-panel-log {"bodyKeys":["primaryDomain"],"paramKeys":[],"BeforeFunctions":[],"formatZH":"创建网站 ssl [primaryDomain]","formatEN":"Create website ssl [primaryDomain]"} func (b *BaseApi) CreateWebsiteSSL(c *gin.Context) { var req request.WebsiteSSLCreate if err := c.ShouldBindJSON(&req); err != nil { @@ -75,7 +75,7 @@ func (b *BaseApi) CreateWebsiteSSL(c *gin.Context) { // @Success 200 // @Security ApiKeyAuth // @Router /websites/ssl/renew [post] -// @x-panel-log {"bodyKeys":["SSLId"],"paramKeys":[],"BeforeFuntions":[{"input_column":"id","input_value":"SSLId","isList":false,"db":"website_ssls","output_column":"primary_domain","output_value":"domain"}],"formatZH":"重置 ssl [domain]","formatEN":"Renew ssl [domain]"} +// @x-panel-log {"bodyKeys":["SSLId"],"paramKeys":[],"BeforeFunctions":[{"input_column":"id","input_value":"SSLId","isList":false,"db":"website_ssls","output_column":"primary_domain","output_value":"domain"}],"formatZH":"重置 ssl [domain]","formatEN":"Renew ssl [domain]"} func (b *BaseApi) RenewWebsiteSSL(c *gin.Context) { var req request.WebsiteSSLRenew if err := c.ShouldBindJSON(&req); err != nil { @@ -119,7 +119,7 @@ func (b *BaseApi) GetDNSResolve(c *gin.Context) { // @Success 200 // @Security ApiKeyAuth // @Router /websites/ssl/del [post] -// @x-panel-log {"bodyKeys":["id"],"paramKeys":[],"BeforeFuntions":[{"input_column":"id","input_value":"id","isList":false,"db":"website_ssls","output_column":"primary_domain","output_value":"domain"}],"formatZH":"删除 ssl [domain]","formatEN":"Delete ssl [domain]"} +// @x-panel-log {"bodyKeys":["id"],"paramKeys":[],"BeforeFunctions":[{"input_column":"id","input_value":"id","isList":false,"db":"website_ssls","output_column":"primary_domain","output_value":"domain"}],"formatZH":"删除 ssl [domain]","formatEN":"Delete ssl [domain]"} func (b *BaseApi) DeleteWebsiteSSL(c *gin.Context) { var req request.WebsiteResourceReq if err := c.ShouldBindJSON(&req); err != nil { @@ -185,7 +185,7 @@ func (b *BaseApi) GetWebsiteSSLById(c *gin.Context) { // @Success 200 // @Security ApiKeyAuth // @Router /websites/ssl/update [post] -// @x-panel-log {"bodyKeys":["id"],"paramKeys":[],"BeforeFuntions":[{"input_column":"id","input_value":"id","isList":false,"db":"website_ssls","output_column":"primary_domain","output_value":"domain"}],"formatZH":"更新证书设置 [domain]","formatEN":"Update ssl config [domain]"} +// @x-panel-log {"bodyKeys":["id"],"paramKeys":[],"BeforeFunctions":[{"input_column":"id","input_value":"id","isList":false,"db":"website_ssls","output_column":"primary_domain","output_value":"domain"}],"formatZH":"更新证书设置 [domain]","formatEN":"Update ssl config [domain]"} func (b *BaseApi) UpdateWebsiteSSL(c *gin.Context) { var req request.WebsiteSSLUpdate if err := c.ShouldBindJSON(&req); err != nil { diff --git a/backend/app/dto/dashboard.go b/backend/app/dto/dashboard.go index 1efcd72a0..ee37a5677 100644 --- a/backend/app/dto/dashboard.go +++ b/backend/app/dto/dashboard.go @@ -3,10 +3,10 @@ package dto import "time" type DashboardBase struct { - WebsiteNumber int `json:"websiteNumber"` - DatabaseNumber int `json:"databaseNumber"` - CronjobNumber int `json:"cronjobNumber"` - AppInstalldNumber int `json:"appInstalldNumber"` + WebsiteNumber int `json:"websiteNumber"` + DatabaseNumber int `json:"databaseNumber"` + CronjobNumber int `json:"cronjobNumber"` + AppInstalledNumber int `json:"appInstalledNumber"` Hostname string `json:"hostname"` OS string `json:"os"` diff --git a/backend/app/service/dashboard.go b/backend/app/service/dashboard.go index 69a0fb9b1..d0062f7bb 100644 --- a/backend/app/service/dashboard.go +++ b/backend/app/service/dashboard.go @@ -45,7 +45,7 @@ func (u *DashboardService) LoadBaseInfo(ioOption string, netOption string) (*dto if err != nil { return nil, err } - baseInfo.AppInstalldNumber = len(appInstall) + baseInfo.AppInstalledNumber = len(appInstall) dbs, err := mysqlRepo.List() if err != nil { return nil, err @@ -56,11 +56,11 @@ func (u *DashboardService) LoadBaseInfo(ioOption string, netOption string) (*dto return nil, err } baseInfo.WebsiteNumber = len(website) - cornjobs, err := cronjobRepo.List() + cronjobs, err := cronjobRepo.List() if err != nil { return nil, err } - baseInfo.CronjobNumber = len(cornjobs) + baseInfo.CronjobNumber = len(cronjobs) cpuInfo, err := cpu.Info() if err == nil { diff --git a/backend/app/service/database_mysql.go b/backend/app/service/database_mysql.go index 8e8f89da3..9e926bded 100644 --- a/backend/app/service/database_mysql.go +++ b/backend/app/service/database_mysql.go @@ -452,7 +452,7 @@ func (u *MysqlService) LoadRemoteAccess(req dto.OperationWithNameAndType) (bool, if err != nil { return false, err } - hosts, err := excuteSqlForRows(app.ContainerName, app.Password, "select host from mysql.user where user='root';") + hosts, err := executeSqlForRows(app.ContainerName, app.Password, "select host from mysql.user where user='root';") if err != nil { return false, err } @@ -470,7 +470,7 @@ func (u *MysqlService) LoadVariables(req dto.OperationWithNameAndType) (*dto.Mys if err != nil { return nil, err } - variableMap, err := excuteSqlForMaps(app.ContainerName, app.Password, "show global variables;") + variableMap, err := executeSqlForMaps(app.ContainerName, app.Password, "show global variables;") if err != nil { return nil, err } @@ -489,7 +489,7 @@ func (u *MysqlService) LoadStatus(req dto.OperationWithNameAndType) (*dto.MysqlS return nil, err } - statusMap, err := excuteSqlForMaps(app.ContainerName, app.Password, "show global status;") + statusMap, err := executeSqlForMaps(app.ContainerName, app.Password, "show global status;") if err != nil { return nil, err } @@ -513,7 +513,7 @@ func (u *MysqlService) LoadStatus(req dto.OperationWithNameAndType) (*dto.MysqlS info.File = "OFF" info.Position = "OFF" - rows, err := excuteSqlForRows(app.ContainerName, app.Password, "show master status;") + rows, err := executeSqlForRows(app.ContainerName, app.Password, "show master status;") if err != nil { return nil, err } @@ -552,7 +552,7 @@ func (u *MysqlService) LoadDatabaseFile(req dto.OperationWithNameAndType) (strin return string(content), nil } -func excuteSqlForMaps(containerName, password, command string) (map[string]string, error) { +func executeSqlForMaps(containerName, password, command string) (map[string]string, error) { cmd := exec.Command("docker", "exec", containerName, "mysql", "-uroot", "-p"+password, "-e", command) stdout, err := cmd.CombinedOutput() stdStr := strings.ReplaceAll(string(stdout), "mysql: [Warning] Using a password on the command line interface can be insecure.\n", "") @@ -571,7 +571,7 @@ func excuteSqlForMaps(containerName, password, command string) (map[string]strin return rowMap, nil } -func excuteSqlForRows(containerName, password, command string) ([]string, error) { +func executeSqlForRows(containerName, password, command string) ([]string, error) { cmd := exec.Command("docker", "exec", containerName, "mysql", "-uroot", "-p"+password, "-e", command) stdout, err := cmd.CombinedOutput() stdStr := strings.ReplaceAll(string(stdout), "mysql: [Warning] Using a password on the command line interface can be insecure.\n", "") diff --git a/backend/app/service/snapshot.go b/backend/app/service/snapshot.go index c3cd0e196..1d2e7a9a6 100644 --- a/backend/app/service/snapshot.go +++ b/backend/app/service/snapshot.go @@ -139,7 +139,7 @@ func (u *SnapshotService) SnapshotCreate(req dto.SnapshotCreate) error { } func (u *SnapshotService) SnapshotRecover(req dto.SnapshotRecover) error { - global.LOG.Info("start to recvover panel by snapshot now") + global.LOG.Info("start to recover panel by snapshot now") snap, err := snapshotRepo.Get(commonRepo.WithByID(req.ID)) if err != nil { return err diff --git a/backend/middleware/operation.go b/backend/middleware/operation.go index 7977ce59f..d6b695e06 100644 --- a/backend/middleware/operation.go +++ b/backend/middleware/operation.go @@ -90,8 +90,8 @@ func OperationLog() gin.HandlerFunc { } } } - if len(operationDic.BeforeFuntions) != 0 { - for _, funcs := range operationDic.BeforeFuntions { + if len(operationDic.BeforeFunctions) != 0 { + for _, funcs := range operationDic.BeforeFunctions { for key, value := range formatMap { if funcs.InputValue == key { var names []string @@ -109,9 +109,9 @@ func OperationLog() gin.HandlerFunc { } for key, value := range formatMap { if strings.Contains(operationDic.FormatEN, "["+key+"]") { - if arrys, ok := value.([]string); ok { - operationDic.FormatZH = strings.ReplaceAll(operationDic.FormatZH, "["+key+"]", fmt.Sprintf("[%v]", strings.Join(arrys, ","))) - operationDic.FormatEN = strings.ReplaceAll(operationDic.FormatEN, "["+key+"]", fmt.Sprintf("[%v]", strings.Join(arrys, ","))) + if arrays, ok := value.([]string); ok { + operationDic.FormatZH = strings.ReplaceAll(operationDic.FormatZH, "["+key+"]", fmt.Sprintf("[%v]", strings.Join(arrays, ","))) + operationDic.FormatEN = strings.ReplaceAll(operationDic.FormatEN, "["+key+"]", fmt.Sprintf("[%v]", strings.Join(arrays, ","))) } else { operationDic.FormatZH = strings.ReplaceAll(operationDic.FormatZH, "["+key+"]", fmt.Sprintf("[%v]", value)) operationDic.FormatEN = strings.ReplaceAll(operationDic.FormatEN, "["+key+"]", fmt.Sprintf("[%v]", value)) @@ -171,13 +171,13 @@ type swaggerJson struct { } type operationJson struct { - API string `json:"api"` - Method string `json:"method"` - BodyKeys []string `json:"bodyKeys"` - ParamKeys []string `json:"paramKeys"` - BeforeFuntions []functionInfo `json:"beforeFuntions"` - FormatZH string `json:"formatZH"` - FormatEN string `json:"formatEN"` + API string `json:"api"` + Method string `json:"method"` + BodyKeys []string `json:"bodyKeys"` + ParamKeys []string `json:"paramKeys"` + BeforeFunctions []functionInfo `json:"beforeFunctions"` + FormatZH string `json:"formatZH"` + FormatEN string `json:"formatEN"` } type functionInfo struct { InputColumn string `json:"input_column"` @@ -208,9 +208,9 @@ func loadLogInfo(path string) string { if !strings.Contains(path, "/") { return "" } - pathArrys := strings.Split(path, "/") - if len(pathArrys) < 2 { + pathArrays := strings.Split(path, "/") + if len(pathArrays) < 2 { return "" } - return pathArrys[1] + return pathArrays[1] } diff --git a/cmd/server/docs/docs.go b/cmd/server/docs/docs.go index 5ee8289f4..c01f0e45d 100644 --- a/cmd/server/docs/docs.go +++ b/cmd/server/docs/docs.go @@ -216,7 +216,7 @@ const docTemplate = `{ } }, "x-panel-log": { - "BeforeFuntions": [ + "BeforeFunctions": [ { "db": "app_installs", "input_column": "name", @@ -456,7 +456,7 @@ const docTemplate = `{ } }, "x-panel-log": { - "BeforeFuntions": [], + "BeforeFunctions": [], "bodyKeys": [ "installId" ], @@ -562,7 +562,7 @@ const docTemplate = `{ } }, "x-panel-log": { - "BeforeFuntions": [ + "BeforeFunctions": [ { "db": "app_installs", "input_column": "id", @@ -664,7 +664,7 @@ const docTemplate = `{ } }, "x-panel-log": { - "BeforeFuntions": [], + "BeforeFunctions": [], "bodyKeys": [ "installId" ], @@ -706,7 +706,7 @@ const docTemplate = `{ } }, "x-panel-log": { - "BeforeFuntions": [], + "BeforeFunctions": [], "bodyKeys": [ "key", "name", @@ -769,7 +769,7 @@ const docTemplate = `{ } }, "x-panel-log": { - "BeforeFuntions": [], + "BeforeFunctions": [], "bodyKeys": [], "formatEN": "Sync the list of installed apps", "formatZH": "同步已安装应用列表", @@ -865,7 +865,7 @@ const docTemplate = `{ } }, "x-panel-log": { - "BeforeFuntions": [], + "BeforeFunctions": [], "bodyKeys": [], "formatEN": "App store synchronization", "formatZH": "应用商店同步", @@ -1058,7 +1058,7 @@ const docTemplate = `{ } }, "x-panel-log": { - "BeforeFuntions": [], + "BeforeFunctions": [], "bodyKeys": [ "name", "image" @@ -1101,7 +1101,7 @@ const docTemplate = `{ } }, "x-panel-log": { - "BeforeFuntions": [], + "BeforeFunctions": [], "bodyKeys": [ "name" ], @@ -1143,7 +1143,7 @@ const docTemplate = `{ } }, "x-panel-log": { - "BeforeFuntions": [], + "BeforeFunctions": [], "bodyKeys": [ "name" ], @@ -1185,7 +1185,7 @@ const docTemplate = `{ } }, "x-panel-log": { - "BeforeFuntions": [], + "BeforeFunctions": [], "bodyKeys": [ "name", "operation" @@ -1305,7 +1305,7 @@ const docTemplate = `{ } }, "x-panel-log": { - "BeforeFuntions": [], + "BeforeFunctions": [], "bodyKeys": [ "name" ], @@ -1347,7 +1347,7 @@ const docTemplate = `{ } }, "x-panel-log": { - "BeforeFuntions": [], + "BeforeFunctions": [], "bodyKeys": [ "name" ], @@ -1439,7 +1439,7 @@ const docTemplate = `{ } }, "x-panel-log": { - "BeforeFuntions": [], + "BeforeFunctions": [], "bodyKeys": [], "formatEN": "Updated the docker daemon.json log option", "formatZH": "更新 docker daemon.json 日志配置", @@ -1479,7 +1479,7 @@ const docTemplate = `{ } }, "x-panel-log": { - "BeforeFuntions": [], + "BeforeFunctions": [], "bodyKeys": [], "formatEN": "Updated the docker daemon.json configuration", "formatZH": "更新 docker daemon.json 配置", @@ -1519,7 +1519,7 @@ const docTemplate = `{ } }, "x-panel-log": { - "BeforeFuntions": [], + "BeforeFunctions": [], "bodyKeys": [ "operation" ], @@ -1617,7 +1617,7 @@ const docTemplate = `{ } }, "x-panel-log": { - "BeforeFuntions": [], + "BeforeFunctions": [], "bodyKeys": [ "name" ], @@ -1659,7 +1659,7 @@ const docTemplate = `{ } }, "x-panel-log": { - "BeforeFuntions": [], + "BeforeFunctions": [], "bodyKeys": [ "path" ], @@ -1704,7 +1704,7 @@ const docTemplate = `{ } }, "x-panel-log": { - "BeforeFuntions": [ + "BeforeFunctions": [ { "db": "image_repos", "input_column": "id", @@ -1759,7 +1759,7 @@ const docTemplate = `{ } }, "x-panel-log": { - "BeforeFuntions": [ + "BeforeFunctions": [ { "db": "image_repos", "input_column": "id", @@ -1812,7 +1812,7 @@ const docTemplate = `{ } }, "x-panel-log": { - "BeforeFuntions": [], + "BeforeFunctions": [], "bodyKeys": [ "names" ], @@ -1854,7 +1854,7 @@ const docTemplate = `{ } }, "x-panel-log": { - "BeforeFuntions": [], + "BeforeFunctions": [], "bodyKeys": [ "tagName", "path", @@ -1937,7 +1937,7 @@ const docTemplate = `{ } }, "x-panel-log": { - "BeforeFuntions": [ + "BeforeFunctions": [ { "db": "image_repos", "input_column": "id", @@ -2189,7 +2189,7 @@ const docTemplate = `{ } }, "x-panel-log": { - "BeforeFuntions": [], + "BeforeFunctions": [], "bodyKeys": [ "name" ], @@ -2231,7 +2231,7 @@ const docTemplate = `{ } }, "x-panel-log": { - "BeforeFuntions": [], + "BeforeFunctions": [], "bodyKeys": [ "names" ], @@ -2312,7 +2312,7 @@ const docTemplate = `{ } }, "x-panel-log": { - "BeforeFuntions": [], + "BeforeFunctions": [], "bodyKeys": [ "name", "operation", @@ -2359,7 +2359,7 @@ const docTemplate = `{ } }, "x-panel-log": { - "BeforeFuntions": [], + "BeforeFunctions": [], "bodyKeys": [ "pruneType" ], @@ -2430,7 +2430,7 @@ const docTemplate = `{ } }, "x-panel-log": { - "BeforeFuntions": [], + "BeforeFunctions": [], "bodyKeys": [ "name" ], @@ -2475,7 +2475,7 @@ const docTemplate = `{ } }, "x-panel-log": { - "BeforeFuntions": [ + "BeforeFunctions": [ { "db": "image_repos", "input_column": "id", @@ -2604,7 +2604,7 @@ const docTemplate = `{ } }, "x-panel-log": { - "BeforeFuntions": [ + "BeforeFunctions": [ { "db": "image_repos", "input_column": "id", @@ -2792,7 +2792,7 @@ const docTemplate = `{ } }, "x-panel-log": { - "BeforeFuntions": [], + "BeforeFunctions": [], "bodyKeys": [ "name" ], @@ -2834,7 +2834,7 @@ const docTemplate = `{ } }, "x-panel-log": { - "BeforeFuntions": [ + "BeforeFunctions": [ { "db": "compose_templates", "input_column": "id", @@ -2924,7 +2924,7 @@ const docTemplate = `{ } }, "x-panel-log": { - "BeforeFuntions": [ + "BeforeFunctions": [ { "db": "compose_templates", "input_column": "id", @@ -2975,7 +2975,7 @@ const docTemplate = `{ } }, "x-panel-log": { - "BeforeFuntions": [], + "BeforeFunctions": [], "bodyKeys": [ "name", "image" @@ -3018,7 +3018,7 @@ const docTemplate = `{ } }, "x-panel-log": { - "BeforeFuntions": [], + "BeforeFunctions": [], "bodyKeys": [ "name", "image" @@ -3090,7 +3090,7 @@ const docTemplate = `{ } }, "x-panel-log": { - "BeforeFuntions": [], + "BeforeFunctions": [], "bodyKeys": [ "name" ], @@ -3132,7 +3132,7 @@ const docTemplate = `{ } }, "x-panel-log": { - "BeforeFuntions": [], + "BeforeFunctions": [], "bodyKeys": [ "names" ], @@ -3246,7 +3246,7 @@ const docTemplate = `{ } }, "x-panel-log": { - "BeforeFuntions": [], + "BeforeFunctions": [], "bodyKeys": [ "type", "name" @@ -3289,7 +3289,7 @@ const docTemplate = `{ } }, "x-panel-log": { - "BeforeFuntions": [ + "BeforeFunctions": [ { "db": "cronjobs", "input_column": "id", @@ -3340,7 +3340,7 @@ const docTemplate = `{ } }, "x-panel-log": { - "BeforeFuntions": [ + "BeforeFunctions": [ { "db": "job_records", "input_column": "id", @@ -3391,7 +3391,7 @@ const docTemplate = `{ } }, "x-panel-log": { - "BeforeFuntions": [ + "BeforeFunctions": [ { "db": "cronjobs", "input_column": "id", @@ -3442,7 +3442,7 @@ const docTemplate = `{ } }, "x-panel-log": { - "BeforeFuntions": [ + "BeforeFunctions": [ { "db": "cronjobs", "input_column": "id", @@ -3565,7 +3565,7 @@ const docTemplate = `{ } }, "x-panel-log": { - "BeforeFuntions": [ + "BeforeFunctions": [ { "db": "cronjobs", "input_column": "id", @@ -3617,7 +3617,7 @@ const docTemplate = `{ } }, "x-panel-log": { - "BeforeFuntions": [ + "BeforeFunctions": [ { "db": "cronjobs", "input_column": "id", @@ -3750,7 +3750,7 @@ const docTemplate = `{ } }, "x-panel-log": { - "BeforeFuntions": [], + "BeforeFunctions": [], "bodyKeys": [ "name" ], @@ -3828,7 +3828,7 @@ const docTemplate = `{ } }, "x-panel-log": { - "BeforeFuntions": [ + "BeforeFunctions": [ { "db": "database_mysqls", "input_column": "id", @@ -3879,7 +3879,7 @@ const docTemplate = `{ } }, "x-panel-log": { - "BeforeFuntions": [ + "BeforeFunctions": [ { "db": "database_mysqls", "input_column": "id", @@ -3930,7 +3930,7 @@ const docTemplate = `{ } }, "x-panel-log": { - "BeforeFuntions": [], + "BeforeFunctions": [], "bodyKeys": [], "formatEN": "update the mysql database configuration information", "formatZH": "更新 mysql 数据库配置信息", @@ -3970,7 +3970,7 @@ const docTemplate = `{ } }, "x-panel-log": { - "BeforeFuntions": [], + "BeforeFunctions": [], "bodyKeys": [ "name", "type" @@ -4035,7 +4035,7 @@ const docTemplate = `{ } }, "x-panel-log": { - "BeforeFuntions": [], + "BeforeFunctions": [], "bodyKeys": [ "name", "type" @@ -4078,7 +4078,7 @@ const docTemplate = `{ } }, "x-panel-log": { - "BeforeFuntions": [ + "BeforeFunctions": [ { "db": "databases", "input_column": "id", @@ -4190,7 +4190,7 @@ const docTemplate = `{ } }, "x-panel-log": { - "BeforeFuntions": [], + "BeforeFunctions": [], "bodyKeys": [ "name" ], @@ -4232,7 +4232,7 @@ const docTemplate = `{ } }, "x-panel-log": { - "BeforeFuntions": [ + "BeforeFunctions": [ { "db": "database_mysqls", "input_column": "id", @@ -4322,7 +4322,7 @@ const docTemplate = `{ } }, "x-panel-log": { - "BeforeFuntions": [ + "BeforeFunctions": [ { "db": "database_mysqls", "input_column": "id", @@ -4533,7 +4533,7 @@ const docTemplate = `{ } }, "x-panel-log": { - "BeforeFuntions": [], + "BeforeFunctions": [], "bodyKeys": [], "formatEN": "update the redis database configuration information", "formatZH": "更新 redis 数据库配置信息", @@ -4573,7 +4573,7 @@ const docTemplate = `{ } }, "x-panel-log": { - "BeforeFuntions": [], + "BeforeFunctions": [], "bodyKeys": [], "formatEN": "update the redis database configuration information", "formatZH": "更新 redis 数据库配置信息", @@ -4613,7 +4613,7 @@ const docTemplate = `{ } }, "x-panel-log": { - "BeforeFuntions": [], + "BeforeFunctions": [], "bodyKeys": [], "formatEN": "change the password of the redis database", "formatZH": "修改 redis 数据库密码", @@ -4675,7 +4675,7 @@ const docTemplate = `{ } }, "x-panel-log": { - "BeforeFuntions": [], + "BeforeFunctions": [], "bodyKeys": [], "formatEN": "redis database persistence configuration update", "formatZH": "redis 数据库持久化配置更新", @@ -4881,7 +4881,7 @@ const docTemplate = `{ } }, "x-panel-log": { - "BeforeFuntions": [], + "BeforeFunctions": [], "bodyKeys": [], "formatEN": "adjust mysql database performance parameters", "formatZH": "调整 mysql 数据库性能参数", @@ -4921,7 +4921,7 @@ const docTemplate = `{ } }, "x-panel-log": { - "BeforeFuntions": [], + "BeforeFunctions": [], "bodyKeys": [ "path" ], @@ -4963,7 +4963,7 @@ const docTemplate = `{ } }, "x-panel-log": { - "BeforeFuntions": [], + "BeforeFunctions": [], "bodyKeys": [ "paths" ], @@ -5005,7 +5005,7 @@ const docTemplate = `{ } }, "x-panel-log": { - "BeforeFuntions": [], + "BeforeFunctions": [], "bodyKeys": [ "path" ], @@ -5047,7 +5047,7 @@ const docTemplate = `{ } }, "x-panel-log": { - "BeforeFuntions": [], + "BeforeFunctions": [], "bodyKeys": [ "name" ], @@ -5117,7 +5117,7 @@ const docTemplate = `{ } }, "x-panel-log": { - "BeforeFuntions": [], + "BeforeFunctions": [], "bodyKeys": [ "name" ], @@ -5162,7 +5162,7 @@ const docTemplate = `{ } }, "x-panel-log": { - "BeforeFuntions": [], + "BeforeFunctions": [], "bodyKeys": [ "path" ], @@ -5204,7 +5204,7 @@ const docTemplate = `{ } }, "x-panel-log": { - "BeforeFuntions": [], + "BeforeFunctions": [], "bodyKeys": [ "path" ], @@ -5246,7 +5246,7 @@ const docTemplate = `{ } }, "x-panel-log": { - "BeforeFuntions": [], + "BeforeFunctions": [], "bodyKeys": [ "path" ], @@ -5288,7 +5288,7 @@ const docTemplate = `{ } }, "x-panel-log": { - "BeforeFuntions": [], + "BeforeFunctions": [], "bodyKeys": [ "name" ], @@ -5330,7 +5330,7 @@ const docTemplate = `{ } }, "x-panel-log": { - "BeforeFuntions": [], + "BeforeFunctions": [], "bodyKeys": [ "path", "mode" @@ -5373,7 +5373,7 @@ const docTemplate = `{ } }, "x-panel-log": { - "BeforeFuntions": [], + "BeforeFunctions": [], "bodyKeys": [ "oldPaths", "newPath" @@ -5416,7 +5416,7 @@ const docTemplate = `{ } }, "x-panel-log": { - "BeforeFuntions": [], + "BeforeFunctions": [], "bodyKeys": [ "path", "user", @@ -5460,7 +5460,7 @@ const docTemplate = `{ } }, "x-panel-log": { - "BeforeFuntions": [], + "BeforeFunctions": [], "bodyKeys": [ "oldName", "newName" @@ -5503,7 +5503,7 @@ const docTemplate = `{ } }, "x-panel-log": { - "BeforeFuntions": [], + "BeforeFunctions": [], "bodyKeys": [ "path" ], @@ -5581,7 +5581,7 @@ const docTemplate = `{ } }, "x-panel-log": { - "BeforeFuntions": [], + "BeforeFunctions": [], "bodyKeys": [ "path" ], @@ -5657,7 +5657,7 @@ const docTemplate = `{ } }, "x-panel-log": { - "BeforeFuntions": [], + "BeforeFunctions": [], "bodyKeys": [ "path" ], @@ -5738,7 +5738,7 @@ const docTemplate = `{ } }, "x-panel-log": { - "BeforeFuntions": [], + "BeforeFunctions": [], "bodyKeys": [ "url", "path", @@ -5782,7 +5782,7 @@ const docTemplate = `{ } }, "x-panel-log": { - "BeforeFuntions": [], + "BeforeFunctions": [], "bodyKeys": [ "name", "type" @@ -5825,7 +5825,7 @@ const docTemplate = `{ } }, "x-panel-log": { - "BeforeFuntions": [ + "BeforeFunctions": [ { "db": "groups", "input_column": "id", @@ -5923,7 +5923,7 @@ const docTemplate = `{ } }, "x-panel-log": { - "BeforeFuntions": [], + "BeforeFunctions": [], "bodyKeys": [ "name", "type" @@ -5966,7 +5966,7 @@ const docTemplate = `{ } }, "x-panel-log": { - "BeforeFuntions": [], + "BeforeFunctions": [], "bodyKeys": [], "formatEN": "update SSH conf", "formatZH": "修改 SSH 配置文件", @@ -6025,7 +6025,7 @@ const docTemplate = `{ } }, "x-panel-log": { - "BeforeFuntions": [], + "BeforeFunctions": [], "bodyKeys": [], "formatEN": "generate SSH secret", "formatZH": "生成 SSH 密钥 ", @@ -6136,7 +6136,7 @@ const docTemplate = `{ ], "responses": {}, "x-panel-log": { - "BeforeFuntions": [], + "BeforeFunctions": [], "bodyKeys": [ "operation" ], @@ -6233,7 +6233,7 @@ const docTemplate = `{ } }, "x-panel-log": { - "BeforeFuntions": [], + "BeforeFunctions": [], "bodyKeys": [ "key", "value" @@ -6309,7 +6309,7 @@ const docTemplate = `{ } }, "x-panel-log": { - "BeforeFuntions": [], + "BeforeFunctions": [], "bodyKeys": [ "operate" ], @@ -6351,7 +6351,7 @@ const docTemplate = `{ } }, "x-panel-log": { - "BeforeFuntions": [], + "BeforeFunctions": [], "bodyKeys": [ "type" ], @@ -6426,7 +6426,7 @@ const docTemplate = `{ } }, "x-panel-log": { - "BeforeFuntions": [], + "BeforeFunctions": [], "bodyKeys": [ "operate", "type" @@ -6489,7 +6489,7 @@ const docTemplate = `{ } }, "x-panel-log": { - "BeforeFuntions": [], + "BeforeFunctions": [], "bodyKeys": [ "operate" ], @@ -6531,7 +6531,7 @@ const docTemplate = `{ } }, "x-panel-log": { - "BeforeFuntions": [], + "BeforeFunctions": [], "bodyKeys": [ "operate" ], @@ -6573,7 +6573,7 @@ const docTemplate = `{ } }, "x-panel-log": { - "BeforeFuntions": [], + "BeforeFunctions": [], "bodyKeys": [ "name", "addr" @@ -6636,7 +6636,7 @@ const docTemplate = `{ } }, "x-panel-log": { - "BeforeFuntions": [], + "BeforeFunctions": [], "bodyKeys": [ "name", "command" @@ -6679,7 +6679,7 @@ const docTemplate = `{ } }, "x-panel-log": { - "BeforeFuntions": [ + "BeforeFunctions": [ { "db": "commands", "input_column": "id", @@ -6766,7 +6766,7 @@ const docTemplate = `{ } }, "x-panel-log": { - "BeforeFuntions": [], + "BeforeFunctions": [], "bodyKeys": [ "name" ], @@ -6808,7 +6808,7 @@ const docTemplate = `{ } }, "x-panel-log": { - "BeforeFuntions": [ + "BeforeFunctions": [ { "db": "hosts", "input_column": "id", @@ -6914,7 +6914,7 @@ const docTemplate = `{ } }, "x-panel-log": { - "BeforeFuntions": [], + "BeforeFunctions": [], "bodyKeys": [ "strategy", "address" @@ -6960,7 +6960,7 @@ const docTemplate = `{ } }, "x-panel-log": { - "BeforeFuntions": [], + "BeforeFunctions": [], "bodyKeys": [ "operation" ], @@ -7002,7 +7002,7 @@ const docTemplate = `{ } }, "x-panel-log": { - "BeforeFuntions": [], + "BeforeFunctions": [], "bodyKeys": [ "port", "strategy" @@ -7325,7 +7325,7 @@ const docTemplate = `{ } }, "x-panel-log": { - "BeforeFuntions": [], + "BeforeFunctions": [], "bodyKeys": [ "name", "addr" @@ -7368,7 +7368,7 @@ const docTemplate = `{ } }, "x-panel-log": { - "BeforeFuntions": [ + "BeforeFunctions": [ { "db": "hosts", "input_column": "id", @@ -7423,7 +7423,7 @@ const docTemplate = `{ } }, "x-panel-log": { - "BeforeFuntions": [], + "BeforeFunctions": [], "bodyKeys": [ "logType" ], @@ -7597,7 +7597,7 @@ const docTemplate = `{ } }, "x-panel-log": { - "BeforeFuntions": [], + "BeforeFunctions": [], "bodyKeys": [], "formatEN": "Update nginx conf", "formatZH": "更新 nginx 配置", @@ -7698,7 +7698,7 @@ const docTemplate = `{ } }, "x-panel-log": { - "BeforeFuntions": [ + "BeforeFunctions": [ { "db": "websites", "input_column": "id", @@ -7746,7 +7746,7 @@ const docTemplate = `{ } }, "x-panel-log": { - "BeforeFuntions": [], + "BeforeFunctions": [], "bodyKeys": [ "PID" ], @@ -7788,7 +7788,7 @@ const docTemplate = `{ } }, "x-panel-log": { - "BeforeFuntions": [], + "BeforeFunctions": [], "bodyKeys": [ "name" ], @@ -7861,7 +7861,7 @@ const docTemplate = `{ } }, "x-panel-log": { - "BeforeFuntions": [], + "BeforeFunctions": [], "bodyKeys": [ "id" ], @@ -7936,7 +7936,7 @@ const docTemplate = `{ } }, "x-panel-log": { - "BeforeFuntions": [], + "BeforeFunctions": [], "bodyKeys": [ "id" ], @@ -8011,7 +8011,7 @@ const docTemplate = `{ } }, "x-panel-log": { - "BeforeFuntions": [], + "BeforeFunctions": [], "bodyKeys": [ "name" ], @@ -8053,7 +8053,7 @@ const docTemplate = `{ } }, "x-panel-log": { - "BeforeFuntions": [], + "BeforeFunctions": [], "bodyKeys": [ "type" ], @@ -8095,7 +8095,7 @@ const docTemplate = `{ } }, "x-panel-log": { - "BeforeFuntions": [], + "BeforeFunctions": [], "bodyKeys": [ "type", "name", @@ -8139,7 +8139,7 @@ const docTemplate = `{ } }, "x-panel-log": { - "BeforeFuntions": [ + "BeforeFunctions": [ { "db": "backup_accounts", "input_column": "id", @@ -8215,7 +8215,7 @@ const docTemplate = `{ } }, "x-panel-log": { - "BeforeFuntions": [ + "BeforeFunctions": [ { "db": "backup_records", "input_column": "id", @@ -8266,7 +8266,7 @@ const docTemplate = `{ } }, "x-panel-log": { - "BeforeFuntions": [], + "BeforeFunctions": [], "bodyKeys": [ "source", "fileName" @@ -8342,7 +8342,7 @@ const docTemplate = `{ } }, "x-panel-log": { - "BeforeFuntions": [], + "BeforeFunctions": [], "bodyKeys": [ "type", "name", @@ -8387,7 +8387,7 @@ const docTemplate = `{ } }, "x-panel-log": { - "BeforeFuntions": [], + "BeforeFunctions": [], "bodyKeys": [ "type", "name", @@ -8533,7 +8533,7 @@ const docTemplate = `{ } }, "x-panel-log": { - "BeforeFuntions": [], + "BeforeFunctions": [], "bodyKeys": [ "type" ], @@ -8600,7 +8600,7 @@ const docTemplate = `{ } }, "x-panel-log": { - "BeforeFuntions": [], + "BeforeFunctions": [], "bodyKeys": [], "formatEN": "Clean system junk files", "formatZH": "清理系统垃圾文件", @@ -8640,7 +8640,7 @@ const docTemplate = `{ } }, "x-panel-log": { - "BeforeFuntions": [], + "BeforeFunctions": [], "bodyKeys": [], "formatEN": "reset an expired Password", "formatZH": "重置过期密码", @@ -8716,7 +8716,7 @@ const docTemplate = `{ } }, "x-panel-log": { - "BeforeFuntions": [], + "BeforeFunctions": [], "bodyKeys": [], "formatEN": "bind mfa", "formatZH": "mfa 绑定", @@ -8742,7 +8742,7 @@ const docTemplate = `{ } }, "x-panel-log": { - "BeforeFuntions": [], + "BeforeFunctions": [], "bodyKeys": [], "formatEN": "clean monitor datas", "formatZH": "清空监控数据", @@ -8782,7 +8782,7 @@ const docTemplate = `{ } }, "x-panel-log": { - "BeforeFuntions": [], + "BeforeFunctions": [], "bodyKeys": [], "formatEN": "update system password", "formatZH": "修改系统密码", @@ -8822,7 +8822,7 @@ const docTemplate = `{ } }, "x-panel-log": { - "BeforeFuntions": [], + "BeforeFunctions": [], "bodyKeys": [ "serverPort" ], @@ -8850,7 +8850,7 @@ const docTemplate = `{ } }, "x-panel-log": { - "BeforeFuntions": [], + "BeforeFunctions": [], "bodyKeys": [], "formatEN": "scan System Junk Files", "formatZH": "扫描系统垃圾文件", @@ -8931,7 +8931,7 @@ const docTemplate = `{ } }, "x-panel-log": { - "BeforeFuntions": [], + "BeforeFunctions": [], "bodyKeys": [ "from", "description" @@ -8974,7 +8974,7 @@ const docTemplate = `{ } }, "x-panel-log": { - "BeforeFuntions": [ + "BeforeFunctions": [ { "db": "snapshots", "input_column": "id", @@ -9025,7 +9025,7 @@ const docTemplate = `{ } }, "x-panel-log": { - "BeforeFuntions": [ + "BeforeFunctions": [ { "db": "snapshots", "input_column": "id", @@ -9077,7 +9077,7 @@ const docTemplate = `{ } }, "x-panel-log": { - "BeforeFuntions": [], + "BeforeFunctions": [], "bodyKeys": [ "from", "names" @@ -9120,7 +9120,7 @@ const docTemplate = `{ } }, "x-panel-log": { - "BeforeFuntions": [ + "BeforeFunctions": [ { "db": "snapshots", "input_column": "id", @@ -9171,7 +9171,7 @@ const docTemplate = `{ } }, "x-panel-log": { - "BeforeFuntions": [ + "BeforeFunctions": [ { "db": "snapshots", "input_column": "id", @@ -9332,7 +9332,7 @@ const docTemplate = `{ } }, "x-panel-log": { - "BeforeFuntions": [], + "BeforeFunctions": [], "bodyKeys": [ "ssl" ], @@ -9396,7 +9396,7 @@ const docTemplate = `{ } }, "x-panel-log": { - "BeforeFuntions": [], + "BeforeFunctions": [], "bodyKeys": [ "ntpSite" ], @@ -9438,7 +9438,7 @@ const docTemplate = `{ } }, "x-panel-log": { - "BeforeFuntions": [], + "BeforeFunctions": [], "bodyKeys": [ "key", "value" @@ -9512,7 +9512,7 @@ const docTemplate = `{ } }, "x-panel-log": { - "BeforeFuntions": [], + "BeforeFunctions": [], "bodyKeys": [ "version" ], @@ -9554,7 +9554,7 @@ const docTemplate = `{ } }, "x-panel-log": { - "BeforeFuntions": [], + "BeforeFunctions": [], "bodyKeys": [ "primaryDomain" ], @@ -9699,7 +9699,7 @@ const docTemplate = `{ } }, "x-panel-log": { - "BeforeFuntions": [ + "BeforeFunctions": [ { "db": "websites", "input_column": "id", @@ -9753,7 +9753,7 @@ const docTemplate = `{ } }, "x-panel-log": { - "BeforeFuntions": [], + "BeforeFunctions": [], "bodyKeys": [ "email" ], @@ -9795,7 +9795,7 @@ const docTemplate = `{ } }, "x-panel-log": { - "BeforeFuntions": [ + "BeforeFunctions": [ { "db": "website_acme_accounts", "input_column": "id", @@ -10023,7 +10023,7 @@ const docTemplate = `{ } }, "x-panel-log": { - "BeforeFuntions": [ + "BeforeFunctions": [ { "db": "websites", "input_column": "id", @@ -10074,7 +10074,7 @@ const docTemplate = `{ } }, "x-panel-log": { - "BeforeFuntions": [ + "BeforeFunctions": [ { "db": "websites", "input_column": "id", @@ -10126,7 +10126,7 @@ const docTemplate = `{ } }, "x-panel-log": { - "BeforeFuntions": [ + "BeforeFunctions": [ { "db": "websites", "input_column": "id", @@ -10210,7 +10210,7 @@ const docTemplate = `{ } }, "x-panel-log": { - "BeforeFuntions": [ + "BeforeFunctions": [ { "db": "websites", "input_column": "id", @@ -10261,7 +10261,7 @@ const docTemplate = `{ } }, "x-panel-log": { - "BeforeFuntions": [ + "BeforeFunctions": [ { "db": "websites", "input_column": "id", @@ -10312,7 +10312,7 @@ const docTemplate = `{ } }, "x-panel-log": { - "BeforeFuntions": [], + "BeforeFunctions": [], "bodyKeys": [ "name" ], @@ -10354,7 +10354,7 @@ const docTemplate = `{ } }, "x-panel-log": { - "BeforeFuntions": [ + "BeforeFunctions": [ { "db": "website_dns_accounts", "input_column": "id", @@ -10441,7 +10441,7 @@ const docTemplate = `{ } }, "x-panel-log": { - "BeforeFuntions": [], + "BeforeFunctions": [], "bodyKeys": [ "name" ], @@ -10486,7 +10486,7 @@ const docTemplate = `{ } }, "x-panel-log": { - "BeforeFuntions": [], + "BeforeFunctions": [], "bodyKeys": [ "domain" ], @@ -10565,7 +10565,7 @@ const docTemplate = `{ } }, "x-panel-log": { - "BeforeFuntions": [ + "BeforeFunctions": [ { "db": "website_domains", "input_column": "id", @@ -10710,7 +10710,7 @@ const docTemplate = `{ } }, "x-panel-log": { - "BeforeFuntions": [ + "BeforeFunctions": [ { "db": "websites", "input_column": "id", @@ -10762,7 +10762,7 @@ const docTemplate = `{ } }, "x-panel-log": { - "BeforeFuntions": [ + "BeforeFunctions": [ { "db": "websites", "input_column": "id", @@ -10813,7 +10813,7 @@ const docTemplate = `{ } }, "x-panel-log": { - "BeforeFuntions": [ + "BeforeFunctions": [ { "db": "websites", "input_column": "id", @@ -10890,7 +10890,7 @@ const docTemplate = `{ } }, "x-panel-log": { - "BeforeFuntions": [ + "BeforeFunctions": [ { "db": "websites", "input_column": "id", @@ -10975,7 +10975,7 @@ const docTemplate = `{ } }, "x-panel-log": { - "BeforeFuntions": [ + "BeforeFunctions": [ { "db": "websites", "input_column": "id", @@ -11026,7 +11026,7 @@ const docTemplate = `{ } }, "x-panel-log": { - "BeforeFuntions": [ + "BeforeFunctions": [ { "db": "websites", "input_column": "id", @@ -11110,7 +11110,7 @@ const docTemplate = `{ } }, "x-panel-log": { - "BeforeFuntions": [ + "BeforeFunctions": [ { "db": "websites", "input_column": "id", @@ -11161,7 +11161,7 @@ const docTemplate = `{ } }, "x-panel-log": { - "BeforeFuntions": [ + "BeforeFunctions": [ { "db": "websites", "input_column": "id", @@ -11245,7 +11245,7 @@ const docTemplate = `{ } }, "x-panel-log": { - "BeforeFuntions": [ + "BeforeFunctions": [ { "db": "websites", "input_column": "id", @@ -11296,7 +11296,7 @@ const docTemplate = `{ } }, "x-panel-log": { - "BeforeFuntions": [ + "BeforeFunctions": [ { "db": "websites", "input_column": "id", @@ -11380,7 +11380,7 @@ const docTemplate = `{ } }, "x-panel-log": { - "BeforeFuntions": [ + "BeforeFunctions": [ { "db": "websites", "input_column": "id", @@ -11470,7 +11470,7 @@ const docTemplate = `{ } }, "x-panel-log": { - "BeforeFuntions": [], + "BeforeFunctions": [], "bodyKeys": [ "primaryDomain" ], @@ -11543,7 +11543,7 @@ const docTemplate = `{ } }, "x-panel-log": { - "BeforeFuntions": [ + "BeforeFunctions": [ { "db": "website_ssls", "input_column": "id", @@ -11594,7 +11594,7 @@ const docTemplate = `{ } }, "x-panel-log": { - "BeforeFuntions": [ + "BeforeFunctions": [ { "db": "website_ssls", "input_column": "id", @@ -11717,7 +11717,7 @@ const docTemplate = `{ } }, "x-panel-log": { - "BeforeFuntions": [ + "BeforeFunctions": [ { "db": "website_ssls", "input_column": "id", @@ -11799,7 +11799,7 @@ const docTemplate = `{ } }, "x-panel-log": { - "BeforeFuntions": [], + "BeforeFunctions": [], "bodyKeys": [ "primaryDomain" ], @@ -11877,7 +11877,7 @@ const docTemplate = `{ } }, "x-panel-log": { - "BeforeFuntions": [ + "BeforeFunctions": [ { "db": "websites", "input_column": "id", @@ -11928,7 +11928,7 @@ const docTemplate = `{ } }, "x-panel-log": { - "BeforeFuntions": [ + "BeforeFunctions": [ { "db": "websites", "input_column": "id", @@ -12939,7 +12939,7 @@ const docTemplate = `{ "dto.DashboardBase": { "type": "object", "properties": { - "appInstalldNumber": { + "appInstalledNumber": { "type": "integer" }, "cpuCores": { diff --git a/cmd/server/docs/swagger.json b/cmd/server/docs/swagger.json index 49fc94bd6..3e948c7d1 100644 --- a/cmd/server/docs/swagger.json +++ b/cmd/server/docs/swagger.json @@ -209,7 +209,7 @@ } }, "x-panel-log": { - "BeforeFuntions": [ + "BeforeFunctions": [ { "db": "app_installs", "input_column": "name", @@ -449,7 +449,7 @@ } }, "x-panel-log": { - "BeforeFuntions": [], + "BeforeFunctions": [], "bodyKeys": [ "installId" ], @@ -555,7 +555,7 @@ } }, "x-panel-log": { - "BeforeFuntions": [ + "BeforeFunctions": [ { "db": "app_installs", "input_column": "id", @@ -657,7 +657,7 @@ } }, "x-panel-log": { - "BeforeFuntions": [], + "BeforeFunctions": [], "bodyKeys": [ "installId" ], @@ -699,7 +699,7 @@ } }, "x-panel-log": { - "BeforeFuntions": [], + "BeforeFunctions": [], "bodyKeys": [ "key", "name", @@ -762,7 +762,7 @@ } }, "x-panel-log": { - "BeforeFuntions": [], + "BeforeFunctions": [], "bodyKeys": [], "formatEN": "Sync the list of installed apps", "formatZH": "同步已安装应用列表", @@ -858,7 +858,7 @@ } }, "x-panel-log": { - "BeforeFuntions": [], + "BeforeFunctions": [], "bodyKeys": [], "formatEN": "App store synchronization", "formatZH": "应用商店同步", @@ -1051,7 +1051,7 @@ } }, "x-panel-log": { - "BeforeFuntions": [], + "BeforeFunctions": [], "bodyKeys": [ "name", "image" @@ -1094,7 +1094,7 @@ } }, "x-panel-log": { - "BeforeFuntions": [], + "BeforeFunctions": [], "bodyKeys": [ "name" ], @@ -1136,7 +1136,7 @@ } }, "x-panel-log": { - "BeforeFuntions": [], + "BeforeFunctions": [], "bodyKeys": [ "name" ], @@ -1178,7 +1178,7 @@ } }, "x-panel-log": { - "BeforeFuntions": [], + "BeforeFunctions": [], "bodyKeys": [ "name", "operation" @@ -1298,7 +1298,7 @@ } }, "x-panel-log": { - "BeforeFuntions": [], + "BeforeFunctions": [], "bodyKeys": [ "name" ], @@ -1340,7 +1340,7 @@ } }, "x-panel-log": { - "BeforeFuntions": [], + "BeforeFunctions": [], "bodyKeys": [ "name" ], @@ -1432,7 +1432,7 @@ } }, "x-panel-log": { - "BeforeFuntions": [], + "BeforeFunctions": [], "bodyKeys": [], "formatEN": "Updated the docker daemon.json log option", "formatZH": "更新 docker daemon.json 日志配置", @@ -1472,7 +1472,7 @@ } }, "x-panel-log": { - "BeforeFuntions": [], + "BeforeFunctions": [], "bodyKeys": [], "formatEN": "Updated the docker daemon.json configuration", "formatZH": "更新 docker daemon.json 配置", @@ -1512,7 +1512,7 @@ } }, "x-panel-log": { - "BeforeFuntions": [], + "BeforeFunctions": [], "bodyKeys": [ "operation" ], @@ -1610,7 +1610,7 @@ } }, "x-panel-log": { - "BeforeFuntions": [], + "BeforeFunctions": [], "bodyKeys": [ "name" ], @@ -1652,7 +1652,7 @@ } }, "x-panel-log": { - "BeforeFuntions": [], + "BeforeFunctions": [], "bodyKeys": [ "path" ], @@ -1697,7 +1697,7 @@ } }, "x-panel-log": { - "BeforeFuntions": [ + "BeforeFunctions": [ { "db": "image_repos", "input_column": "id", @@ -1752,7 +1752,7 @@ } }, "x-panel-log": { - "BeforeFuntions": [ + "BeforeFunctions": [ { "db": "image_repos", "input_column": "id", @@ -1805,7 +1805,7 @@ } }, "x-panel-log": { - "BeforeFuntions": [], + "BeforeFunctions": [], "bodyKeys": [ "names" ], @@ -1847,7 +1847,7 @@ } }, "x-panel-log": { - "BeforeFuntions": [], + "BeforeFunctions": [], "bodyKeys": [ "tagName", "path", @@ -1930,7 +1930,7 @@ } }, "x-panel-log": { - "BeforeFuntions": [ + "BeforeFunctions": [ { "db": "image_repos", "input_column": "id", @@ -2182,7 +2182,7 @@ } }, "x-panel-log": { - "BeforeFuntions": [], + "BeforeFunctions": [], "bodyKeys": [ "name" ], @@ -2224,7 +2224,7 @@ } }, "x-panel-log": { - "BeforeFuntions": [], + "BeforeFunctions": [], "bodyKeys": [ "names" ], @@ -2305,7 +2305,7 @@ } }, "x-panel-log": { - "BeforeFuntions": [], + "BeforeFunctions": [], "bodyKeys": [ "name", "operation", @@ -2352,7 +2352,7 @@ } }, "x-panel-log": { - "BeforeFuntions": [], + "BeforeFunctions": [], "bodyKeys": [ "pruneType" ], @@ -2423,7 +2423,7 @@ } }, "x-panel-log": { - "BeforeFuntions": [], + "BeforeFunctions": [], "bodyKeys": [ "name" ], @@ -2468,7 +2468,7 @@ } }, "x-panel-log": { - "BeforeFuntions": [ + "BeforeFunctions": [ { "db": "image_repos", "input_column": "id", @@ -2597,7 +2597,7 @@ } }, "x-panel-log": { - "BeforeFuntions": [ + "BeforeFunctions": [ { "db": "image_repos", "input_column": "id", @@ -2785,7 +2785,7 @@ } }, "x-panel-log": { - "BeforeFuntions": [], + "BeforeFunctions": [], "bodyKeys": [ "name" ], @@ -2827,7 +2827,7 @@ } }, "x-panel-log": { - "BeforeFuntions": [ + "BeforeFunctions": [ { "db": "compose_templates", "input_column": "id", @@ -2917,7 +2917,7 @@ } }, "x-panel-log": { - "BeforeFuntions": [ + "BeforeFunctions": [ { "db": "compose_templates", "input_column": "id", @@ -2968,7 +2968,7 @@ } }, "x-panel-log": { - "BeforeFuntions": [], + "BeforeFunctions": [], "bodyKeys": [ "name", "image" @@ -3011,7 +3011,7 @@ } }, "x-panel-log": { - "BeforeFuntions": [], + "BeforeFunctions": [], "bodyKeys": [ "name", "image" @@ -3083,7 +3083,7 @@ } }, "x-panel-log": { - "BeforeFuntions": [], + "BeforeFunctions": [], "bodyKeys": [ "name" ], @@ -3125,7 +3125,7 @@ } }, "x-panel-log": { - "BeforeFuntions": [], + "BeforeFunctions": [], "bodyKeys": [ "names" ], @@ -3239,7 +3239,7 @@ } }, "x-panel-log": { - "BeforeFuntions": [], + "BeforeFunctions": [], "bodyKeys": [ "type", "name" @@ -3282,7 +3282,7 @@ } }, "x-panel-log": { - "BeforeFuntions": [ + "BeforeFunctions": [ { "db": "cronjobs", "input_column": "id", @@ -3333,7 +3333,7 @@ } }, "x-panel-log": { - "BeforeFuntions": [ + "BeforeFunctions": [ { "db": "job_records", "input_column": "id", @@ -3384,7 +3384,7 @@ } }, "x-panel-log": { - "BeforeFuntions": [ + "BeforeFunctions": [ { "db": "cronjobs", "input_column": "id", @@ -3435,7 +3435,7 @@ } }, "x-panel-log": { - "BeforeFuntions": [ + "BeforeFunctions": [ { "db": "cronjobs", "input_column": "id", @@ -3558,7 +3558,7 @@ } }, "x-panel-log": { - "BeforeFuntions": [ + "BeforeFunctions": [ { "db": "cronjobs", "input_column": "id", @@ -3610,7 +3610,7 @@ } }, "x-panel-log": { - "BeforeFuntions": [ + "BeforeFunctions": [ { "db": "cronjobs", "input_column": "id", @@ -3743,7 +3743,7 @@ } }, "x-panel-log": { - "BeforeFuntions": [], + "BeforeFunctions": [], "bodyKeys": [ "name" ], @@ -3821,7 +3821,7 @@ } }, "x-panel-log": { - "BeforeFuntions": [ + "BeforeFunctions": [ { "db": "database_mysqls", "input_column": "id", @@ -3872,7 +3872,7 @@ } }, "x-panel-log": { - "BeforeFuntions": [ + "BeforeFunctions": [ { "db": "database_mysqls", "input_column": "id", @@ -3923,7 +3923,7 @@ } }, "x-panel-log": { - "BeforeFuntions": [], + "BeforeFunctions": [], "bodyKeys": [], "formatEN": "update the mysql database configuration information", "formatZH": "更新 mysql 数据库配置信息", @@ -3963,7 +3963,7 @@ } }, "x-panel-log": { - "BeforeFuntions": [], + "BeforeFunctions": [], "bodyKeys": [ "name", "type" @@ -4028,7 +4028,7 @@ } }, "x-panel-log": { - "BeforeFuntions": [], + "BeforeFunctions": [], "bodyKeys": [ "name", "type" @@ -4071,7 +4071,7 @@ } }, "x-panel-log": { - "BeforeFuntions": [ + "BeforeFunctions": [ { "db": "databases", "input_column": "id", @@ -4183,7 +4183,7 @@ } }, "x-panel-log": { - "BeforeFuntions": [], + "BeforeFunctions": [], "bodyKeys": [ "name" ], @@ -4225,7 +4225,7 @@ } }, "x-panel-log": { - "BeforeFuntions": [ + "BeforeFunctions": [ { "db": "database_mysqls", "input_column": "id", @@ -4315,7 +4315,7 @@ } }, "x-panel-log": { - "BeforeFuntions": [ + "BeforeFunctions": [ { "db": "database_mysqls", "input_column": "id", @@ -4526,7 +4526,7 @@ } }, "x-panel-log": { - "BeforeFuntions": [], + "BeforeFunctions": [], "bodyKeys": [], "formatEN": "update the redis database configuration information", "formatZH": "更新 redis 数据库配置信息", @@ -4566,7 +4566,7 @@ } }, "x-panel-log": { - "BeforeFuntions": [], + "BeforeFunctions": [], "bodyKeys": [], "formatEN": "update the redis database configuration information", "formatZH": "更新 redis 数据库配置信息", @@ -4606,7 +4606,7 @@ } }, "x-panel-log": { - "BeforeFuntions": [], + "BeforeFunctions": [], "bodyKeys": [], "formatEN": "change the password of the redis database", "formatZH": "修改 redis 数据库密码", @@ -4668,7 +4668,7 @@ } }, "x-panel-log": { - "BeforeFuntions": [], + "BeforeFunctions": [], "bodyKeys": [], "formatEN": "redis database persistence configuration update", "formatZH": "redis 数据库持久化配置更新", @@ -4874,7 +4874,7 @@ } }, "x-panel-log": { - "BeforeFuntions": [], + "BeforeFunctions": [], "bodyKeys": [], "formatEN": "adjust mysql database performance parameters", "formatZH": "调整 mysql 数据库性能参数", @@ -4914,7 +4914,7 @@ } }, "x-panel-log": { - "BeforeFuntions": [], + "BeforeFunctions": [], "bodyKeys": [ "path" ], @@ -4956,7 +4956,7 @@ } }, "x-panel-log": { - "BeforeFuntions": [], + "BeforeFunctions": [], "bodyKeys": [ "paths" ], @@ -4998,7 +4998,7 @@ } }, "x-panel-log": { - "BeforeFuntions": [], + "BeforeFunctions": [], "bodyKeys": [ "path" ], @@ -5040,7 +5040,7 @@ } }, "x-panel-log": { - "BeforeFuntions": [], + "BeforeFunctions": [], "bodyKeys": [ "name" ], @@ -5110,7 +5110,7 @@ } }, "x-panel-log": { - "BeforeFuntions": [], + "BeforeFunctions": [], "bodyKeys": [ "name" ], @@ -5155,7 +5155,7 @@ } }, "x-panel-log": { - "BeforeFuntions": [], + "BeforeFunctions": [], "bodyKeys": [ "path" ], @@ -5197,7 +5197,7 @@ } }, "x-panel-log": { - "BeforeFuntions": [], + "BeforeFunctions": [], "bodyKeys": [ "path" ], @@ -5239,7 +5239,7 @@ } }, "x-panel-log": { - "BeforeFuntions": [], + "BeforeFunctions": [], "bodyKeys": [ "path" ], @@ -5281,7 +5281,7 @@ } }, "x-panel-log": { - "BeforeFuntions": [], + "BeforeFunctions": [], "bodyKeys": [ "name" ], @@ -5323,7 +5323,7 @@ } }, "x-panel-log": { - "BeforeFuntions": [], + "BeforeFunctions": [], "bodyKeys": [ "path", "mode" @@ -5366,7 +5366,7 @@ } }, "x-panel-log": { - "BeforeFuntions": [], + "BeforeFunctions": [], "bodyKeys": [ "oldPaths", "newPath" @@ -5409,7 +5409,7 @@ } }, "x-panel-log": { - "BeforeFuntions": [], + "BeforeFunctions": [], "bodyKeys": [ "path", "user", @@ -5453,7 +5453,7 @@ } }, "x-panel-log": { - "BeforeFuntions": [], + "BeforeFunctions": [], "bodyKeys": [ "oldName", "newName" @@ -5496,7 +5496,7 @@ } }, "x-panel-log": { - "BeforeFuntions": [], + "BeforeFunctions": [], "bodyKeys": [ "path" ], @@ -5574,7 +5574,7 @@ } }, "x-panel-log": { - "BeforeFuntions": [], + "BeforeFunctions": [], "bodyKeys": [ "path" ], @@ -5650,7 +5650,7 @@ } }, "x-panel-log": { - "BeforeFuntions": [], + "BeforeFunctions": [], "bodyKeys": [ "path" ], @@ -5731,7 +5731,7 @@ } }, "x-panel-log": { - "BeforeFuntions": [], + "BeforeFunctions": [], "bodyKeys": [ "url", "path", @@ -5775,7 +5775,7 @@ } }, "x-panel-log": { - "BeforeFuntions": [], + "BeforeFunctions": [], "bodyKeys": [ "name", "type" @@ -5818,7 +5818,7 @@ } }, "x-panel-log": { - "BeforeFuntions": [ + "BeforeFunctions": [ { "db": "groups", "input_column": "id", @@ -5916,7 +5916,7 @@ } }, "x-panel-log": { - "BeforeFuntions": [], + "BeforeFunctions": [], "bodyKeys": [ "name", "type" @@ -5959,7 +5959,7 @@ } }, "x-panel-log": { - "BeforeFuntions": [], + "BeforeFunctions": [], "bodyKeys": [], "formatEN": "update SSH conf", "formatZH": "修改 SSH 配置文件", @@ -6018,7 +6018,7 @@ } }, "x-panel-log": { - "BeforeFuntions": [], + "BeforeFunctions": [], "bodyKeys": [], "formatEN": "generate SSH secret", "formatZH": "生成 SSH 密钥 ", @@ -6129,7 +6129,7 @@ ], "responses": {}, "x-panel-log": { - "BeforeFuntions": [], + "BeforeFunctions": [], "bodyKeys": [ "operation" ], @@ -6226,7 +6226,7 @@ } }, "x-panel-log": { - "BeforeFuntions": [], + "BeforeFunctions": [], "bodyKeys": [ "key", "value" @@ -6302,7 +6302,7 @@ } }, "x-panel-log": { - "BeforeFuntions": [], + "BeforeFunctions": [], "bodyKeys": [ "operate" ], @@ -6344,7 +6344,7 @@ } }, "x-panel-log": { - "BeforeFuntions": [], + "BeforeFunctions": [], "bodyKeys": [ "type" ], @@ -6419,7 +6419,7 @@ } }, "x-panel-log": { - "BeforeFuntions": [], + "BeforeFunctions": [], "bodyKeys": [ "operate", "type" @@ -6482,7 +6482,7 @@ } }, "x-panel-log": { - "BeforeFuntions": [], + "BeforeFunctions": [], "bodyKeys": [ "operate" ], @@ -6524,7 +6524,7 @@ } }, "x-panel-log": { - "BeforeFuntions": [], + "BeforeFunctions": [], "bodyKeys": [ "operate" ], @@ -6566,7 +6566,7 @@ } }, "x-panel-log": { - "BeforeFuntions": [], + "BeforeFunctions": [], "bodyKeys": [ "name", "addr" @@ -6629,7 +6629,7 @@ } }, "x-panel-log": { - "BeforeFuntions": [], + "BeforeFunctions": [], "bodyKeys": [ "name", "command" @@ -6672,7 +6672,7 @@ } }, "x-panel-log": { - "BeforeFuntions": [ + "BeforeFunctions": [ { "db": "commands", "input_column": "id", @@ -6759,7 +6759,7 @@ } }, "x-panel-log": { - "BeforeFuntions": [], + "BeforeFunctions": [], "bodyKeys": [ "name" ], @@ -6801,7 +6801,7 @@ } }, "x-panel-log": { - "BeforeFuntions": [ + "BeforeFunctions": [ { "db": "hosts", "input_column": "id", @@ -6907,7 +6907,7 @@ } }, "x-panel-log": { - "BeforeFuntions": [], + "BeforeFunctions": [], "bodyKeys": [ "strategy", "address" @@ -6953,7 +6953,7 @@ } }, "x-panel-log": { - "BeforeFuntions": [], + "BeforeFunctions": [], "bodyKeys": [ "operation" ], @@ -6995,7 +6995,7 @@ } }, "x-panel-log": { - "BeforeFuntions": [], + "BeforeFunctions": [], "bodyKeys": [ "port", "strategy" @@ -7318,7 +7318,7 @@ } }, "x-panel-log": { - "BeforeFuntions": [], + "BeforeFunctions": [], "bodyKeys": [ "name", "addr" @@ -7361,7 +7361,7 @@ } }, "x-panel-log": { - "BeforeFuntions": [ + "BeforeFunctions": [ { "db": "hosts", "input_column": "id", @@ -7416,7 +7416,7 @@ } }, "x-panel-log": { - "BeforeFuntions": [], + "BeforeFunctions": [], "bodyKeys": [ "logType" ], @@ -7590,7 +7590,7 @@ } }, "x-panel-log": { - "BeforeFuntions": [], + "BeforeFunctions": [], "bodyKeys": [], "formatEN": "Update nginx conf", "formatZH": "更新 nginx 配置", @@ -7691,7 +7691,7 @@ } }, "x-panel-log": { - "BeforeFuntions": [ + "BeforeFunctions": [ { "db": "websites", "input_column": "id", @@ -7739,7 +7739,7 @@ } }, "x-panel-log": { - "BeforeFuntions": [], + "BeforeFunctions": [], "bodyKeys": [ "PID" ], @@ -7781,7 +7781,7 @@ } }, "x-panel-log": { - "BeforeFuntions": [], + "BeforeFunctions": [], "bodyKeys": [ "name" ], @@ -7854,7 +7854,7 @@ } }, "x-panel-log": { - "BeforeFuntions": [], + "BeforeFunctions": [], "bodyKeys": [ "id" ], @@ -7929,7 +7929,7 @@ } }, "x-panel-log": { - "BeforeFuntions": [], + "BeforeFunctions": [], "bodyKeys": [ "id" ], @@ -8004,7 +8004,7 @@ } }, "x-panel-log": { - "BeforeFuntions": [], + "BeforeFunctions": [], "bodyKeys": [ "name" ], @@ -8046,7 +8046,7 @@ } }, "x-panel-log": { - "BeforeFuntions": [], + "BeforeFunctions": [], "bodyKeys": [ "type" ], @@ -8088,7 +8088,7 @@ } }, "x-panel-log": { - "BeforeFuntions": [], + "BeforeFunctions": [], "bodyKeys": [ "type", "name", @@ -8132,7 +8132,7 @@ } }, "x-panel-log": { - "BeforeFuntions": [ + "BeforeFunctions": [ { "db": "backup_accounts", "input_column": "id", @@ -8208,7 +8208,7 @@ } }, "x-panel-log": { - "BeforeFuntions": [ + "BeforeFunctions": [ { "db": "backup_records", "input_column": "id", @@ -8259,7 +8259,7 @@ } }, "x-panel-log": { - "BeforeFuntions": [], + "BeforeFunctions": [], "bodyKeys": [ "source", "fileName" @@ -8335,7 +8335,7 @@ } }, "x-panel-log": { - "BeforeFuntions": [], + "BeforeFunctions": [], "bodyKeys": [ "type", "name", @@ -8380,7 +8380,7 @@ } }, "x-panel-log": { - "BeforeFuntions": [], + "BeforeFunctions": [], "bodyKeys": [ "type", "name", @@ -8526,7 +8526,7 @@ } }, "x-panel-log": { - "BeforeFuntions": [], + "BeforeFunctions": [], "bodyKeys": [ "type" ], @@ -8593,7 +8593,7 @@ } }, "x-panel-log": { - "BeforeFuntions": [], + "BeforeFunctions": [], "bodyKeys": [], "formatEN": "Clean system junk files", "formatZH": "清理系统垃圾文件", @@ -8633,7 +8633,7 @@ } }, "x-panel-log": { - "BeforeFuntions": [], + "BeforeFunctions": [], "bodyKeys": [], "formatEN": "reset an expired Password", "formatZH": "重置过期密码", @@ -8709,7 +8709,7 @@ } }, "x-panel-log": { - "BeforeFuntions": [], + "BeforeFunctions": [], "bodyKeys": [], "formatEN": "bind mfa", "formatZH": "mfa 绑定", @@ -8735,7 +8735,7 @@ } }, "x-panel-log": { - "BeforeFuntions": [], + "BeforeFunctions": [], "bodyKeys": [], "formatEN": "clean monitor datas", "formatZH": "清空监控数据", @@ -8775,7 +8775,7 @@ } }, "x-panel-log": { - "BeforeFuntions": [], + "BeforeFunctions": [], "bodyKeys": [], "formatEN": "update system password", "formatZH": "修改系统密码", @@ -8815,7 +8815,7 @@ } }, "x-panel-log": { - "BeforeFuntions": [], + "BeforeFunctions": [], "bodyKeys": [ "serverPort" ], @@ -8843,7 +8843,7 @@ } }, "x-panel-log": { - "BeforeFuntions": [], + "BeforeFunctions": [], "bodyKeys": [], "formatEN": "scan System Junk Files", "formatZH": "扫描系统垃圾文件", @@ -8924,7 +8924,7 @@ } }, "x-panel-log": { - "BeforeFuntions": [], + "BeforeFunctions": [], "bodyKeys": [ "from", "description" @@ -8967,7 +8967,7 @@ } }, "x-panel-log": { - "BeforeFuntions": [ + "BeforeFunctions": [ { "db": "snapshots", "input_column": "id", @@ -9018,7 +9018,7 @@ } }, "x-panel-log": { - "BeforeFuntions": [ + "BeforeFunctions": [ { "db": "snapshots", "input_column": "id", @@ -9070,7 +9070,7 @@ } }, "x-panel-log": { - "BeforeFuntions": [], + "BeforeFunctions": [], "bodyKeys": [ "from", "names" @@ -9113,7 +9113,7 @@ } }, "x-panel-log": { - "BeforeFuntions": [ + "BeforeFunctions": [ { "db": "snapshots", "input_column": "id", @@ -9164,7 +9164,7 @@ } }, "x-panel-log": { - "BeforeFuntions": [ + "BeforeFunctions": [ { "db": "snapshots", "input_column": "id", @@ -9325,7 +9325,7 @@ } }, "x-panel-log": { - "BeforeFuntions": [], + "BeforeFunctions": [], "bodyKeys": [ "ssl" ], @@ -9389,7 +9389,7 @@ } }, "x-panel-log": { - "BeforeFuntions": [], + "BeforeFunctions": [], "bodyKeys": [ "ntpSite" ], @@ -9431,7 +9431,7 @@ } }, "x-panel-log": { - "BeforeFuntions": [], + "BeforeFunctions": [], "bodyKeys": [ "key", "value" @@ -9505,7 +9505,7 @@ } }, "x-panel-log": { - "BeforeFuntions": [], + "BeforeFunctions": [], "bodyKeys": [ "version" ], @@ -9547,7 +9547,7 @@ } }, "x-panel-log": { - "BeforeFuntions": [], + "BeforeFunctions": [], "bodyKeys": [ "primaryDomain" ], @@ -9692,7 +9692,7 @@ } }, "x-panel-log": { - "BeforeFuntions": [ + "BeforeFunctions": [ { "db": "websites", "input_column": "id", @@ -9746,7 +9746,7 @@ } }, "x-panel-log": { - "BeforeFuntions": [], + "BeforeFunctions": [], "bodyKeys": [ "email" ], @@ -9788,7 +9788,7 @@ } }, "x-panel-log": { - "BeforeFuntions": [ + "BeforeFunctions": [ { "db": "website_acme_accounts", "input_column": "id", @@ -10016,7 +10016,7 @@ } }, "x-panel-log": { - "BeforeFuntions": [ + "BeforeFunctions": [ { "db": "websites", "input_column": "id", @@ -10067,7 +10067,7 @@ } }, "x-panel-log": { - "BeforeFuntions": [ + "BeforeFunctions": [ { "db": "websites", "input_column": "id", @@ -10119,7 +10119,7 @@ } }, "x-panel-log": { - "BeforeFuntions": [ + "BeforeFunctions": [ { "db": "websites", "input_column": "id", @@ -10203,7 +10203,7 @@ } }, "x-panel-log": { - "BeforeFuntions": [ + "BeforeFunctions": [ { "db": "websites", "input_column": "id", @@ -10254,7 +10254,7 @@ } }, "x-panel-log": { - "BeforeFuntions": [ + "BeforeFunctions": [ { "db": "websites", "input_column": "id", @@ -10305,7 +10305,7 @@ } }, "x-panel-log": { - "BeforeFuntions": [], + "BeforeFunctions": [], "bodyKeys": [ "name" ], @@ -10347,7 +10347,7 @@ } }, "x-panel-log": { - "BeforeFuntions": [ + "BeforeFunctions": [ { "db": "website_dns_accounts", "input_column": "id", @@ -10434,7 +10434,7 @@ } }, "x-panel-log": { - "BeforeFuntions": [], + "BeforeFunctions": [], "bodyKeys": [ "name" ], @@ -10479,7 +10479,7 @@ } }, "x-panel-log": { - "BeforeFuntions": [], + "BeforeFunctions": [], "bodyKeys": [ "domain" ], @@ -10558,7 +10558,7 @@ } }, "x-panel-log": { - "BeforeFuntions": [ + "BeforeFunctions": [ { "db": "website_domains", "input_column": "id", @@ -10703,7 +10703,7 @@ } }, "x-panel-log": { - "BeforeFuntions": [ + "BeforeFunctions": [ { "db": "websites", "input_column": "id", @@ -10755,7 +10755,7 @@ } }, "x-panel-log": { - "BeforeFuntions": [ + "BeforeFunctions": [ { "db": "websites", "input_column": "id", @@ -10806,7 +10806,7 @@ } }, "x-panel-log": { - "BeforeFuntions": [ + "BeforeFunctions": [ { "db": "websites", "input_column": "id", @@ -10883,7 +10883,7 @@ } }, "x-panel-log": { - "BeforeFuntions": [ + "BeforeFunctions": [ { "db": "websites", "input_column": "id", @@ -10968,7 +10968,7 @@ } }, "x-panel-log": { - "BeforeFuntions": [ + "BeforeFunctions": [ { "db": "websites", "input_column": "id", @@ -11019,7 +11019,7 @@ } }, "x-panel-log": { - "BeforeFuntions": [ + "BeforeFunctions": [ { "db": "websites", "input_column": "id", @@ -11103,7 +11103,7 @@ } }, "x-panel-log": { - "BeforeFuntions": [ + "BeforeFunctions": [ { "db": "websites", "input_column": "id", @@ -11154,7 +11154,7 @@ } }, "x-panel-log": { - "BeforeFuntions": [ + "BeforeFunctions": [ { "db": "websites", "input_column": "id", @@ -11238,7 +11238,7 @@ } }, "x-panel-log": { - "BeforeFuntions": [ + "BeforeFunctions": [ { "db": "websites", "input_column": "id", @@ -11289,7 +11289,7 @@ } }, "x-panel-log": { - "BeforeFuntions": [ + "BeforeFunctions": [ { "db": "websites", "input_column": "id", @@ -11373,7 +11373,7 @@ } }, "x-panel-log": { - "BeforeFuntions": [ + "BeforeFunctions": [ { "db": "websites", "input_column": "id", @@ -11463,7 +11463,7 @@ } }, "x-panel-log": { - "BeforeFuntions": [], + "BeforeFunctions": [], "bodyKeys": [ "primaryDomain" ], @@ -11536,7 +11536,7 @@ } }, "x-panel-log": { - "BeforeFuntions": [ + "BeforeFunctions": [ { "db": "website_ssls", "input_column": "id", @@ -11587,7 +11587,7 @@ } }, "x-panel-log": { - "BeforeFuntions": [ + "BeforeFunctions": [ { "db": "website_ssls", "input_column": "id", @@ -11710,7 +11710,7 @@ } }, "x-panel-log": { - "BeforeFuntions": [ + "BeforeFunctions": [ { "db": "website_ssls", "input_column": "id", @@ -11792,7 +11792,7 @@ } }, "x-panel-log": { - "BeforeFuntions": [], + "BeforeFunctions": [], "bodyKeys": [ "primaryDomain" ], @@ -11870,7 +11870,7 @@ } }, "x-panel-log": { - "BeforeFuntions": [ + "BeforeFunctions": [ { "db": "websites", "input_column": "id", @@ -11921,7 +11921,7 @@ } }, "x-panel-log": { - "BeforeFuntions": [ + "BeforeFunctions": [ { "db": "websites", "input_column": "id", @@ -12932,7 +12932,7 @@ "dto.DashboardBase": { "type": "object", "properties": { - "appInstalldNumber": { + "appInstalledNumber": { "type": "integer" }, "cpuCores": { diff --git a/cmd/server/docs/swagger.yaml b/cmd/server/docs/swagger.yaml index e214bcf27..011ef614c 100644 --- a/cmd/server/docs/swagger.yaml +++ b/cmd/server/docs/swagger.yaml @@ -666,7 +666,7 @@ definitions: type: object dto.DashboardBase: properties: - appInstalldNumber: + appInstalledNumber: type: integer cpuCores: type: integer @@ -4271,7 +4271,7 @@ paths: tags: - App x-panel-log: - BeforeFuntions: + BeforeFunctions: - db: app_installs input_column: name input_value: name @@ -4421,7 +4421,7 @@ paths: tags: - App x-panel-log: - BeforeFuntions: [] + BeforeFunctions: [] bodyKeys: - installId formatEN: Application param update [installId] @@ -4487,7 +4487,7 @@ paths: tags: - App x-panel-log: - BeforeFuntions: + BeforeFunctions: - db: app_installs input_column: id input_value: installId @@ -4554,7 +4554,7 @@ paths: tags: - App x-panel-log: - BeforeFuntions: [] + BeforeFunctions: [] bodyKeys: - installId formatEN: Application param update [installId] @@ -4581,7 +4581,7 @@ paths: tags: - App x-panel-log: - BeforeFuntions: [] + BeforeFunctions: [] bodyKeys: - key - name @@ -4621,7 +4621,7 @@ paths: tags: - App x-panel-log: - BeforeFuntions: [] + BeforeFunctions: [] bodyKeys: [] formatEN: Sync the list of installed apps formatZH: 同步已安装应用列表 @@ -4681,7 +4681,7 @@ paths: tags: - App x-panel-log: - BeforeFuntions: [] + BeforeFunctions: [] bodyKeys: [] formatEN: App store synchronization formatZH: 应用商店同步 @@ -4805,7 +4805,7 @@ paths: tags: - Container x-panel-log: - BeforeFuntions: [] + BeforeFunctions: [] bodyKeys: - name - image @@ -4833,7 +4833,7 @@ paths: tags: - Container x-panel-log: - BeforeFuntions: [] + BeforeFunctions: [] bodyKeys: - name formatEN: clean container [name] logs @@ -4860,7 +4860,7 @@ paths: tags: - Container Compose x-panel-log: - BeforeFuntions: [] + BeforeFunctions: [] bodyKeys: - name formatEN: create compose [name] @@ -4887,7 +4887,7 @@ paths: tags: - Container Compose x-panel-log: - BeforeFuntions: [] + BeforeFunctions: [] bodyKeys: - name - operation @@ -4963,7 +4963,7 @@ paths: tags: - Container Compose x-panel-log: - BeforeFuntions: [] + BeforeFunctions: [] bodyKeys: - name formatEN: check compose [name] @@ -4990,7 +4990,7 @@ paths: tags: - Container Compose x-panel-log: - BeforeFuntions: [] + BeforeFunctions: [] bodyKeys: - name formatEN: update compose information [name] @@ -5047,7 +5047,7 @@ paths: tags: - Container Docker x-panel-log: - BeforeFuntions: [] + BeforeFunctions: [] bodyKeys: [] formatEN: Updated the docker daemon.json log option formatZH: 更新 docker daemon.json 日志配置 @@ -5073,7 +5073,7 @@ paths: tags: - Container Docker x-panel-log: - BeforeFuntions: [] + BeforeFunctions: [] bodyKeys: [] formatEN: Updated the docker daemon.json configuration formatZH: 更新 docker daemon.json 配置 @@ -5099,7 +5099,7 @@ paths: tags: - Container Docker x-panel-log: - BeforeFuntions: [] + BeforeFunctions: [] bodyKeys: - operation formatEN: '[operation] docker service' @@ -5160,7 +5160,7 @@ paths: tags: - Container Image x-panel-log: - BeforeFuntions: [] + BeforeFunctions: [] bodyKeys: - name formatEN: build image [name] @@ -5187,7 +5187,7 @@ paths: tags: - Container Image x-panel-log: - BeforeFuntions: [] + BeforeFunctions: [] bodyKeys: - path formatEN: load image from [path] @@ -5216,7 +5216,7 @@ paths: tags: - Container Image x-panel-log: - BeforeFuntions: + BeforeFunctions: - db: image_repos input_column: id input_value: repoID @@ -5252,7 +5252,7 @@ paths: tags: - Container Image x-panel-log: - BeforeFuntions: + BeforeFunctions: - db: image_repos input_column: id input_value: repoID @@ -5287,7 +5287,7 @@ paths: tags: - Container Image x-panel-log: - BeforeFuntions: [] + BeforeFunctions: [] bodyKeys: - names formatEN: remove image [names] @@ -5314,7 +5314,7 @@ paths: tags: - Container Image x-panel-log: - BeforeFuntions: [] + BeforeFunctions: [] bodyKeys: - tagName - path @@ -5367,7 +5367,7 @@ paths: tags: - Container Image x-panel-log: - BeforeFuntions: + BeforeFunctions: - db: image_repos input_column: id input_value: repoID @@ -5522,7 +5522,7 @@ paths: tags: - Container Network x-panel-log: - BeforeFuntions: [] + BeforeFunctions: [] bodyKeys: - name formatEN: create container network [name] @@ -5549,7 +5549,7 @@ paths: tags: - Container Network x-panel-log: - BeforeFuntions: [] + BeforeFunctions: [] bodyKeys: - names formatEN: delete container network [names] @@ -5600,7 +5600,7 @@ paths: tags: - Container x-panel-log: - BeforeFuntions: [] + BeforeFunctions: [] bodyKeys: - name - operation @@ -5631,7 +5631,7 @@ paths: tags: - Container x-panel-log: - BeforeFuntions: [] + BeforeFunctions: [] bodyKeys: - pruneType formatEN: clean container [pruneType] @@ -5676,7 +5676,7 @@ paths: tags: - Container Image-repo x-panel-log: - BeforeFuntions: [] + BeforeFunctions: [] bodyKeys: - name formatEN: create image repo [name] @@ -5705,7 +5705,7 @@ paths: tags: - Container Image-repo x-panel-log: - BeforeFuntions: + BeforeFunctions: - db: image_repos input_column: id input_value: ids @@ -5786,7 +5786,7 @@ paths: tags: - Container Image-repo x-panel-log: - BeforeFuntions: + BeforeFunctions: - db: image_repos input_column: id input_value: id @@ -5904,7 +5904,7 @@ paths: tags: - Container Compose-template x-panel-log: - BeforeFuntions: [] + BeforeFunctions: [] bodyKeys: - name formatEN: create compose template [name] @@ -5931,7 +5931,7 @@ paths: tags: - Container Compose-template x-panel-log: - BeforeFuntions: + BeforeFunctions: - db: compose_templates input_column: id input_value: ids @@ -5988,7 +5988,7 @@ paths: tags: - Container Compose-template x-panel-log: - BeforeFuntions: + BeforeFunctions: - db: compose_templates input_column: id input_value: id @@ -6021,7 +6021,7 @@ paths: tags: - Container x-panel-log: - BeforeFuntions: [] + BeforeFunctions: [] bodyKeys: - name - image @@ -6049,7 +6049,7 @@ paths: tags: - Container x-panel-log: - BeforeFuntions: [] + BeforeFunctions: [] bodyKeys: - name - image @@ -6095,7 +6095,7 @@ paths: tags: - Container Volume x-panel-log: - BeforeFuntions: [] + BeforeFunctions: [] bodyKeys: - name formatEN: create container volume [name] @@ -6122,7 +6122,7 @@ paths: tags: - Container Volume x-panel-log: - BeforeFuntions: [] + BeforeFunctions: [] bodyKeys: - names formatEN: delete container volume [names] @@ -6193,7 +6193,7 @@ paths: tags: - Cronjob x-panel-log: - BeforeFuntions: [] + BeforeFunctions: [] bodyKeys: - type - name @@ -6221,7 +6221,7 @@ paths: tags: - Cronjob x-panel-log: - BeforeFuntions: + BeforeFunctions: - db: cronjobs input_column: id input_value: ids @@ -6254,7 +6254,7 @@ paths: tags: - Cronjob x-panel-log: - BeforeFuntions: + BeforeFunctions: - db: job_records input_column: id input_value: recordID @@ -6287,7 +6287,7 @@ paths: tags: - Cronjob x-panel-log: - BeforeFuntions: + BeforeFunctions: - db: cronjobs input_column: id input_value: id @@ -6320,7 +6320,7 @@ paths: tags: - Cronjob x-panel-log: - BeforeFuntions: + BeforeFunctions: - db: cronjobs input_column: id input_value: id @@ -6397,7 +6397,7 @@ paths: tags: - Cronjob x-panel-log: - BeforeFuntions: + BeforeFunctions: - db: cronjobs input_column: id input_value: id @@ -6431,7 +6431,7 @@ paths: tags: - Cronjob x-panel-log: - BeforeFuntions: + BeforeFunctions: - db: cronjobs input_column: id input_value: id @@ -6516,7 +6516,7 @@ paths: tags: - Database Mysql x-panel-log: - BeforeFuntions: [] + BeforeFunctions: [] bodyKeys: - name formatEN: create mysql database [name] @@ -6565,7 +6565,7 @@ paths: tags: - Database Mysql x-panel-log: - BeforeFuntions: + BeforeFunctions: - db: database_mysqls input_column: id input_value: id @@ -6598,7 +6598,7 @@ paths: tags: - Database Mysql x-panel-log: - BeforeFuntions: + BeforeFunctions: - db: database_mysqls input_column: id input_value: id @@ -6631,7 +6631,7 @@ paths: tags: - Database Mysql x-panel-log: - BeforeFuntions: [] + BeforeFunctions: [] bodyKeys: [] formatEN: update the mysql database configuration information formatZH: 更新 mysql 数据库配置信息 @@ -6657,7 +6657,7 @@ paths: tags: - Database x-panel-log: - BeforeFuntions: [] + BeforeFunctions: [] bodyKeys: - name - type @@ -6698,7 +6698,7 @@ paths: tags: - Database x-panel-log: - BeforeFuntions: [] + BeforeFunctions: [] bodyKeys: - name - type @@ -6726,7 +6726,7 @@ paths: tags: - Database x-panel-log: - BeforeFuntions: + BeforeFunctions: - db: databases input_column: id input_value: ids @@ -6796,7 +6796,7 @@ paths: tags: - Database x-panel-log: - BeforeFuntions: [] + BeforeFunctions: [] bodyKeys: - name formatEN: update database [name] @@ -6823,7 +6823,7 @@ paths: tags: - Database Mysql x-panel-log: - BeforeFuntions: + BeforeFunctions: - db: database_mysqls input_column: id input_value: id @@ -6880,7 +6880,7 @@ paths: tags: - Database Mysql x-panel-log: - BeforeFuntions: + BeforeFunctions: - db: database_mysqls input_column: id input_value: id @@ -7011,7 +7011,7 @@ paths: tags: - Database Redis x-panel-log: - BeforeFuntions: [] + BeforeFunctions: [] bodyKeys: [] formatEN: update the redis database configuration information formatZH: 更新 redis 数据库配置信息 @@ -7037,7 +7037,7 @@ paths: tags: - Database Redis x-panel-log: - BeforeFuntions: [] + BeforeFunctions: [] bodyKeys: [] formatEN: update the redis database configuration information formatZH: 更新 redis 数据库配置信息 @@ -7063,7 +7063,7 @@ paths: tags: - Database Redis x-panel-log: - BeforeFuntions: [] + BeforeFunctions: [] bodyKeys: [] formatEN: change the password of the redis database formatZH: 修改 redis 数据库密码 @@ -7102,7 +7102,7 @@ paths: tags: - Database Redis x-panel-log: - BeforeFuntions: [] + BeforeFunctions: [] bodyKeys: [] formatEN: redis database persistence configuration update formatZH: redis 数据库持久化配置更新 @@ -7229,7 +7229,7 @@ paths: tags: - Database Mysql x-panel-log: - BeforeFuntions: [] + BeforeFunctions: [] bodyKeys: [] formatEN: adjust mysql database performance parameters formatZH: 调整 mysql 数据库性能参数 @@ -7255,7 +7255,7 @@ paths: tags: - File x-panel-log: - BeforeFuntions: [] + BeforeFunctions: [] bodyKeys: - path formatEN: Create dir or file [path] @@ -7282,7 +7282,7 @@ paths: tags: - File x-panel-log: - BeforeFuntions: [] + BeforeFunctions: [] bodyKeys: - paths formatEN: Batch delete dir or file [paths] @@ -7309,7 +7309,7 @@ paths: tags: - File x-panel-log: - BeforeFuntions: [] + BeforeFunctions: [] bodyKeys: - path formatEN: Check whether file [path] exists @@ -7336,7 +7336,7 @@ paths: tags: - File x-panel-log: - BeforeFuntions: [] + BeforeFunctions: [] bodyKeys: - name formatEN: Download file [name] @@ -7380,7 +7380,7 @@ paths: tags: - File x-panel-log: - BeforeFuntions: [] + BeforeFunctions: [] bodyKeys: - name formatEN: Compress file [name] @@ -7409,7 +7409,7 @@ paths: tags: - File x-panel-log: - BeforeFuntions: [] + BeforeFunctions: [] bodyKeys: - path formatEN: Load file content [path] @@ -7436,7 +7436,7 @@ paths: tags: - File x-panel-log: - BeforeFuntions: [] + BeforeFunctions: [] bodyKeys: - path formatEN: Decompress file [path] @@ -7463,7 +7463,7 @@ paths: tags: - File x-panel-log: - BeforeFuntions: [] + BeforeFunctions: [] bodyKeys: - path formatEN: Delete dir or file [path] @@ -7490,7 +7490,7 @@ paths: tags: - File x-panel-log: - BeforeFuntions: [] + BeforeFunctions: [] bodyKeys: - name formatEN: Download file [name] @@ -7517,7 +7517,7 @@ paths: tags: - File x-panel-log: - BeforeFuntions: [] + BeforeFunctions: [] bodyKeys: - path - mode @@ -7545,7 +7545,7 @@ paths: tags: - File x-panel-log: - BeforeFuntions: [] + BeforeFunctions: [] bodyKeys: - oldPaths - newPath @@ -7573,7 +7573,7 @@ paths: tags: - File x-panel-log: - BeforeFuntions: [] + BeforeFunctions: [] bodyKeys: - path - user @@ -7602,7 +7602,7 @@ paths: tags: - File x-panel-log: - BeforeFuntions: [] + BeforeFunctions: [] bodyKeys: - oldName - newName @@ -7630,7 +7630,7 @@ paths: tags: - File x-panel-log: - BeforeFuntions: [] + BeforeFunctions: [] bodyKeys: - path formatEN: Update file content [path] @@ -7679,7 +7679,7 @@ paths: tags: - File x-panel-log: - BeforeFuntions: [] + BeforeFunctions: [] bodyKeys: - path formatEN: Load file size [path] @@ -7727,7 +7727,7 @@ paths: tags: - File x-panel-log: - BeforeFuntions: [] + BeforeFunctions: [] bodyKeys: - path formatEN: Upload file [path] @@ -7778,7 +7778,7 @@ paths: tags: - File x-panel-log: - BeforeFuntions: [] + BeforeFunctions: [] bodyKeys: - url - path @@ -7807,7 +7807,7 @@ paths: tags: - System Group x-panel-log: - BeforeFuntions: [] + BeforeFunctions: [] bodyKeys: - name - type @@ -7835,7 +7835,7 @@ paths: tags: - System Group x-panel-log: - BeforeFuntions: + BeforeFunctions: - db: groups input_column: id input_value: id @@ -7898,7 +7898,7 @@ paths: tags: - System Group x-panel-log: - BeforeFuntions: [] + BeforeFunctions: [] bodyKeys: - name - type @@ -7926,7 +7926,7 @@ paths: tags: - SSH x-panel-log: - BeforeFuntions: [] + BeforeFunctions: [] bodyKeys: [] formatEN: update SSH conf formatZH: 修改 SSH 配置文件 @@ -7963,7 +7963,7 @@ paths: tags: - SSH x-panel-log: - BeforeFuntions: [] + BeforeFunctions: [] bodyKeys: [] formatEN: generate SSH secret formatZH: '生成 SSH 密钥 ' @@ -8033,7 +8033,7 @@ paths: tags: - SSH x-panel-log: - BeforeFuntions: [] + BeforeFunctions: [] bodyKeys: - operation formatEN: '[operation] SSH' @@ -8093,7 +8093,7 @@ paths: tags: - SSH x-panel-log: - BeforeFuntions: [] + BeforeFunctions: [] bodyKeys: - key - value @@ -8141,7 +8141,7 @@ paths: tags: - Host tool x-panel-log: - BeforeFuntions: [] + BeforeFunctions: [] bodyKeys: - operate formatEN: '[operate] tool config' @@ -8168,7 +8168,7 @@ paths: tags: - Host tool x-panel-log: - BeforeFuntions: [] + BeforeFunctions: [] bodyKeys: - type formatEN: create [type] config @@ -8215,7 +8215,7 @@ paths: tags: - Host tool x-panel-log: - BeforeFuntions: [] + BeforeFunctions: [] bodyKeys: - operate - type @@ -8255,7 +8255,7 @@ paths: tags: - Host tool x-panel-log: - BeforeFuntions: [] + BeforeFunctions: [] bodyKeys: - operate formatEN: '[operate] process' @@ -8282,7 +8282,7 @@ paths: tags: - Host tool x-panel-log: - BeforeFuntions: [] + BeforeFunctions: [] bodyKeys: - operate formatEN: '[operate] Supervisor Process Config file' @@ -8309,7 +8309,7 @@ paths: tags: - Host x-panel-log: - BeforeFuntions: [] + BeforeFunctions: [] bodyKeys: - name - addr @@ -8349,7 +8349,7 @@ paths: tags: - Command x-panel-log: - BeforeFuntions: [] + BeforeFunctions: [] bodyKeys: - name - command @@ -8377,7 +8377,7 @@ paths: tags: - Command x-panel-log: - BeforeFuntions: + BeforeFunctions: - db: commands input_column: id input_value: ids @@ -8432,7 +8432,7 @@ paths: tags: - Command x-panel-log: - BeforeFuntions: [] + BeforeFunctions: [] bodyKeys: - name formatEN: update quick command [name] @@ -8459,7 +8459,7 @@ paths: tags: - Host x-panel-log: - BeforeFuntions: + BeforeFunctions: - db: hosts input_column: id input_value: ids @@ -8525,7 +8525,7 @@ paths: tags: - Firewall x-panel-log: - BeforeFuntions: [] + BeforeFunctions: [] bodyKeys: - strategy - address @@ -8555,7 +8555,7 @@ paths: tags: - Firewall x-panel-log: - BeforeFuntions: [] + BeforeFunctions: [] bodyKeys: - operation formatEN: '[operation] firewall' @@ -8582,7 +8582,7 @@ paths: tags: - Firewall x-panel-log: - BeforeFuntions: [] + BeforeFunctions: [] bodyKeys: - port - strategy @@ -8781,7 +8781,7 @@ paths: tags: - Host x-panel-log: - BeforeFuntions: [] + BeforeFunctions: [] bodyKeys: - name - addr @@ -8809,7 +8809,7 @@ paths: tags: - Host x-panel-log: - BeforeFuntions: + BeforeFunctions: - db: hosts input_column: id input_value: id @@ -8845,7 +8845,7 @@ paths: tags: - Logs x-panel-log: - BeforeFuntions: [] + BeforeFunctions: [] bodyKeys: - logType formatEN: Clean the [logType] log information @@ -8951,7 +8951,7 @@ paths: tags: - OpenResty x-panel-log: - BeforeFuntions: [] + BeforeFunctions: [] bodyKeys: [] formatEN: Update nginx conf formatZH: 更新 nginx 配置 @@ -9014,7 +9014,7 @@ paths: tags: - OpenResty x-panel-log: - BeforeFuntions: + BeforeFunctions: - db: websites input_column: id input_value: websiteId @@ -9045,7 +9045,7 @@ paths: tags: - Process x-panel-log: - BeforeFuntions: [] + BeforeFunctions: [] bodyKeys: - PID formatEN: 结束进程 [PID] @@ -9072,7 +9072,7 @@ paths: tags: - Runtime x-panel-log: - BeforeFuntions: [] + BeforeFunctions: [] bodyKeys: - name formatEN: Create runtime [name] @@ -9118,7 +9118,7 @@ paths: tags: - Website x-panel-log: - BeforeFuntions: [] + BeforeFunctions: [] bodyKeys: - id formatEN: Delete website [name] @@ -9165,7 +9165,7 @@ paths: tags: - Runtime x-panel-log: - BeforeFuntions: [] + BeforeFunctions: [] bodyKeys: - id formatEN: Operate runtime [name] @@ -9212,7 +9212,7 @@ paths: tags: - Runtime x-panel-log: - BeforeFuntions: [] + BeforeFunctions: [] bodyKeys: - name formatEN: Update runtime [name] @@ -9239,7 +9239,7 @@ paths: tags: - Backup Account x-panel-log: - BeforeFuntions: [] + BeforeFunctions: [] bodyKeys: - type formatEN: create backup account [type] @@ -9266,7 +9266,7 @@ paths: tags: - Backup Account x-panel-log: - BeforeFuntions: [] + BeforeFunctions: [] bodyKeys: - type - name @@ -9295,7 +9295,7 @@ paths: tags: - Backup Account x-panel-log: - BeforeFuntions: + BeforeFunctions: - db: backup_accounts input_column: id input_value: id @@ -9343,7 +9343,7 @@ paths: tags: - Backup Account x-panel-log: - BeforeFuntions: + BeforeFunctions: - db: backup_records input_column: id input_value: ids @@ -9376,7 +9376,7 @@ paths: tags: - Backup Account x-panel-log: - BeforeFuntions: [] + BeforeFunctions: [] bodyKeys: - source - fileName @@ -9424,7 +9424,7 @@ paths: tags: - Backup Account x-panel-log: - BeforeFuntions: [] + BeforeFunctions: [] bodyKeys: - type - name @@ -9454,7 +9454,7 @@ paths: tags: - Backup Account x-panel-log: - BeforeFuntions: [] + BeforeFunctions: [] bodyKeys: - type - name @@ -9546,7 +9546,7 @@ paths: tags: - Backup Account x-panel-log: - BeforeFuntions: [] + BeforeFunctions: [] bodyKeys: - type formatEN: update backup account [types] @@ -9588,7 +9588,7 @@ paths: tags: - System Setting x-panel-log: - BeforeFuntions: [] + BeforeFunctions: [] bodyKeys: [] formatEN: Clean system junk files formatZH: 清理系统垃圾文件 @@ -9614,7 +9614,7 @@ paths: tags: - System Setting x-panel-log: - BeforeFuntions: [] + BeforeFunctions: [] bodyKeys: [] formatEN: reset an expired Password formatZH: 重置过期密码 @@ -9662,7 +9662,7 @@ paths: tags: - System Setting x-panel-log: - BeforeFuntions: [] + BeforeFunctions: [] bodyKeys: [] formatEN: bind mfa formatZH: mfa 绑定 @@ -9679,7 +9679,7 @@ paths: tags: - System Setting x-panel-log: - BeforeFuntions: [] + BeforeFunctions: [] bodyKeys: [] formatEN: clean monitor datas formatZH: 清空监控数据 @@ -9705,7 +9705,7 @@ paths: tags: - System Setting x-panel-log: - BeforeFuntions: [] + BeforeFunctions: [] bodyKeys: [] formatEN: update system password formatZH: 修改系统密码 @@ -9731,7 +9731,7 @@ paths: tags: - System Setting x-panel-log: - BeforeFuntions: [] + BeforeFunctions: [] bodyKeys: - serverPort formatEN: update system port => [serverPort] @@ -9749,7 +9749,7 @@ paths: tags: - System Setting x-panel-log: - BeforeFuntions: [] + BeforeFunctions: [] bodyKeys: [] formatEN: scan System Junk Files formatZH: 扫描系统垃圾文件 @@ -9799,7 +9799,7 @@ paths: tags: - System Setting x-panel-log: - BeforeFuntions: [] + BeforeFunctions: [] bodyKeys: - from - description @@ -9827,7 +9827,7 @@ paths: tags: - System Setting x-panel-log: - BeforeFuntions: + BeforeFunctions: - db: snapshots input_column: id input_value: ids @@ -9860,7 +9860,7 @@ paths: tags: - System Setting x-panel-log: - BeforeFuntions: + BeforeFunctions: - db: snapshots input_column: id input_value: id @@ -9894,7 +9894,7 @@ paths: tags: - System Setting x-panel-log: - BeforeFuntions: [] + BeforeFunctions: [] bodyKeys: - from - names @@ -9922,7 +9922,7 @@ paths: tags: - System Setting x-panel-log: - BeforeFuntions: + BeforeFunctions: - db: snapshots input_column: id input_value: id @@ -9955,7 +9955,7 @@ paths: tags: - System Setting x-panel-log: - BeforeFuntions: + BeforeFunctions: - db: snapshots input_column: id input_value: id @@ -10054,7 +10054,7 @@ paths: tags: - System Setting x-panel-log: - BeforeFuntions: [] + BeforeFunctions: [] bodyKeys: - ssl formatEN: update system ssl => [ssl] @@ -10094,7 +10094,7 @@ paths: tags: - System Setting x-panel-log: - BeforeFuntions: [] + BeforeFunctions: [] bodyKeys: - ntpSite formatEN: sync system time [ntpSite] @@ -10121,7 +10121,7 @@ paths: tags: - System Setting x-panel-log: - BeforeFuntions: [] + BeforeFunctions: [] bodyKeys: - key - value @@ -10168,7 +10168,7 @@ paths: tags: - System Setting x-panel-log: - BeforeFuntions: [] + BeforeFunctions: [] bodyKeys: - version formatEN: upgrade service => [version] @@ -10195,7 +10195,7 @@ paths: tags: - Website x-panel-log: - BeforeFuntions: [] + BeforeFunctions: [] bodyKeys: - primaryDomain formatEN: Create website [primaryDomain] @@ -10286,7 +10286,7 @@ paths: tags: - Website HTTPS x-panel-log: - BeforeFuntions: + BeforeFunctions: - db: websites input_column: id input_value: websiteId @@ -10321,7 +10321,7 @@ paths: tags: - Website Acme x-panel-log: - BeforeFuntions: [] + BeforeFunctions: [] bodyKeys: - email formatEN: Create website acme [email] @@ -10348,7 +10348,7 @@ paths: tags: - Website Acme x-panel-log: - BeforeFuntions: + BeforeFunctions: - db: website_acme_accounts input_column: id input_value: id @@ -10489,7 +10489,7 @@ paths: tags: - Website Nginx x-panel-log: - BeforeFuntions: + BeforeFunctions: - db: websites input_column: id input_value: websiteId @@ -10522,7 +10522,7 @@ paths: tags: - Website x-panel-log: - BeforeFuntions: + BeforeFunctions: - db: websites input_column: id input_value: id @@ -10556,7 +10556,7 @@ paths: tags: - Website x-panel-log: - BeforeFuntions: + BeforeFunctions: - db: websites input_column: id input_value: id @@ -10609,7 +10609,7 @@ paths: tags: - Website x-panel-log: - BeforeFuntions: + BeforeFunctions: - db: websites input_column: id input_value: id @@ -10642,7 +10642,7 @@ paths: tags: - Website x-panel-log: - BeforeFuntions: + BeforeFunctions: - db: websites input_column: id input_value: id @@ -10675,7 +10675,7 @@ paths: tags: - Website DNS x-panel-log: - BeforeFuntions: [] + BeforeFunctions: [] bodyKeys: - name formatEN: Create website dns [name] @@ -10702,7 +10702,7 @@ paths: tags: - Website DNS x-panel-log: - BeforeFuntions: + BeforeFunctions: - db: website_dns_accounts input_column: id input_value: id @@ -10757,7 +10757,7 @@ paths: tags: - Website DNS x-panel-log: - BeforeFuntions: [] + BeforeFunctions: [] bodyKeys: - name formatEN: Update website dns [name] @@ -10786,7 +10786,7 @@ paths: tags: - Website Domain x-panel-log: - BeforeFuntions: [] + BeforeFunctions: [] bodyKeys: - domain formatEN: Create domain [domain] @@ -10836,7 +10836,7 @@ paths: tags: - Website Domain x-panel-log: - BeforeFuntions: + BeforeFunctions: - db: website_domains input_column: id input_value: id @@ -10926,7 +10926,7 @@ paths: tags: - Website x-panel-log: - BeforeFuntions: + BeforeFunctions: - db: websites input_column: id input_value: id @@ -10960,7 +10960,7 @@ paths: tags: - Website Nginx x-panel-log: - BeforeFuntions: + BeforeFunctions: - db: websites input_column: id input_value: id @@ -10993,7 +10993,7 @@ paths: tags: - Website x-panel-log: - BeforeFuntions: + BeforeFunctions: - db: websites input_column: id input_value: id @@ -11042,7 +11042,7 @@ paths: tags: - Website PHP x-panel-log: - BeforeFuntions: + BeforeFunctions: - db: websites input_column: id input_value: id @@ -11096,7 +11096,7 @@ paths: tags: - Website PHP x-panel-log: - BeforeFuntions: + BeforeFunctions: - db: websites input_column: id input_value: websiteId @@ -11129,7 +11129,7 @@ paths: tags: - Website PHP x-panel-log: - BeforeFuntions: + BeforeFunctions: - db: websites input_column: id input_value: websiteId @@ -11182,7 +11182,7 @@ paths: tags: - Website x-panel-log: - BeforeFuntions: + BeforeFunctions: - db: websites input_column: id input_value: id @@ -11215,7 +11215,7 @@ paths: tags: - Website x-panel-log: - BeforeFuntions: + BeforeFunctions: - db: websites input_column: id input_value: websiteID @@ -11268,7 +11268,7 @@ paths: tags: - Website x-panel-log: - BeforeFuntions: + BeforeFunctions: - db: websites input_column: id input_value: websiteID @@ -11301,7 +11301,7 @@ paths: tags: - Website x-panel-log: - BeforeFuntions: + BeforeFunctions: - db: websites input_column: id input_value: websiteID @@ -11354,7 +11354,7 @@ paths: tags: - Website x-panel-log: - BeforeFuntions: + BeforeFunctions: - db: websites input_column: id input_value: websiteID @@ -11411,7 +11411,7 @@ paths: tags: - Website SSL x-panel-log: - BeforeFuntions: [] + BeforeFunctions: [] bodyKeys: - primaryDomain formatEN: Create website ssl [primaryDomain] @@ -11457,7 +11457,7 @@ paths: tags: - Website SSL x-panel-log: - BeforeFuntions: + BeforeFunctions: - db: website_ssls input_column: id input_value: id @@ -11490,7 +11490,7 @@ paths: tags: - Website SSL x-panel-log: - BeforeFuntions: + BeforeFunctions: - db: website_ssls input_column: id input_value: SSLId @@ -11567,7 +11567,7 @@ paths: tags: - Website SSL x-panel-log: - BeforeFuntions: + BeforeFunctions: - db: website_ssls input_column: id input_value: id @@ -11619,7 +11619,7 @@ paths: tags: - Website x-panel-log: - BeforeFuntions: [] + BeforeFunctions: [] bodyKeys: - primaryDomain formatEN: Update website [primaryDomain] @@ -11668,7 +11668,7 @@ paths: tags: - Website WAF x-panel-log: - BeforeFuntions: + BeforeFunctions: - db: websites input_column: id input_value: websiteId @@ -11701,7 +11701,7 @@ paths: tags: - Website WAF x-panel-log: - BeforeFuntions: + BeforeFunctions: - db: websites input_column: id input_value: websiteId diff --git a/frontend/src/api/interface/dashboard.ts b/frontend/src/api/interface/dashboard.ts index f750ad1c2..ca50312c0 100644 --- a/frontend/src/api/interface/dashboard.ts +++ b/frontend/src/api/interface/dashboard.ts @@ -3,7 +3,7 @@ export namespace Dashboard { websiteNumber: number; databaseNumber: number; cronjobNumber: number; - appInstalldNumber: number; + appInstalledNumber: number; hostname: string; os: string; diff --git a/frontend/src/components/backup/index.vue b/frontend/src/components/backup/index.vue index 846aa8d35..b510f1885 100644 --- a/frontend/src/components/backup/index.vue +++ b/frontend/src/components/backup/index.vue @@ -1,6 +1,6 @@