feat: 优化UPF流量统计逻辑

This commit is contained in:
TsMask
2025-03-03 18:06:14 +08:00
parent 93e6fdb2b8
commit c286e68845
8 changed files with 157 additions and 56 deletions

View File

@@ -57,6 +57,6 @@ func (s UPFController) TotalFlow(c *gin.Context) {
return
}
data := s.kpiReportService.FindUPFTotalFlow(neInfo.RmUID, querys.Day)
c.JSON(200, resp.OkData(data))
up, down := s.kpiReportService.UPFTodayFlowFind(neInfo.RmUID, querys.Day)
c.JSON(200, resp.OkData(map[string]int64{"up": up, "down": down}))
}