add service
Some checks failed
Deploy Smart Search Backend Test / deploy (push) Failing after 28s

This commit is contained in:
vallyenfail
2026-01-19 19:29:53 +03:00
parent ff08bb2254
commit 6cb3063a1d
14 changed files with 12 additions and 3541 deletions

View File

@@ -2,6 +2,7 @@ package grpc
import (
"context"
"strconv"
"git.techease.ru/Smart-search/smart-search-back/pkg/errors"
pb "git.techease.ru/Smart-search/smart-search-back/pkg/pb/user"
@@ -40,10 +41,9 @@ func (h *UserHandler) GetStatistics(ctx context.Context, req *pb.GetStatisticsRe
}
return &pb.GetStatisticsResponse{
TotalRequests: int32(stats.RequestsCount),
SuccessfulRequests: int32(stats.SuppliersCount),
FailedRequests: 0,
TotalSpent: 0,
SuppliersCount: strconv.Itoa(stats.SuppliersCount),
RequestsCount: strconv.Itoa(stats.RequestsCount),
CreatedTz: strconv.Itoa(stats.CreatedTZ),
}, nil
}