Skip to content

Commit

Permalink
fix: 解决操作日志打印错误的问题 (#6899)
Browse files Browse the repository at this point in the history
  • Loading branch information
ssongliu committed Oct 30, 2024
1 parent c2bb422 commit 3d6a97e
Show file tree
Hide file tree
Showing 5 changed files with 515 additions and 56 deletions.
3 changes: 2 additions & 1 deletion backend/app/api/v1/dashboard.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package v1

import (
"errors"

"github.com/1Panel-dev/1Panel/backend/app/dto"

"github.com/1Panel-dev/1Panel/backend/app/api/v1/helper"
Expand Down Expand Up @@ -56,7 +57,7 @@ func (b *BaseApi) LoadDashboardBaseInfo(c *gin.Context) {
// @Tags Dashboard
// @Summary Load dashboard current info
// @Description 获取首页实时数据
// @Accept json
// @Accept json
// @Param request body dto.DashboardReq true "request"
// @Success 200 {object} dto.DashboardCurrent
// @Security ApiKeyAuth
Expand Down
2 changes: 1 addition & 1 deletion backend/app/api/v1/runtime.go
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ func (b *BaseApi) CreateRuntime(c *gin.Context) {
// @Success 200
// @Security ApiKeyAuth
// @Router /runtimes/del [post]
// @x-panel-log {"bodyKeys":["id"],"paramKeys":[],"BeforeFunctions":[],"formatZH":"删除网站 [name]","formatEN":"Delete website [name]"}
// @x-panel-log {"bodyKeys":["id"],"paramKeys":[],"BeforeFunctions":[],"formatZH":"删除运行环境 [name]","formatEN":"Delete runtime [name]"}
func (b *BaseApi) DeleteRuntime(c *gin.Context) {
var req request.RuntimeDelete
if err := helper.CheckBindAndValidate(&req, c); err != nil {
Expand Down
Loading

0 comments on commit 3d6a97e

Please sign in to comment.