优化代码

This commit is contained in:
GoEdgeLab
2022-03-22 21:45:07 +08:00
parent 2b0e2b6888
commit 1e4143bcbb
148 changed files with 340 additions and 315 deletions

View File

@@ -86,11 +86,11 @@ func (this *ServerStatBoardChartService) FindAllEnabledServerStatBoardCharts(ctx
Type: metricChart.Type,
WidthDiv: types.Int32(metricChart.WidthDiv),
ParamsJSON: nil,
IsOn: metricChart.IsOn == 1,
IsOn: metricChart.IsOn,
MaxItems: types.Int32(metricChart.MaxItems),
MetricItem: &pb.MetricItem{
Id: int64(metricItem.Id),
IsOn: metricItem.IsOn == 1,
IsOn: metricItem.IsOn,
Code: metricItem.Code,
Category: metricItem.Category,
Name: metricItem.Name,