mirror of
https://github.com/TeaOSLab/EdgeAdmin.git
synced 2025-12-13 10:10:28 +08:00
部分中文转换为多语言代号
This commit is contained in:
@@ -4,6 +4,7 @@ package metrics
|
||||
|
||||
import (
|
||||
"github.com/TeaOSLab/EdgeAdmin/internal/web/actions/actionutils"
|
||||
"github.com/TeaOSLab/EdgeCommon/pkg/langs/codes"
|
||||
"github.com/TeaOSLab/EdgeCommon/pkg/rpc/pb"
|
||||
)
|
||||
|
||||
@@ -14,7 +15,7 @@ type DeleteAction struct {
|
||||
func (this *DeleteAction) RunPost(params struct {
|
||||
ItemId int64
|
||||
}) {
|
||||
defer this.CreateLogInfo("删除统计指标")
|
||||
defer this.CreateLogInfo(codes.MetricItem_LogDeleteMetricItem)
|
||||
|
||||
_, err := this.RPC().MetricItemRPC().DeleteMetricItem(this.AdminContext(), &pb.DeleteMetricItemRequest{MetricItemId: params.ItemId})
|
||||
if err != nil {
|
||||
|
||||
Reference in New Issue
Block a user