feat(traffic): add protocol handling and update traffic statistics calculation

This commit is contained in:
Chang lue Tsen
2025-09-28 11:31:21 -04:00
parent 5aa9bb61b7
commit d74d636735
3 changed files with 51 additions and 21 deletions
@@ -41,6 +41,7 @@ func (l *ServerPushUserTrafficLogic) ServerPushUserTraffic(req *types.ServerPush
// Create traffic task
var request task.TrafficStatistics
request.ServerId = serverInfo.Id
request.Protocol = req.Protocol
tool.DeepCopy(&request.Logs, req.Traffic)
// Push traffic task