在服务列表中显示需要修复的错误

This commit is contained in:
刘祥超
2021-05-23 20:44:51 +08:00
parent 88e7246366
commit 0053949bc0
8 changed files with 117 additions and 0 deletions

View File

@@ -0,0 +1,24 @@
// Copyright 2021 Liuxiangchao iwind.liu@gmail.com. All rights reserved.
package servers
import (
"github.com/TeaOSLab/EdgeAdmin/internal/web/actions/actionutils"
"github.com/TeaOSLab/EdgeCommon/pkg/rpc/pb"
)
type FixLogAction struct {
actionutils.ParentAction
}
func (this *FixLogAction) RunPost(params struct {
LogId int64
}) {
_, err := this.RPC().NodeLogRPC().FixNodeLog(this.AdminContext(), &pb.FixNodeLogRequest{NodeLogId: params.LogId})
if err != nil {
this.ErrorPage(err)
return
}
this.Success()
}