generated from PenaSide/GolangTemplate
parent
cc3423d5aa
commit
34a88a3a70
@ -8,8 +8,8 @@ import (
|
|||||||
"time"
|
"time"
|
||||||
|
|
||||||
"go.uber.org/zap"
|
"go.uber.org/zap"
|
||||||
"penahub.gitlab.yandexcloud.net/pena-services/customer/internal/app"
|
"gitea.pena/PenaSide/customer/internal/app"
|
||||||
"penahub.gitlab.yandexcloud.net/pena-services/customer/internal/initialize"
|
"gitea.pena/PenaSide/customer/internal/initialize"
|
||||||
// import for automatically updating linter rules
|
// import for automatically updating linter rules
|
||||||
_ "gitea.pena/PenaSide/linters-golang/pkg/dummy"
|
_ "gitea.pena/PenaSide/linters-golang/pkg/dummy"
|
||||||
)
|
)
|
||||||
|
2
go.mod
2
go.mod
@ -1,4 +1,4 @@
|
|||||||
module penahub.gitlab.yandexcloud.net/pena-services/customer
|
module gitea.pena/PenaSide/customer
|
||||||
|
|
||||||
go 1.22.0
|
go 1.22.0
|
||||||
|
|
||||||
|
@ -11,18 +11,18 @@ import (
|
|||||||
"penahub.gitlab.yandexcloud.net/backend/penahub_common/mongo"
|
"penahub.gitlab.yandexcloud.net/backend/penahub_common/mongo"
|
||||||
"penahub.gitlab.yandexcloud.net/external/trashlog/app"
|
"penahub.gitlab.yandexcloud.net/external/trashlog/app"
|
||||||
"penahub.gitlab.yandexcloud.net/external/trashlog/wrappers/zaptrashlog"
|
"penahub.gitlab.yandexcloud.net/external/trashlog/wrappers/zaptrashlog"
|
||||||
"penahub.gitlab.yandexcloud.net/pena-services/customer/internal/interface/controller/http"
|
"gitea.pena/PenaSide/customer/internal/interface/controller/http"
|
||||||
"syscall"
|
"syscall"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/twmb/franz-go/pkg/kgo"
|
"github.com/twmb/franz-go/pkg/kgo"
|
||||||
"go.uber.org/zap"
|
"go.uber.org/zap"
|
||||||
qutils "penahub.gitlab.yandexcloud.net/backend/quiz/common.git/utils"
|
qutils "penahub.gitlab.yandexcloud.net/backend/quiz/common.git/utils"
|
||||||
"penahub.gitlab.yandexcloud.net/pena-services/customer/internal/initialize"
|
"gitea.pena/PenaSide/customer/internal/initialize"
|
||||||
"penahub.gitlab.yandexcloud.net/pena-services/customer/internal/models"
|
"gitea.pena/PenaSide/customer/internal/models"
|
||||||
"penahub.gitlab.yandexcloud.net/pena-services/customer/internal/server"
|
"gitea.pena/PenaSide/customer/internal/server"
|
||||||
"penahub.gitlab.yandexcloud.net/pena-services/customer/pkg/closer"
|
"gitea.pena/PenaSide/customer/pkg/closer"
|
||||||
"penahub.gitlab.yandexcloud.net/pena-services/customer/pkg/kafka"
|
"gitea.pena/PenaSide/customer/pkg/kafka"
|
||||||
)
|
)
|
||||||
|
|
||||||
const (
|
const (
|
||||||
|
@ -4,7 +4,7 @@ import (
|
|||||||
"net/http"
|
"net/http"
|
||||||
|
|
||||||
"github.com/labstack/echo/v4"
|
"github.com/labstack/echo/v4"
|
||||||
"penahub.gitlab.yandexcloud.net/pena-services/customer/internal/models"
|
"gitea.pena/PenaSide/customer/internal/models"
|
||||||
)
|
)
|
||||||
|
|
||||||
var httpStatuses = map[ErrorType]int{
|
var httpStatuses = map[ErrorType]int{
|
||||||
|
@ -3,7 +3,7 @@ package initialize
|
|||||||
import (
|
import (
|
||||||
"github.com/twmb/franz-go/pkg/kgo"
|
"github.com/twmb/franz-go/pkg/kgo"
|
||||||
"go.uber.org/zap"
|
"go.uber.org/zap"
|
||||||
"penahub.gitlab.yandexcloud.net/pena-services/customer/internal/interface/broker/tariff"
|
"gitea.pena/PenaSide/customer/internal/interface/broker/tariff"
|
||||||
)
|
)
|
||||||
|
|
||||||
type BrokersDeps struct {
|
type BrokersDeps struct {
|
||||||
|
@ -6,7 +6,7 @@ import (
|
|||||||
"github.com/stretchr/testify/assert"
|
"github.com/stretchr/testify/assert"
|
||||||
"github.com/twmb/franz-go/pkg/kgo"
|
"github.com/twmb/franz-go/pkg/kgo"
|
||||||
"go.uber.org/zap"
|
"go.uber.org/zap"
|
||||||
"penahub.gitlab.yandexcloud.net/pena-services/customer/internal/initialize"
|
"gitea.pena/PenaSide/customer/internal/initialize"
|
||||||
)
|
)
|
||||||
|
|
||||||
func TestNewBrokers(t *testing.T) {
|
func TestNewBrokers(t *testing.T) {
|
||||||
|
@ -4,8 +4,8 @@ import (
|
|||||||
"github.com/gofiber/fiber/v2"
|
"github.com/gofiber/fiber/v2"
|
||||||
"go.uber.org/zap"
|
"go.uber.org/zap"
|
||||||
"gopkg.in/tucnak/telebot.v2"
|
"gopkg.in/tucnak/telebot.v2"
|
||||||
"penahub.gitlab.yandexcloud.net/pena-services/customer/internal/interface/client"
|
"gitea.pena/PenaSide/customer/internal/interface/client"
|
||||||
"penahub.gitlab.yandexcloud.net/pena-services/customer/internal/models"
|
"gitea.pena/PenaSide/customer/internal/models"
|
||||||
)
|
)
|
||||||
|
|
||||||
type ClientsDeps struct {
|
type ClientsDeps struct {
|
||||||
|
@ -5,8 +5,8 @@ import (
|
|||||||
|
|
||||||
"github.com/stretchr/testify/assert"
|
"github.com/stretchr/testify/assert"
|
||||||
"go.uber.org/zap"
|
"go.uber.org/zap"
|
||||||
"penahub.gitlab.yandexcloud.net/pena-services/customer/internal/initialize"
|
"gitea.pena/PenaSide/customer/internal/initialize"
|
||||||
"penahub.gitlab.yandexcloud.net/pena-services/customer/internal/models"
|
"gitea.pena/PenaSide/customer/internal/models"
|
||||||
)
|
)
|
||||||
|
|
||||||
func TestNewClients(t *testing.T) {
|
func TestNewClients(t *testing.T) {
|
||||||
|
@ -4,9 +4,9 @@ import (
|
|||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/golang-jwt/jwt/v5"
|
"github.com/golang-jwt/jwt/v5"
|
||||||
"penahub.gitlab.yandexcloud.net/pena-services/customer/internal/models"
|
"gitea.pena/PenaSide/customer/internal/models"
|
||||||
"penahub.gitlab.yandexcloud.net/pena-services/customer/internal/utils"
|
"gitea.pena/PenaSide/customer/internal/utils"
|
||||||
"penahub.gitlab.yandexcloud.net/pena-services/customer/pkg/env"
|
"gitea.pena/PenaSide/customer/pkg/env"
|
||||||
)
|
)
|
||||||
|
|
||||||
// TODO: обработать возможность читать конфиги ещё по json
|
// TODO: обработать возможность читать конфиги ещё по json
|
||||||
|
@ -7,8 +7,8 @@ import (
|
|||||||
"github.com/golang-jwt/jwt/v5"
|
"github.com/golang-jwt/jwt/v5"
|
||||||
"github.com/stretchr/testify/assert"
|
"github.com/stretchr/testify/assert"
|
||||||
"penahub.gitlab.yandexcloud.net/backend/penahub_common/mongo"
|
"penahub.gitlab.yandexcloud.net/backend/penahub_common/mongo"
|
||||||
"penahub.gitlab.yandexcloud.net/pena-services/customer/internal/initialize"
|
"gitea.pena/PenaSide/customer/internal/initialize"
|
||||||
"penahub.gitlab.yandexcloud.net/pena-services/customer/internal/models"
|
"gitea.pena/PenaSide/customer/internal/models"
|
||||||
)
|
)
|
||||||
|
|
||||||
func TestConfiguration(t *testing.T) {
|
func TestConfiguration(t *testing.T) {
|
||||||
|
@ -4,19 +4,19 @@ import (
|
|||||||
"github.com/themakers/hlog"
|
"github.com/themakers/hlog"
|
||||||
"go.uber.org/zap"
|
"go.uber.org/zap"
|
||||||
qutils "penahub.gitlab.yandexcloud.net/backend/quiz/common.git/utils"
|
qutils "penahub.gitlab.yandexcloud.net/backend/quiz/common.git/utils"
|
||||||
"penahub.gitlab.yandexcloud.net/pena-services/customer/internal/interface/broker/tariff"
|
"gitea.pena/PenaSide/customer/internal/interface/broker/tariff"
|
||||||
"penahub.gitlab.yandexcloud.net/pena-services/customer/internal/interface/controller/grpc/customer"
|
"gitea.pena/PenaSide/customer/internal/interface/controller/grpc/customer"
|
||||||
"penahub.gitlab.yandexcloud.net/pena-services/customer/internal/interface/controller/grpc/payment"
|
"gitea.pena/PenaSide/customer/internal/interface/controller/grpc/payment"
|
||||||
"penahub.gitlab.yandexcloud.net/pena-services/customer/internal/interface/controller/http"
|
"gitea.pena/PenaSide/customer/internal/interface/controller/http"
|
||||||
"penahub.gitlab.yandexcloud.net/pena-services/customer/internal/interface/controller/http/account_admin"
|
"gitea.pena/PenaSide/customer/internal/interface/controller/http/account_admin"
|
||||||
"penahub.gitlab.yandexcloud.net/pena-services/customer/internal/interface/controller/http/account_client"
|
"gitea.pena/PenaSide/customer/internal/interface/controller/http/account_client"
|
||||||
"penahub.gitlab.yandexcloud.net/pena-services/customer/internal/interface/controller/http/cart_client"
|
"gitea.pena/PenaSide/customer/internal/interface/controller/http/cart_client"
|
||||||
"penahub.gitlab.yandexcloud.net/pena-services/customer/internal/interface/controller/http/currency_admin"
|
"gitea.pena/PenaSide/customer/internal/interface/controller/http/currency_admin"
|
||||||
"penahub.gitlab.yandexcloud.net/pena-services/customer/internal/interface/controller/http/currency_client"
|
"gitea.pena/PenaSide/customer/internal/interface/controller/http/currency_client"
|
||||||
"penahub.gitlab.yandexcloud.net/pena-services/customer/internal/interface/controller/http/history_admin"
|
"gitea.pena/PenaSide/customer/internal/interface/controller/http/history_admin"
|
||||||
"penahub.gitlab.yandexcloud.net/pena-services/customer/internal/interface/controller/http/history_client"
|
"gitea.pena/PenaSide/customer/internal/interface/controller/http/history_client"
|
||||||
"penahub.gitlab.yandexcloud.net/pena-services/customer/internal/interface/controller/http/wallet_client"
|
"gitea.pena/PenaSide/customer/internal/interface/controller/http/wallet_client"
|
||||||
"penahub.gitlab.yandexcloud.net/pena-services/customer/internal/models"
|
"gitea.pena/PenaSide/customer/internal/models"
|
||||||
)
|
)
|
||||||
|
|
||||||
type RpcControllersDeps struct {
|
type RpcControllersDeps struct {
|
||||||
|
@ -6,8 +6,8 @@ import (
|
|||||||
"github.com/stretchr/testify/assert"
|
"github.com/stretchr/testify/assert"
|
||||||
"go.mongodb.org/mongo-driver/mongo/integration/mtest"
|
"go.mongodb.org/mongo-driver/mongo/integration/mtest"
|
||||||
"go.uber.org/zap"
|
"go.uber.org/zap"
|
||||||
"penahub.gitlab.yandexcloud.net/pena-services/customer/internal/initialize"
|
"gitea.pena/PenaSide/customer/internal/initialize"
|
||||||
"penahub.gitlab.yandexcloud.net/pena-services/customer/internal/models"
|
"gitea.pena/PenaSide/customer/internal/models"
|
||||||
)
|
)
|
||||||
|
|
||||||
func TestNewControllers(t *testing.T) {
|
func TestNewControllers(t *testing.T) {
|
||||||
|
@ -3,7 +3,7 @@ package initialize
|
|||||||
import (
|
import (
|
||||||
"go.mongodb.org/mongo-driver/mongo"
|
"go.mongodb.org/mongo-driver/mongo"
|
||||||
"go.uber.org/zap"
|
"go.uber.org/zap"
|
||||||
"penahub.gitlab.yandexcloud.net/pena-services/customer/internal/interface/repository"
|
"gitea.pena/PenaSide/customer/internal/interface/repository"
|
||||||
)
|
)
|
||||||
|
|
||||||
type RepositoriesDeps struct {
|
type RepositoriesDeps struct {
|
||||||
|
@ -6,7 +6,7 @@ import (
|
|||||||
"github.com/stretchr/testify/assert"
|
"github.com/stretchr/testify/assert"
|
||||||
"go.mongodb.org/mongo-driver/mongo/integration/mtest"
|
"go.mongodb.org/mongo-driver/mongo/integration/mtest"
|
||||||
"go.uber.org/zap"
|
"go.uber.org/zap"
|
||||||
"penahub.gitlab.yandexcloud.net/pena-services/customer/internal/initialize"
|
"gitea.pena/PenaSide/customer/internal/initialize"
|
||||||
)
|
)
|
||||||
|
|
||||||
func TestNewRepositories(t *testing.T) {
|
func TestNewRepositories(t *testing.T) {
|
||||||
|
@ -3,11 +3,11 @@ package initialize
|
|||||||
import (
|
import (
|
||||||
"go.uber.org/zap"
|
"go.uber.org/zap"
|
||||||
tb "gopkg.in/tucnak/telebot.v2"
|
tb "gopkg.in/tucnak/telebot.v2"
|
||||||
"penahub.gitlab.yandexcloud.net/pena-services/customer/internal/models"
|
"gitea.pena/PenaSide/customer/internal/models"
|
||||||
"penahub.gitlab.yandexcloud.net/pena-services/customer/internal/service/broker/tariff"
|
"gitea.pena/PenaSide/customer/internal/service/broker/tariff"
|
||||||
"penahub.gitlab.yandexcloud.net/pena-services/customer/internal/service/callback"
|
"gitea.pena/PenaSide/customer/internal/service/callback"
|
||||||
"penahub.gitlab.yandexcloud.net/pena-services/customer/internal/service/history"
|
"gitea.pena/PenaSide/customer/internal/service/history"
|
||||||
"penahub.gitlab.yandexcloud.net/pena-services/customer/internal/service/wallet"
|
"gitea.pena/PenaSide/customer/internal/service/wallet"
|
||||||
)
|
)
|
||||||
|
|
||||||
type ServicesDeps struct {
|
type ServicesDeps struct {
|
||||||
|
@ -7,8 +7,8 @@ import (
|
|||||||
"github.com/twmb/franz-go/pkg/kgo"
|
"github.com/twmb/franz-go/pkg/kgo"
|
||||||
"go.mongodb.org/mongo-driver/mongo/integration/mtest"
|
"go.mongodb.org/mongo-driver/mongo/integration/mtest"
|
||||||
"go.uber.org/zap"
|
"go.uber.org/zap"
|
||||||
"penahub.gitlab.yandexcloud.net/pena-services/customer/internal/initialize"
|
"gitea.pena/PenaSide/customer/internal/initialize"
|
||||||
"penahub.gitlab.yandexcloud.net/pena-services/customer/internal/models"
|
"gitea.pena/PenaSide/customer/internal/models"
|
||||||
)
|
)
|
||||||
|
|
||||||
func TestNewServices(t *testing.T) {
|
func TestNewServices(t *testing.T) {
|
||||||
|
@ -8,9 +8,9 @@ import (
|
|||||||
"github.com/twmb/franz-go/pkg/kgo"
|
"github.com/twmb/franz-go/pkg/kgo"
|
||||||
"go.uber.org/zap"
|
"go.uber.org/zap"
|
||||||
"google.golang.org/protobuf/proto"
|
"google.golang.org/protobuf/proto"
|
||||||
"penahub.gitlab.yandexcloud.net/pena-services/customer/internal/models"
|
"gitea.pena/PenaSide/customer/internal/models"
|
||||||
"penahub.gitlab.yandexcloud.net/pena-services/customer/internal/proto/broker"
|
"gitea.pena/PenaSide/customer/internal/proto/broker"
|
||||||
"penahub.gitlab.yandexcloud.net/pena-services/customer/internal/utils/transfer"
|
"gitea.pena/PenaSide/customer/internal/utils/transfer"
|
||||||
)
|
)
|
||||||
|
|
||||||
type ConsumerDeps struct {
|
type ConsumerDeps struct {
|
||||||
|
@ -8,9 +8,9 @@ import (
|
|||||||
"github.com/twmb/franz-go/pkg/kgo"
|
"github.com/twmb/franz-go/pkg/kgo"
|
||||||
"go.uber.org/zap"
|
"go.uber.org/zap"
|
||||||
"google.golang.org/protobuf/proto"
|
"google.golang.org/protobuf/proto"
|
||||||
"penahub.gitlab.yandexcloud.net/pena-services/customer/internal/errors"
|
"gitea.pena/PenaSide/customer/internal/errors"
|
||||||
"penahub.gitlab.yandexcloud.net/pena-services/customer/internal/models"
|
"gitea.pena/PenaSide/customer/internal/models"
|
||||||
"penahub.gitlab.yandexcloud.net/pena-services/customer/internal/utils/transfer"
|
"gitea.pena/PenaSide/customer/internal/utils/transfer"
|
||||||
)
|
)
|
||||||
|
|
||||||
type ProducerDeps struct {
|
type ProducerDeps struct {
|
||||||
|
@ -7,10 +7,10 @@ import (
|
|||||||
"net/url"
|
"net/url"
|
||||||
|
|
||||||
"go.uber.org/zap"
|
"go.uber.org/zap"
|
||||||
"penahub.gitlab.yandexcloud.net/pena-services/customer/internal/errors"
|
"gitea.pena/PenaSide/customer/internal/errors"
|
||||||
"penahub.gitlab.yandexcloud.net/pena-services/customer/internal/models"
|
"gitea.pena/PenaSide/customer/internal/models"
|
||||||
"penahub.gitlab.yandexcloud.net/pena-services/customer/internal/utils"
|
"gitea.pena/PenaSide/customer/internal/utils"
|
||||||
"penahub.gitlab.yandexcloud.net/pena-services/customer/pkg/client"
|
"gitea.pena/PenaSide/customer/pkg/client"
|
||||||
)
|
)
|
||||||
|
|
||||||
type AuthClientDeps struct {
|
type AuthClientDeps struct {
|
||||||
|
@ -8,9 +8,9 @@ import (
|
|||||||
"google.golang.org/grpc/credentials/insecure"
|
"google.golang.org/grpc/credentials/insecure"
|
||||||
"io"
|
"io"
|
||||||
"log"
|
"log"
|
||||||
"penahub.gitlab.yandexcloud.net/pena-services/customer/internal/errors"
|
"gitea.pena/PenaSide/customer/internal/errors"
|
||||||
codeword_rpc "penahub.gitlab.yandexcloud.net/pena-services/customer/internal/proto/codeword"
|
codeword_rpc "gitea.pena/PenaSide/customer/internal/proto/codeword"
|
||||||
"penahub.gitlab.yandexcloud.net/pena-services/customer/pkg/validate"
|
"gitea.pena/PenaSide/customer/pkg/validate"
|
||||||
)
|
)
|
||||||
|
|
||||||
type CodewordClientDeps struct {
|
type CodewordClientDeps struct {
|
||||||
|
@ -7,10 +7,10 @@ import (
|
|||||||
"strconv"
|
"strconv"
|
||||||
|
|
||||||
"go.uber.org/zap"
|
"go.uber.org/zap"
|
||||||
"penahub.gitlab.yandexcloud.net/pena-services/customer/internal/errors"
|
"gitea.pena/PenaSide/customer/internal/errors"
|
||||||
"penahub.gitlab.yandexcloud.net/pena-services/customer/internal/models"
|
"gitea.pena/PenaSide/customer/internal/models"
|
||||||
"penahub.gitlab.yandexcloud.net/pena-services/customer/internal/utils"
|
"gitea.pena/PenaSide/customer/internal/utils"
|
||||||
"penahub.gitlab.yandexcloud.net/pena-services/customer/pkg/client"
|
"gitea.pena/PenaSide/customer/pkg/client"
|
||||||
)
|
)
|
||||||
|
|
||||||
type CurrencyClientDeps struct {
|
type CurrencyClientDeps struct {
|
||||||
|
@ -8,9 +8,9 @@ import (
|
|||||||
"go.uber.org/zap"
|
"go.uber.org/zap"
|
||||||
"google.golang.org/grpc"
|
"google.golang.org/grpc"
|
||||||
"google.golang.org/grpc/credentials/insecure"
|
"google.golang.org/grpc/credentials/insecure"
|
||||||
"penahub.gitlab.yandexcloud.net/pena-services/customer/internal/errors"
|
"gitea.pena/PenaSide/customer/internal/errors"
|
||||||
"penahub.gitlab.yandexcloud.net/pena-services/customer/internal/proto/discount"
|
"gitea.pena/PenaSide/customer/internal/proto/discount"
|
||||||
"penahub.gitlab.yandexcloud.net/pena-services/customer/pkg/validate"
|
"gitea.pena/PenaSide/customer/pkg/validate"
|
||||||
)
|
)
|
||||||
|
|
||||||
type DiscountClientDeps struct {
|
type DiscountClientDeps struct {
|
||||||
|
@ -7,10 +7,10 @@ import (
|
|||||||
"net/url"
|
"net/url"
|
||||||
|
|
||||||
"go.uber.org/zap"
|
"go.uber.org/zap"
|
||||||
"penahub.gitlab.yandexcloud.net/pena-services/customer/internal/errors"
|
"gitea.pena/PenaSide/customer/internal/errors"
|
||||||
"penahub.gitlab.yandexcloud.net/pena-services/customer/internal/models"
|
"gitea.pena/PenaSide/customer/internal/models"
|
||||||
"penahub.gitlab.yandexcloud.net/pena-services/customer/internal/utils"
|
"gitea.pena/PenaSide/customer/internal/utils"
|
||||||
"penahub.gitlab.yandexcloud.net/pena-services/customer/pkg/client"
|
"gitea.pena/PenaSide/customer/pkg/client"
|
||||||
)
|
)
|
||||||
|
|
||||||
type HubadminClientDeps struct {
|
type HubadminClientDeps struct {
|
||||||
|
@ -6,8 +6,8 @@ import (
|
|||||||
"github.com/gofiber/fiber/v2"
|
"github.com/gofiber/fiber/v2"
|
||||||
"go.uber.org/zap"
|
"go.uber.org/zap"
|
||||||
"mime/multipart"
|
"mime/multipart"
|
||||||
"penahub.gitlab.yandexcloud.net/pena-services/customer/internal/errors"
|
"gitea.pena/PenaSide/customer/internal/errors"
|
||||||
"penahub.gitlab.yandexcloud.net/pena-services/customer/internal/models"
|
"gitea.pena/PenaSide/customer/internal/models"
|
||||||
)
|
)
|
||||||
|
|
||||||
type MailClientDeps struct {
|
type MailClientDeps struct {
|
||||||
|
@ -8,9 +8,9 @@ import (
|
|||||||
"go.uber.org/zap"
|
"go.uber.org/zap"
|
||||||
"google.golang.org/grpc"
|
"google.golang.org/grpc"
|
||||||
"google.golang.org/grpc/credentials/insecure"
|
"google.golang.org/grpc/credentials/insecure"
|
||||||
"penahub.gitlab.yandexcloud.net/pena-services/customer/internal/errors"
|
"gitea.pena/PenaSide/customer/internal/errors"
|
||||||
"penahub.gitlab.yandexcloud.net/pena-services/customer/internal/proto/treasurer"
|
"gitea.pena/PenaSide/customer/internal/proto/treasurer"
|
||||||
"penahub.gitlab.yandexcloud.net/pena-services/customer/pkg/validate"
|
"gitea.pena/PenaSide/customer/pkg/validate"
|
||||||
)
|
)
|
||||||
|
|
||||||
type PaymentClientDeps struct {
|
type PaymentClientDeps struct {
|
||||||
|
@ -3,8 +3,8 @@ package client
|
|||||||
import (
|
import (
|
||||||
"fmt"
|
"fmt"
|
||||||
tb "gopkg.in/tucnak/telebot.v2"
|
tb "gopkg.in/tucnak/telebot.v2"
|
||||||
"penahub.gitlab.yandexcloud.net/pena-services/customer/internal/errors"
|
"gitea.pena/PenaSide/customer/internal/errors"
|
||||||
"penahub.gitlab.yandexcloud.net/pena-services/customer/internal/models"
|
"gitea.pena/PenaSide/customer/internal/models"
|
||||||
)
|
)
|
||||||
|
|
||||||
type TelegramClient struct {
|
type TelegramClient struct {
|
||||||
|
@ -3,7 +3,7 @@ package client
|
|||||||
import (
|
import (
|
||||||
"fmt"
|
"fmt"
|
||||||
tb "gopkg.in/tucnak/telebot.v2"
|
tb "gopkg.in/tucnak/telebot.v2"
|
||||||
"penahub.gitlab.yandexcloud.net/pena-services/customer/internal/models"
|
"gitea.pena/PenaSide/customer/internal/models"
|
||||||
"testing"
|
"testing"
|
||||||
"time"
|
"time"
|
||||||
)
|
)
|
||||||
|
@ -9,8 +9,8 @@ import (
|
|||||||
"net/http"
|
"net/http"
|
||||||
|
|
||||||
"go.uber.org/zap"
|
"go.uber.org/zap"
|
||||||
"penahub.gitlab.yandexcloud.net/pena-services/customer/internal/errors"
|
"gitea.pena/PenaSide/customer/internal/errors"
|
||||||
"penahub.gitlab.yandexcloud.net/pena-services/customer/internal/models"
|
"gitea.pena/PenaSide/customer/internal/models"
|
||||||
)
|
)
|
||||||
|
|
||||||
type TemplateClientDeps struct {
|
type TemplateClientDeps struct {
|
||||||
|
@ -7,9 +7,9 @@ import (
|
|||||||
"net/url"
|
"net/url"
|
||||||
|
|
||||||
"go.uber.org/zap"
|
"go.uber.org/zap"
|
||||||
"penahub.gitlab.yandexcloud.net/pena-services/customer/internal/errors"
|
"gitea.pena/PenaSide/customer/internal/errors"
|
||||||
"penahub.gitlab.yandexcloud.net/pena-services/customer/internal/models"
|
"gitea.pena/PenaSide/customer/internal/models"
|
||||||
"penahub.gitlab.yandexcloud.net/pena-services/customer/pkg/client"
|
"gitea.pena/PenaSide/customer/pkg/client"
|
||||||
)
|
)
|
||||||
|
|
||||||
type VerificationClientDeps struct {
|
type VerificationClientDeps struct {
|
||||||
|
@ -4,14 +4,14 @@ import (
|
|||||||
"context"
|
"context"
|
||||||
"google.golang.org/protobuf/types/known/timestamppb"
|
"google.golang.org/protobuf/types/known/timestamppb"
|
||||||
"log"
|
"log"
|
||||||
"penahub.gitlab.yandexcloud.net/pena-services/customer/internal/interface/repository"
|
"gitea.pena/PenaSide/customer/internal/interface/repository"
|
||||||
|
|
||||||
"go.uber.org/zap"
|
"go.uber.org/zap"
|
||||||
"google.golang.org/protobuf/types/known/emptypb"
|
"google.golang.org/protobuf/types/known/emptypb"
|
||||||
"penahub.gitlab.yandexcloud.net/pena-services/customer/internal/errors"
|
"gitea.pena/PenaSide/customer/internal/errors"
|
||||||
"penahub.gitlab.yandexcloud.net/pena-services/customer/internal/models"
|
"gitea.pena/PenaSide/customer/internal/models"
|
||||||
"penahub.gitlab.yandexcloud.net/pena-services/customer/internal/proto/customer"
|
"gitea.pena/PenaSide/customer/internal/proto/customer"
|
||||||
"penahub.gitlab.yandexcloud.net/pena-services/customer/internal/service/history"
|
"gitea.pena/PenaSide/customer/internal/service/history"
|
||||||
)
|
)
|
||||||
|
|
||||||
type Deps struct {
|
type Deps struct {
|
||||||
|
@ -7,10 +7,10 @@ import (
|
|||||||
|
|
||||||
"go.uber.org/zap"
|
"go.uber.org/zap"
|
||||||
"google.golang.org/protobuf/types/known/emptypb"
|
"google.golang.org/protobuf/types/known/emptypb"
|
||||||
"penahub.gitlab.yandexcloud.net/pena-services/customer/internal/errors"
|
"gitea.pena/PenaSide/customer/internal/errors"
|
||||||
"penahub.gitlab.yandexcloud.net/pena-services/customer/internal/models"
|
"gitea.pena/PenaSide/customer/internal/models"
|
||||||
"penahub.gitlab.yandexcloud.net/pena-services/customer/internal/proto/payment_callback"
|
"gitea.pena/PenaSide/customer/internal/proto/payment_callback"
|
||||||
"penahub.gitlab.yandexcloud.net/pena-services/customer/internal/service/callback"
|
"gitea.pena/PenaSide/customer/internal/service/callback"
|
||||||
)
|
)
|
||||||
|
|
||||||
type Deps struct {
|
type Deps struct {
|
||||||
|
@ -4,9 +4,9 @@ import (
|
|||||||
"github.com/gofiber/fiber/v2"
|
"github.com/gofiber/fiber/v2"
|
||||||
"go.uber.org/zap"
|
"go.uber.org/zap"
|
||||||
"math"
|
"math"
|
||||||
"penahub.gitlab.yandexcloud.net/pena-services/customer/internal/interface/controller/http"
|
"gitea.pena/PenaSide/customer/internal/interface/controller/http"
|
||||||
"penahub.gitlab.yandexcloud.net/pena-services/customer/internal/interface/repository"
|
"gitea.pena/PenaSide/customer/internal/interface/repository"
|
||||||
"penahub.gitlab.yandexcloud.net/pena-services/customer/internal/models"
|
"gitea.pena/PenaSide/customer/internal/models"
|
||||||
"strconv"
|
"strconv"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -9,11 +9,11 @@ import (
|
|||||||
"go.uber.org/zap"
|
"go.uber.org/zap"
|
||||||
"penahub.gitlab.yandexcloud.net/backend/penahub_common/log_mw"
|
"penahub.gitlab.yandexcloud.net/backend/penahub_common/log_mw"
|
||||||
qutils "penahub.gitlab.yandexcloud.net/backend/quiz/common.git/utils"
|
qutils "penahub.gitlab.yandexcloud.net/backend/quiz/common.git/utils"
|
||||||
"penahub.gitlab.yandexcloud.net/pena-services/customer/internal/errors"
|
"gitea.pena/PenaSide/customer/internal/errors"
|
||||||
"penahub.gitlab.yandexcloud.net/pena-services/customer/internal/interface/client"
|
"gitea.pena/PenaSide/customer/internal/interface/client"
|
||||||
"penahub.gitlab.yandexcloud.net/pena-services/customer/internal/interface/controller/http"
|
"gitea.pena/PenaSide/customer/internal/interface/controller/http"
|
||||||
"penahub.gitlab.yandexcloud.net/pena-services/customer/internal/interface/repository"
|
"gitea.pena/PenaSide/customer/internal/interface/repository"
|
||||||
"penahub.gitlab.yandexcloud.net/pena-services/customer/internal/models"
|
"gitea.pena/PenaSide/customer/internal/models"
|
||||||
"time"
|
"time"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -5,16 +5,16 @@ import (
|
|||||||
"go.uber.org/zap"
|
"go.uber.org/zap"
|
||||||
"google.golang.org/protobuf/types/known/timestamppb"
|
"google.golang.org/protobuf/types/known/timestamppb"
|
||||||
"penahub.gitlab.yandexcloud.net/backend/penahub_common/log_mw"
|
"penahub.gitlab.yandexcloud.net/backend/penahub_common/log_mw"
|
||||||
"penahub.gitlab.yandexcloud.net/pena-services/customer/internal/errors"
|
"gitea.pena/PenaSide/customer/internal/errors"
|
||||||
"penahub.gitlab.yandexcloud.net/pena-services/customer/internal/interface/broker/tariff"
|
"gitea.pena/PenaSide/customer/internal/interface/broker/tariff"
|
||||||
"penahub.gitlab.yandexcloud.net/pena-services/customer/internal/interface/client"
|
"gitea.pena/PenaSide/customer/internal/interface/client"
|
||||||
"penahub.gitlab.yandexcloud.net/pena-services/customer/internal/interface/controller/http"
|
"gitea.pena/PenaSide/customer/internal/interface/controller/http"
|
||||||
"penahub.gitlab.yandexcloud.net/pena-services/customer/internal/interface/repository"
|
"gitea.pena/PenaSide/customer/internal/interface/repository"
|
||||||
"penahub.gitlab.yandexcloud.net/pena-services/customer/internal/models"
|
"gitea.pena/PenaSide/customer/internal/models"
|
||||||
"penahub.gitlab.yandexcloud.net/pena-services/customer/internal/proto/discount"
|
"gitea.pena/PenaSide/customer/internal/proto/discount"
|
||||||
"penahub.gitlab.yandexcloud.net/pena-services/customer/internal/utils"
|
"gitea.pena/PenaSide/customer/internal/utils"
|
||||||
"penahub.gitlab.yandexcloud.net/pena-services/customer/internal/utils/transfer"
|
"gitea.pena/PenaSide/customer/internal/utils/transfer"
|
||||||
"penahub.gitlab.yandexcloud.net/pena-services/customer/pkg/validate"
|
"gitea.pena/PenaSide/customer/pkg/validate"
|
||||||
"strings"
|
"strings"
|
||||||
"sync"
|
"sync"
|
||||||
"time"
|
"time"
|
||||||
|
@ -3,10 +3,10 @@ package currency_admin
|
|||||||
import (
|
import (
|
||||||
"github.com/gofiber/fiber/v2"
|
"github.com/gofiber/fiber/v2"
|
||||||
"go.uber.org/zap"
|
"go.uber.org/zap"
|
||||||
"penahub.gitlab.yandexcloud.net/pena-services/customer/internal/errors"
|
"gitea.pena/PenaSide/customer/internal/errors"
|
||||||
"penahub.gitlab.yandexcloud.net/pena-services/customer/internal/interface/controller/http"
|
"gitea.pena/PenaSide/customer/internal/interface/controller/http"
|
||||||
"penahub.gitlab.yandexcloud.net/pena-services/customer/internal/interface/repository"
|
"gitea.pena/PenaSide/customer/internal/interface/repository"
|
||||||
"penahub.gitlab.yandexcloud.net/pena-services/customer/internal/models"
|
"gitea.pena/PenaSide/customer/internal/models"
|
||||||
)
|
)
|
||||||
|
|
||||||
type Deps struct {
|
type Deps struct {
|
||||||
|
@ -3,10 +3,10 @@ package currency_client
|
|||||||
import (
|
import (
|
||||||
"github.com/gofiber/fiber/v2"
|
"github.com/gofiber/fiber/v2"
|
||||||
"go.uber.org/zap"
|
"go.uber.org/zap"
|
||||||
"penahub.gitlab.yandexcloud.net/pena-services/customer/internal/errors"
|
"gitea.pena/PenaSide/customer/internal/errors"
|
||||||
"penahub.gitlab.yandexcloud.net/pena-services/customer/internal/interface/controller/http"
|
"gitea.pena/PenaSide/customer/internal/interface/controller/http"
|
||||||
"penahub.gitlab.yandexcloud.net/pena-services/customer/internal/interface/repository"
|
"gitea.pena/PenaSide/customer/internal/interface/repository"
|
||||||
"penahub.gitlab.yandexcloud.net/pena-services/customer/internal/models"
|
"gitea.pena/PenaSide/customer/internal/models"
|
||||||
)
|
)
|
||||||
|
|
||||||
type Deps struct {
|
type Deps struct {
|
||||||
|
@ -4,10 +4,10 @@ import (
|
|||||||
"fmt"
|
"fmt"
|
||||||
"github.com/gofiber/fiber/v2"
|
"github.com/gofiber/fiber/v2"
|
||||||
"go.uber.org/zap"
|
"go.uber.org/zap"
|
||||||
"penahub.gitlab.yandexcloud.net/pena-services/customer/internal/interface/client"
|
"gitea.pena/PenaSide/customer/internal/interface/client"
|
||||||
"penahub.gitlab.yandexcloud.net/pena-services/customer/internal/interface/controller/http"
|
"gitea.pena/PenaSide/customer/internal/interface/controller/http"
|
||||||
"penahub.gitlab.yandexcloud.net/pena-services/customer/internal/interface/repository"
|
"gitea.pena/PenaSide/customer/internal/interface/repository"
|
||||||
codeword_rpc "penahub.gitlab.yandexcloud.net/pena-services/customer/internal/proto/codeword"
|
codeword_rpc "gitea.pena/PenaSide/customer/internal/proto/codeword"
|
||||||
)
|
)
|
||||||
|
|
||||||
type Deps struct {
|
type Deps struct {
|
||||||
|
@ -7,12 +7,12 @@ import (
|
|||||||
"math"
|
"math"
|
||||||
"os"
|
"os"
|
||||||
"penahub.gitlab.yandexcloud.net/backend/penahub_common/log_mw"
|
"penahub.gitlab.yandexcloud.net/backend/penahub_common/log_mw"
|
||||||
"penahub.gitlab.yandexcloud.net/pena-services/customer/internal/interface/client"
|
"gitea.pena/PenaSide/customer/internal/interface/client"
|
||||||
"penahub.gitlab.yandexcloud.net/pena-services/customer/internal/interface/controller/http"
|
"gitea.pena/PenaSide/customer/internal/interface/controller/http"
|
||||||
"penahub.gitlab.yandexcloud.net/pena-services/customer/internal/interface/repository"
|
"gitea.pena/PenaSide/customer/internal/interface/repository"
|
||||||
"penahub.gitlab.yandexcloud.net/pena-services/customer/internal/models"
|
"gitea.pena/PenaSide/customer/internal/models"
|
||||||
"penahub.gitlab.yandexcloud.net/pena-services/customer/internal/service/history"
|
"gitea.pena/PenaSide/customer/internal/service/history"
|
||||||
"penahub.gitlab.yandexcloud.net/pena-services/customer/internal/utils"
|
"gitea.pena/PenaSide/customer/internal/utils"
|
||||||
"strconv"
|
"strconv"
|
||||||
"strings"
|
"strings"
|
||||||
"time"
|
"time"
|
||||||
|
@ -4,7 +4,7 @@ import (
|
|||||||
"fmt"
|
"fmt"
|
||||||
"github.com/gofiber/fiber/v2"
|
"github.com/gofiber/fiber/v2"
|
||||||
"go.uber.org/zap"
|
"go.uber.org/zap"
|
||||||
"penahub.gitlab.yandexcloud.net/pena-services/customer/internal/models"
|
"gitea.pena/PenaSide/customer/internal/models"
|
||||||
)
|
)
|
||||||
|
|
||||||
type MiddleWare struct {
|
type MiddleWare struct {
|
||||||
|
@ -6,14 +6,14 @@ import (
|
|||||||
"go.uber.org/zap"
|
"go.uber.org/zap"
|
||||||
"fmt"
|
"fmt"
|
||||||
"penahub.gitlab.yandexcloud.net/backend/penahub_common/log_mw"
|
"penahub.gitlab.yandexcloud.net/backend/penahub_common/log_mw"
|
||||||
"penahub.gitlab.yandexcloud.net/pena-services/customer/internal/errors"
|
"gitea.pena/PenaSide/customer/internal/errors"
|
||||||
"penahub.gitlab.yandexcloud.net/pena-services/customer/internal/interface/client"
|
"gitea.pena/PenaSide/customer/internal/interface/client"
|
||||||
"penahub.gitlab.yandexcloud.net/pena-services/customer/internal/interface/controller/http"
|
"gitea.pena/PenaSide/customer/internal/interface/controller/http"
|
||||||
"penahub.gitlab.yandexcloud.net/pena-services/customer/internal/interface/repository"
|
"gitea.pena/PenaSide/customer/internal/interface/repository"
|
||||||
"penahub.gitlab.yandexcloud.net/pena-services/customer/internal/models"
|
"gitea.pena/PenaSide/customer/internal/models"
|
||||||
"penahub.gitlab.yandexcloud.net/pena-services/customer/internal/proto/treasurer"
|
"gitea.pena/PenaSide/customer/internal/proto/treasurer"
|
||||||
"penahub.gitlab.yandexcloud.net/pena-services/customer/internal/utils"
|
"gitea.pena/PenaSide/customer/internal/utils"
|
||||||
"penahub.gitlab.yandexcloud.net/pena-services/customer/pkg/validate"
|
"gitea.pena/PenaSide/customer/pkg/validate"
|
||||||
)
|
)
|
||||||
|
|
||||||
type Deps struct {
|
type Deps struct {
|
||||||
|
@ -12,9 +12,9 @@ import (
|
|||||||
"go.mongodb.org/mongo-driver/mongo/options"
|
"go.mongodb.org/mongo-driver/mongo/options"
|
||||||
"go.uber.org/zap"
|
"go.uber.org/zap"
|
||||||
mongoWrapper "penahub.gitlab.yandexcloud.net/backend/penahub_common/mongo"
|
mongoWrapper "penahub.gitlab.yandexcloud.net/backend/penahub_common/mongo"
|
||||||
"penahub.gitlab.yandexcloud.net/pena-services/customer/internal/errors"
|
"gitea.pena/PenaSide/customer/internal/errors"
|
||||||
"penahub.gitlab.yandexcloud.net/pena-services/customer/internal/fields"
|
"gitea.pena/PenaSide/customer/internal/fields"
|
||||||
"penahub.gitlab.yandexcloud.net/pena-services/customer/internal/models"
|
"gitea.pena/PenaSide/customer/internal/models"
|
||||||
)
|
)
|
||||||
|
|
||||||
type AccountRepositoryDeps struct {
|
type AccountRepositoryDeps struct {
|
||||||
|
@ -11,9 +11,9 @@ import (
|
|||||||
"go.mongodb.org/mongo-driver/mongo"
|
"go.mongodb.org/mongo-driver/mongo"
|
||||||
"go.uber.org/zap"
|
"go.uber.org/zap"
|
||||||
mongoWrapper "penahub.gitlab.yandexcloud.net/backend/penahub_common/mongo"
|
mongoWrapper "penahub.gitlab.yandexcloud.net/backend/penahub_common/mongo"
|
||||||
"penahub.gitlab.yandexcloud.net/pena-services/customer/internal/errors"
|
"gitea.pena/PenaSide/customer/internal/errors"
|
||||||
"penahub.gitlab.yandexcloud.net/pena-services/customer/internal/fields"
|
"gitea.pena/PenaSide/customer/internal/fields"
|
||||||
"penahub.gitlab.yandexcloud.net/pena-services/customer/internal/models"
|
"gitea.pena/PenaSide/customer/internal/models"
|
||||||
)
|
)
|
||||||
|
|
||||||
type CurrencyRepositoryDeps struct {
|
type CurrencyRepositoryDeps struct {
|
||||||
|
@ -4,8 +4,8 @@ import (
|
|||||||
"context"
|
"context"
|
||||||
"fmt"
|
"fmt"
|
||||||
"log"
|
"log"
|
||||||
codeword_rpc "penahub.gitlab.yandexcloud.net/pena-services/customer/internal/proto/codeword"
|
codeword_rpc "gitea.pena/PenaSide/customer/internal/proto/codeword"
|
||||||
"penahub.gitlab.yandexcloud.net/pena-services/customer/internal/utils"
|
"gitea.pena/PenaSide/customer/internal/utils"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"go.mongodb.org/mongo-driver/bson"
|
"go.mongodb.org/mongo-driver/bson"
|
||||||
@ -14,10 +14,10 @@ import (
|
|||||||
"go.mongodb.org/mongo-driver/mongo/options"
|
"go.mongodb.org/mongo-driver/mongo/options"
|
||||||
"go.uber.org/zap"
|
"go.uber.org/zap"
|
||||||
mongoWrapper "penahub.gitlab.yandexcloud.net/backend/penahub_common/mongo"
|
mongoWrapper "penahub.gitlab.yandexcloud.net/backend/penahub_common/mongo"
|
||||||
"penahub.gitlab.yandexcloud.net/pena-services/customer/internal/errors"
|
"gitea.pena/PenaSide/customer/internal/errors"
|
||||||
"penahub.gitlab.yandexcloud.net/pena-services/customer/internal/fields"
|
"gitea.pena/PenaSide/customer/internal/fields"
|
||||||
"penahub.gitlab.yandexcloud.net/pena-services/customer/internal/models"
|
"gitea.pena/PenaSide/customer/internal/models"
|
||||||
"penahub.gitlab.yandexcloud.net/pena-services/customer/internal/service/history"
|
"gitea.pena/PenaSide/customer/internal/service/history"
|
||||||
)
|
)
|
||||||
|
|
||||||
type HistoryRepositoryDeps struct {
|
type HistoryRepositoryDeps struct {
|
||||||
|
@ -3,7 +3,7 @@ package models
|
|||||||
import (
|
import (
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"penahub.gitlab.yandexcloud.net/pena-services/customer/internal/proto/broker"
|
"gitea.pena/PenaSide/customer/internal/proto/broker"
|
||||||
)
|
)
|
||||||
|
|
||||||
type Tariff struct {
|
type Tariff struct {
|
||||||
|
@ -11,11 +11,11 @@ import (
|
|||||||
grpc_recovery "github.com/grpc-ecosystem/go-grpc-middleware/recovery"
|
grpc_recovery "github.com/grpc-ecosystem/go-grpc-middleware/recovery"
|
||||||
"go.uber.org/zap"
|
"go.uber.org/zap"
|
||||||
"google.golang.org/grpc"
|
"google.golang.org/grpc"
|
||||||
"penahub.gitlab.yandexcloud.net/pena-services/customer/internal/errors"
|
"gitea.pena/PenaSide/customer/internal/errors"
|
||||||
"penahub.gitlab.yandexcloud.net/pena-services/customer/internal/initialize"
|
"gitea.pena/PenaSide/customer/internal/initialize"
|
||||||
"penahub.gitlab.yandexcloud.net/pena-services/customer/internal/models"
|
"gitea.pena/PenaSide/customer/internal/models"
|
||||||
"penahub.gitlab.yandexcloud.net/pena-services/customer/internal/proto/customer"
|
"gitea.pena/PenaSide/customer/internal/proto/customer"
|
||||||
"penahub.gitlab.yandexcloud.net/pena-services/customer/internal/proto/payment_callback"
|
"gitea.pena/PenaSide/customer/internal/proto/payment_callback"
|
||||||
)
|
)
|
||||||
|
|
||||||
type DepsGRPC struct {
|
type DepsGRPC struct {
|
||||||
|
@ -7,8 +7,8 @@ import (
|
|||||||
"github.com/themakers/hlog"
|
"github.com/themakers/hlog"
|
||||||
"go.uber.org/zap"
|
"go.uber.org/zap"
|
||||||
"penahub.gitlab.yandexcloud.net/backend/penahub_common/log_mw"
|
"penahub.gitlab.yandexcloud.net/backend/penahub_common/log_mw"
|
||||||
"penahub.gitlab.yandexcloud.net/pena-services/customer/internal/models"
|
"gitea.pena/PenaSide/customer/internal/models"
|
||||||
"penahub.gitlab.yandexcloud.net/pena-services/customer/internal/utils"
|
"gitea.pena/PenaSide/customer/internal/utils"
|
||||||
)
|
)
|
||||||
|
|
||||||
type ServerConfig struct {
|
type ServerConfig struct {
|
||||||
|
@ -6,8 +6,8 @@ import (
|
|||||||
"sync"
|
"sync"
|
||||||
|
|
||||||
"go.uber.org/zap"
|
"go.uber.org/zap"
|
||||||
"penahub.gitlab.yandexcloud.net/pena-services/customer/internal/errors"
|
"gitea.pena/PenaSide/customer/internal/errors"
|
||||||
"penahub.gitlab.yandexcloud.net/pena-services/customer/internal/models"
|
"gitea.pena/PenaSide/customer/internal/models"
|
||||||
)
|
)
|
||||||
|
|
||||||
type consumer interface {
|
type consumer interface {
|
||||||
|
@ -6,8 +6,8 @@ import (
|
|||||||
"fmt"
|
"fmt"
|
||||||
|
|
||||||
"go.uber.org/zap"
|
"go.uber.org/zap"
|
||||||
"penahub.gitlab.yandexcloud.net/pena-services/customer/internal/errors"
|
"gitea.pena/PenaSide/customer/internal/errors"
|
||||||
"penahub.gitlab.yandexcloud.net/pena-services/customer/internal/models"
|
"gitea.pena/PenaSide/customer/internal/models"
|
||||||
tb "gopkg.in/tucnak/telebot.v2"
|
tb "gopkg.in/tucnak/telebot.v2"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -5,9 +5,9 @@ import (
|
|||||||
"go.mongodb.org/mongo-driver/bson"
|
"go.mongodb.org/mongo-driver/bson"
|
||||||
"go.uber.org/zap"
|
"go.uber.org/zap"
|
||||||
"log"
|
"log"
|
||||||
"penahub.gitlab.yandexcloud.net/pena-services/customer/internal/errors"
|
"gitea.pena/PenaSide/customer/internal/errors"
|
||||||
"penahub.gitlab.yandexcloud.net/pena-services/customer/internal/fields"
|
"gitea.pena/PenaSide/customer/internal/fields"
|
||||||
"penahub.gitlab.yandexcloud.net/pena-services/customer/internal/models"
|
"gitea.pena/PenaSide/customer/internal/models"
|
||||||
)
|
)
|
||||||
|
|
||||||
type GetHistories struct {
|
type GetHistories struct {
|
||||||
|
@ -5,9 +5,9 @@ import (
|
|||||||
"log"
|
"log"
|
||||||
|
|
||||||
"go.uber.org/zap"
|
"go.uber.org/zap"
|
||||||
"penahub.gitlab.yandexcloud.net/pena-services/customer/internal/errors"
|
"gitea.pena/PenaSide/customer/internal/errors"
|
||||||
"penahub.gitlab.yandexcloud.net/pena-services/customer/internal/models"
|
"gitea.pena/PenaSide/customer/internal/models"
|
||||||
"penahub.gitlab.yandexcloud.net/pena-services/customer/internal/proto/treasurer"
|
"gitea.pena/PenaSide/customer/internal/proto/treasurer"
|
||||||
)
|
)
|
||||||
|
|
||||||
type paymentClient interface {
|
type paymentClient interface {
|
||||||
|
@ -4,10 +4,10 @@ import (
|
|||||||
"context"
|
"context"
|
||||||
"go.uber.org/zap"
|
"go.uber.org/zap"
|
||||||
"log"
|
"log"
|
||||||
"penahub.gitlab.yandexcloud.net/pena-services/customer/internal/errors"
|
"gitea.pena/PenaSide/customer/internal/errors"
|
||||||
"penahub.gitlab.yandexcloud.net/pena-services/customer/internal/interface/client"
|
"gitea.pena/PenaSide/customer/internal/interface/client"
|
||||||
"penahub.gitlab.yandexcloud.net/pena-services/customer/internal/models"
|
"gitea.pena/PenaSide/customer/internal/models"
|
||||||
"penahub.gitlab.yandexcloud.net/pena-services/customer/pkg/validate"
|
"gitea.pena/PenaSide/customer/pkg/validate"
|
||||||
)
|
)
|
||||||
|
|
||||||
type accountRepository interface {
|
type accountRepository interface {
|
||||||
|
@ -5,8 +5,8 @@ import (
|
|||||||
"github.com/gofiber/fiber/v2"
|
"github.com/gofiber/fiber/v2"
|
||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
"penahub.gitlab.yandexcloud.net/pena-services/customer/internal/errors"
|
"gitea.pena/PenaSide/customer/internal/errors"
|
||||||
"penahub.gitlab.yandexcloud.net/pena-services/customer/internal/models"
|
"gitea.pena/PenaSide/customer/internal/models"
|
||||||
)
|
)
|
||||||
|
|
||||||
const (
|
const (
|
||||||
|
@ -3,7 +3,7 @@ package utils
|
|||||||
import (
|
import (
|
||||||
"net/http"
|
"net/http"
|
||||||
|
|
||||||
"penahub.gitlab.yandexcloud.net/pena-services/customer/internal/errors"
|
"gitea.pena/PenaSide/customer/internal/errors"
|
||||||
)
|
)
|
||||||
|
|
||||||
var clientErrors = map[int]error{
|
var clientErrors = map[int]error{
|
||||||
|
@ -2,8 +2,8 @@ package utils
|
|||||||
|
|
||||||
import (
|
import (
|
||||||
"encoding/json"
|
"encoding/json"
|
||||||
"penahub.gitlab.yandexcloud.net/pena-services/customer/internal/models"
|
"gitea.pena/PenaSide/customer/internal/models"
|
||||||
"penahub.gitlab.yandexcloud.net/pena-services/customer/internal/proto/discount"
|
"gitea.pena/PenaSide/customer/internal/proto/discount"
|
||||||
)
|
)
|
||||||
|
|
||||||
func GetAppliedDiscountsIDs(appliedDiscounts []*discount.Discount) []string {
|
func GetAppliedDiscountsIDs(appliedDiscounts []*discount.Discount) []string {
|
||||||
|
@ -6,7 +6,7 @@ import (
|
|||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/golang-jwt/jwt/v5"
|
"github.com/golang-jwt/jwt/v5"
|
||||||
"penahub.gitlab.yandexcloud.net/pena-services/customer/internal/models"
|
"gitea.pena/PenaSide/customer/internal/models"
|
||||||
)
|
)
|
||||||
|
|
||||||
type JWT struct {
|
type JWT struct {
|
||||||
|
@ -7,8 +7,8 @@ import (
|
|||||||
|
|
||||||
"github.com/golang-jwt/jwt/v5"
|
"github.com/golang-jwt/jwt/v5"
|
||||||
"github.com/stretchr/testify/assert"
|
"github.com/stretchr/testify/assert"
|
||||||
"penahub.gitlab.yandexcloud.net/pena-services/customer/internal/models"
|
"gitea.pena/PenaSide/customer/internal/models"
|
||||||
"penahub.gitlab.yandexcloud.net/pena-services/customer/internal/utils"
|
"gitea.pena/PenaSide/customer/internal/utils"
|
||||||
)
|
)
|
||||||
|
|
||||||
func TestJWT(t *testing.T) {
|
func TestJWT(t *testing.T) {
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
package utils
|
package utils
|
||||||
|
|
||||||
import "penahub.gitlab.yandexcloud.net/pena-services/customer/internal/models"
|
import "gitea.pena/PenaSide/customer/internal/models"
|
||||||
|
|
||||||
func DeterminePagination(page, limit interface{}) *models.Pagination {
|
func DeterminePagination(page, limit interface{}) *models.Pagination {
|
||||||
determinePage := func() int64 {
|
determinePage := func() int64 {
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
package utils
|
package utils
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"penahub.gitlab.yandexcloud.net/pena-services/customer/internal/errors"
|
"gitea.pena/PenaSide/customer/internal/errors"
|
||||||
"penahub.gitlab.yandexcloud.net/pena-services/customer/internal/models"
|
"gitea.pena/PenaSide/customer/internal/models"
|
||||||
)
|
)
|
||||||
|
|
||||||
func ValidateGetPaymentLinkBody(request *models.GetPaymentLinkBody) errors.Error {
|
func ValidateGetPaymentLinkBody(request *models.GetPaymentLinkBody) errors.Error {
|
||||||
|
@ -2,7 +2,7 @@ package utils
|
|||||||
|
|
||||||
import (
|
import (
|
||||||
"go.mongodb.org/mongo-driver/bson"
|
"go.mongodb.org/mongo-driver/bson"
|
||||||
codeword_rpc "penahub.gitlab.yandexcloud.net/pena-services/customer/internal/proto/codeword"
|
codeword_rpc "gitea.pena/PenaSide/customer/internal/proto/codeword"
|
||||||
"time"
|
"time"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
package utils
|
package utils
|
||||||
|
|
||||||
import "penahub.gitlab.yandexcloud.net/pena-services/customer/internal/models"
|
import "gitea.pena/PenaSide/customer/internal/models"
|
||||||
|
|
||||||
func CalculateCartPurchasesAmount(tariffs []models.Tariff) uint64 {
|
func CalculateCartPurchasesAmount(tariffs []models.Tariff) uint64 {
|
||||||
sum := uint64(0)
|
sum := uint64(0)
|
||||||
|
@ -4,8 +4,8 @@ import (
|
|||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
"github.com/stretchr/testify/assert"
|
"github.com/stretchr/testify/assert"
|
||||||
"penahub.gitlab.yandexcloud.net/pena-services/customer/internal/models"
|
"gitea.pena/PenaSide/customer/internal/models"
|
||||||
"penahub.gitlab.yandexcloud.net/pena-services/customer/internal/utils"
|
"gitea.pena/PenaSide/customer/internal/utils"
|
||||||
)
|
)
|
||||||
|
|
||||||
func TestCalculateCartPurchasesAmount(t *testing.T) {
|
func TestCalculateCartPurchasesAmount(t *testing.T) {
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
package transfer
|
package transfer
|
||||||
import(
|
import(
|
||||||
"penahub.gitlab.yandexcloud.net/pena-services/customer/internal/models"
|
"gitea.pena/PenaSide/customer/internal/models"
|
||||||
"penahub.gitlab.yandexcloud.net/pena-services/customer/internal/proto/treasurer"
|
"gitea.pena/PenaSide/customer/internal/proto/treasurer"
|
||||||
)
|
)
|
||||||
func ReceiptItemToProto(in models.Item) *treasurer.Item {
|
func ReceiptItemToProto(in models.Item) *treasurer.Item {
|
||||||
return &treasurer.Item{
|
return &treasurer.Item{
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
package transfer
|
package transfer
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"penahub.gitlab.yandexcloud.net/pena-services/customer/internal/models"
|
"gitea.pena/PenaSide/customer/internal/models"
|
||||||
"penahub.gitlab.yandexcloud.net/pena-services/customer/internal/proto/broker"
|
"gitea.pena/PenaSide/customer/internal/proto/broker"
|
||||||
)
|
)
|
||||||
|
|
||||||
func PrivilegeProtoToModel(privilege *broker.PrivilegeMessage) *models.Privilege {
|
func PrivilegeProtoToModel(privilege *broker.PrivilegeMessage) *models.Privilege {
|
||||||
|
@ -4,9 +4,9 @@ import (
|
|||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
"github.com/stretchr/testify/assert"
|
"github.com/stretchr/testify/assert"
|
||||||
"penahub.gitlab.yandexcloud.net/pena-services/customer/internal/models"
|
"gitea.pena/PenaSide/customer/internal/models"
|
||||||
"penahub.gitlab.yandexcloud.net/pena-services/customer/internal/proto/broker"
|
"gitea.pena/PenaSide/customer/internal/proto/broker"
|
||||||
"penahub.gitlab.yandexcloud.net/pena-services/customer/internal/utils/transfer"
|
"gitea.pena/PenaSide/customer/internal/utils/transfer"
|
||||||
)
|
)
|
||||||
|
|
||||||
func TestPrivilegeModelToProto(t *testing.T) {
|
func TestPrivilegeModelToProto(t *testing.T) {
|
||||||
|
@ -1,9 +1,9 @@
|
|||||||
package transfer
|
package transfer
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"penahub.gitlab.yandexcloud.net/pena-services/customer/internal/models"
|
"gitea.pena/PenaSide/customer/internal/models"
|
||||||
"penahub.gitlab.yandexcloud.net/pena-services/customer/internal/proto/broker"
|
"gitea.pena/PenaSide/customer/internal/proto/broker"
|
||||||
"penahub.gitlab.yandexcloud.net/pena-services/customer/internal/proto/discount"
|
"gitea.pena/PenaSide/customer/internal/proto/discount"
|
||||||
)
|
)
|
||||||
|
|
||||||
func TariffsToProductInformations(tarrifs []models.Tariff) []*discount.ProductInformation {
|
func TariffsToProductInformations(tarrifs []models.Tariff) []*discount.ProductInformation {
|
||||||
|
@ -4,9 +4,9 @@ import (
|
|||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
"github.com/stretchr/testify/assert"
|
"github.com/stretchr/testify/assert"
|
||||||
"penahub.gitlab.yandexcloud.net/pena-services/customer/internal/models"
|
"gitea.pena/PenaSide/customer/internal/models"
|
||||||
"penahub.gitlab.yandexcloud.net/pena-services/customer/internal/proto/broker"
|
"gitea.pena/PenaSide/customer/internal/proto/broker"
|
||||||
"penahub.gitlab.yandexcloud.net/pena-services/customer/internal/utils/transfer"
|
"gitea.pena/PenaSide/customer/internal/utils/transfer"
|
||||||
)
|
)
|
||||||
|
|
||||||
func TestTariffMessageProtoToTariffModel(t *testing.T) {
|
func TestTariffMessageProtoToTariffModel(t *testing.T) {
|
||||||
|
@ -3,8 +3,8 @@ package utils
|
|||||||
import (
|
import (
|
||||||
"fmt"
|
"fmt"
|
||||||
|
|
||||||
"penahub.gitlab.yandexcloud.net/pena-services/customer/internal/models"
|
"gitea.pena/PenaSide/customer/internal/models"
|
||||||
"penahub.gitlab.yandexcloud.net/pena-services/customer/pkg/validate"
|
"gitea.pena/PenaSide/customer/pkg/validate"
|
||||||
)
|
)
|
||||||
|
|
||||||
func ValidateConfigurationURLs(config *models.ServiceConfiguration) error {
|
func ValidateConfigurationURLs(config *models.ServiceConfiguration) error {
|
||||||
|
@ -5,7 +5,7 @@ import (
|
|||||||
"fmt"
|
"fmt"
|
||||||
"net/http"
|
"net/http"
|
||||||
|
|
||||||
"penahub.gitlab.yandexcloud.net/pena-services/customer/pkg/json"
|
"gitea.pena/PenaSide/customer/pkg/json"
|
||||||
)
|
)
|
||||||
|
|
||||||
func parseResponse[T any](body []byte, response *http.Response) (*T, error) {
|
func parseResponse[T any](body []byte, response *http.Response) (*T, error) {
|
||||||
|
@ -5,7 +5,7 @@ import (
|
|||||||
"go.uber.org/zap"
|
"go.uber.org/zap"
|
||||||
"google.golang.org/grpc"
|
"google.golang.org/grpc"
|
||||||
"google.golang.org/grpc/credentials/insecure"
|
"google.golang.org/grpc/credentials/insecure"
|
||||||
"penahub.gitlab.yandexcloud.net/pena-services/customer/internal/proto/customer"
|
"gitea.pena/PenaSide/customer/internal/proto/customer"
|
||||||
)
|
)
|
||||||
|
|
||||||
type CustomersClientDeps struct {
|
type CustomersClientDeps struct {
|
||||||
|
@ -4,7 +4,7 @@ import (
|
|||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
"github.com/stretchr/testify/assert"
|
"github.com/stretchr/testify/assert"
|
||||||
"penahub.gitlab.yandexcloud.net/pena-services/customer/pkg/validate"
|
"gitea.pena/PenaSide/customer/pkg/validate"
|
||||||
)
|
)
|
||||||
|
|
||||||
func TestIsStringEmpty(t *testing.T) {
|
func TestIsStringEmpty(t *testing.T) {
|
||||||
|
@ -4,7 +4,7 @@ import (
|
|||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
"github.com/stretchr/testify/assert"
|
"github.com/stretchr/testify/assert"
|
||||||
"penahub.gitlab.yandexcloud.net/pena-services/customer/pkg/validate"
|
"gitea.pena/PenaSide/customer/pkg/validate"
|
||||||
)
|
)
|
||||||
|
|
||||||
func TestValidateURL(t *testing.T) {
|
func TestValidateURL(t *testing.T) {
|
||||||
|
@ -5,7 +5,7 @@ import (
|
|||||||
"fmt"
|
"fmt"
|
||||||
"github.com/stretchr/testify/assert"
|
"github.com/stretchr/testify/assert"
|
||||||
"net/http"
|
"net/http"
|
||||||
"penahub.gitlab.yandexcloud.net/pena-services/customer/tests/helpers"
|
"gitea.pena/PenaSide/customer/tests/helpers"
|
||||||
"testing"
|
"testing"
|
||||||
"time"
|
"time"
|
||||||
)
|
)
|
||||||
|
@ -3,9 +3,9 @@ package e2e_test
|
|||||||
import (
|
import (
|
||||||
"context"
|
"context"
|
||||||
"fmt"
|
"fmt"
|
||||||
"penahub.gitlab.yandexcloud.net/pena-services/customer/internal/models"
|
"gitea.pena/PenaSide/customer/internal/models"
|
||||||
"penahub.gitlab.yandexcloud.net/pena-services/customer/pkg/client"
|
"gitea.pena/PenaSide/customer/pkg/client"
|
||||||
"penahub.gitlab.yandexcloud.net/pena-services/customer/tests/helpers"
|
"gitea.pena/PenaSide/customer/tests/helpers"
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
"github.com/stretchr/testify/assert"
|
"github.com/stretchr/testify/assert"
|
||||||
|
@ -6,9 +6,9 @@ import (
|
|||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
"github.com/stretchr/testify/assert"
|
"github.com/stretchr/testify/assert"
|
||||||
"penahub.gitlab.yandexcloud.net/pena-services/customer/internal/models"
|
"gitea.pena/PenaSide/customer/internal/models"
|
||||||
"penahub.gitlab.yandexcloud.net/pena-services/customer/pkg/client"
|
"gitea.pena/PenaSide/customer/pkg/client"
|
||||||
"penahub.gitlab.yandexcloud.net/pena-services/customer/tests/helpers"
|
"gitea.pena/PenaSide/customer/tests/helpers"
|
||||||
)
|
)
|
||||||
|
|
||||||
func TestBuyTariff(t *testing.T) {
|
func TestBuyTariff(t *testing.T) {
|
||||||
|
@ -4,9 +4,9 @@ import (
|
|||||||
"context"
|
"context"
|
||||||
"fmt"
|
"fmt"
|
||||||
"github.com/stretchr/testify/assert"
|
"github.com/stretchr/testify/assert"
|
||||||
"penahub.gitlab.yandexcloud.net/pena-services/customer/internal/models"
|
"gitea.pena/PenaSide/customer/internal/models"
|
||||||
"penahub.gitlab.yandexcloud.net/pena-services/customer/pkg/client"
|
"gitea.pena/PenaSide/customer/pkg/client"
|
||||||
"penahub.gitlab.yandexcloud.net/pena-services/customer/tests/helpers"
|
"gitea.pena/PenaSide/customer/tests/helpers"
|
||||||
"testing"
|
"testing"
|
||||||
"time"
|
"time"
|
||||||
)
|
)
|
||||||
|
@ -3,9 +3,9 @@ package e2e_test
|
|||||||
import (
|
import (
|
||||||
"context"
|
"context"
|
||||||
"fmt"
|
"fmt"
|
||||||
"penahub.gitlab.yandexcloud.net/pena-services/customer/internal/models"
|
"gitea.pena/PenaSide/customer/internal/models"
|
||||||
"penahub.gitlab.yandexcloud.net/pena-services/customer/pkg/client"
|
"gitea.pena/PenaSide/customer/pkg/client"
|
||||||
"penahub.gitlab.yandexcloud.net/pena-services/customer/tests/helpers"
|
"gitea.pena/PenaSide/customer/tests/helpers"
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
"github.com/stretchr/testify/assert"
|
"github.com/stretchr/testify/assert"
|
||||||
|
@ -4,9 +4,9 @@ import (
|
|||||||
"context"
|
"context"
|
||||||
"fmt"
|
"fmt"
|
||||||
"github.com/stretchr/testify/assert"
|
"github.com/stretchr/testify/assert"
|
||||||
"penahub.gitlab.yandexcloud.net/pena-services/customer/internal/models"
|
"gitea.pena/PenaSide/customer/internal/models"
|
||||||
"penahub.gitlab.yandexcloud.net/pena-services/customer/pkg/client"
|
"gitea.pena/PenaSide/customer/pkg/client"
|
||||||
"penahub.gitlab.yandexcloud.net/pena-services/customer/tests/helpers"
|
"gitea.pena/PenaSide/customer/tests/helpers"
|
||||||
"testing"
|
"testing"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -6,9 +6,9 @@ import (
|
|||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
"github.com/stretchr/testify/assert"
|
"github.com/stretchr/testify/assert"
|
||||||
"penahub.gitlab.yandexcloud.net/pena-services/customer/internal/models"
|
"gitea.pena/PenaSide/customer/internal/models"
|
||||||
"penahub.gitlab.yandexcloud.net/pena-services/customer/pkg/client"
|
"gitea.pena/PenaSide/customer/pkg/client"
|
||||||
"penahub.gitlab.yandexcloud.net/pena-services/customer/tests/helpers"
|
"gitea.pena/PenaSide/customer/tests/helpers"
|
||||||
)
|
)
|
||||||
|
|
||||||
func TestGetRecentTariffs(t *testing.T) {
|
func TestGetRecentTariffs(t *testing.T) {
|
||||||
|
@ -4,9 +4,9 @@ import (
|
|||||||
"context"
|
"context"
|
||||||
"fmt"
|
"fmt"
|
||||||
"github.com/stretchr/testify/assert"
|
"github.com/stretchr/testify/assert"
|
||||||
"penahub.gitlab.yandexcloud.net/pena-services/customer/internal/models"
|
"gitea.pena/PenaSide/customer/internal/models"
|
||||||
"penahub.gitlab.yandexcloud.net/pena-services/customer/pkg/client"
|
"gitea.pena/PenaSide/customer/pkg/client"
|
||||||
"penahub.gitlab.yandexcloud.net/pena-services/customer/tests/helpers"
|
"gitea.pena/PenaSide/customer/tests/helpers"
|
||||||
"testing"
|
"testing"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -7,9 +7,9 @@ import (
|
|||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
"github.com/stretchr/testify/assert"
|
"github.com/stretchr/testify/assert"
|
||||||
"penahub.gitlab.yandexcloud.net/pena-services/customer/internal/models"
|
"gitea.pena/PenaSide/customer/internal/models"
|
||||||
"penahub.gitlab.yandexcloud.net/pena-services/customer/pkg/client"
|
"gitea.pena/PenaSide/customer/pkg/client"
|
||||||
"penahub.gitlab.yandexcloud.net/pena-services/customer/tests/helpers"
|
"gitea.pena/PenaSide/customer/tests/helpers"
|
||||||
)
|
)
|
||||||
|
|
||||||
// todo thinking
|
// todo thinking
|
||||||
|
@ -5,9 +5,9 @@ import (
|
|||||||
"fmt"
|
"fmt"
|
||||||
"github.com/stretchr/testify/assert"
|
"github.com/stretchr/testify/assert"
|
||||||
"net/http"
|
"net/http"
|
||||||
"penahub.gitlab.yandexcloud.net/pena-services/customer/internal/models"
|
"gitea.pena/PenaSide/customer/internal/models"
|
||||||
"penahub.gitlab.yandexcloud.net/pena-services/customer/pkg/client"
|
"gitea.pena/PenaSide/customer/pkg/client"
|
||||||
"penahub.gitlab.yandexcloud.net/pena-services/customer/tests/helpers"
|
"gitea.pena/PenaSide/customer/tests/helpers"
|
||||||
"testing"
|
"testing"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -5,8 +5,8 @@ import (
|
|||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/golang-jwt/jwt/v5"
|
"github.com/golang-jwt/jwt/v5"
|
||||||
"penahub.gitlab.yandexcloud.net/pena-services/customer/internal/models"
|
"gitea.pena/PenaSide/customer/internal/models"
|
||||||
"penahub.gitlab.yandexcloud.net/pena-services/customer/internal/utils"
|
"gitea.pena/PenaSide/customer/internal/utils"
|
||||||
)
|
)
|
||||||
|
|
||||||
func InitializeJWT() *utils.JWT {
|
func InitializeJWT() *utils.JWT {
|
||||||
|
@ -6,9 +6,9 @@ import (
|
|||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
"github.com/stretchr/testify/assert"
|
"github.com/stretchr/testify/assert"
|
||||||
"penahub.gitlab.yandexcloud.net/pena-services/customer/internal/models"
|
"gitea.pena/PenaSide/customer/internal/models"
|
||||||
"penahub.gitlab.yandexcloud.net/pena-services/customer/pkg/client"
|
"gitea.pena/PenaSide/customer/pkg/client"
|
||||||
"penahub.gitlab.yandexcloud.net/pena-services/customer/tests/helpers"
|
"gitea.pena/PenaSide/customer/tests/helpers"
|
||||||
)
|
)
|
||||||
|
|
||||||
func TestHistoryReport(t *testing.T) {
|
func TestHistoryReport(t *testing.T) {
|
||||||
|
@ -4,8 +4,8 @@ import (
|
|||||||
"context"
|
"context"
|
||||||
"fmt"
|
"fmt"
|
||||||
"github.com/pioz/faker"
|
"github.com/pioz/faker"
|
||||||
"penahub.gitlab.yandexcloud.net/pena-services/customer/internal/interface/repository"
|
"gitea.pena/PenaSide/customer/internal/interface/repository"
|
||||||
"penahub.gitlab.yandexcloud.net/pena-services/customer/internal/models"
|
"gitea.pena/PenaSide/customer/internal/models"
|
||||||
"strconv"
|
"strconv"
|
||||||
"time"
|
"time"
|
||||||
)
|
)
|
||||||
|
@ -4,8 +4,8 @@ import (
|
|||||||
"github.com/gofiber/fiber/v2"
|
"github.com/gofiber/fiber/v2"
|
||||||
"github.com/stretchr/testify/assert"
|
"github.com/stretchr/testify/assert"
|
||||||
"go.uber.org/zap"
|
"go.uber.org/zap"
|
||||||
"penahub.gitlab.yandexcloud.net/pena-services/customer/internal/interface/client"
|
"gitea.pena/PenaSide/customer/internal/interface/client"
|
||||||
"penahub.gitlab.yandexcloud.net/pena-services/customer/internal/models"
|
"gitea.pena/PenaSide/customer/internal/models"
|
||||||
"testing"
|
"testing"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -7,9 +7,9 @@ import (
|
|||||||
"go.uber.org/zap"
|
"go.uber.org/zap"
|
||||||
"log"
|
"log"
|
||||||
"penahub.gitlab.yandexcloud.net/backend/penahub_common/mongo"
|
"penahub.gitlab.yandexcloud.net/backend/penahub_common/mongo"
|
||||||
"penahub.gitlab.yandexcloud.net/pena-services/customer/internal/interface/client"
|
"gitea.pena/PenaSide/customer/internal/interface/client"
|
||||||
"penahub.gitlab.yandexcloud.net/pena-services/customer/internal/interface/repository"
|
"gitea.pena/PenaSide/customer/internal/interface/repository"
|
||||||
codeword_rpc "penahub.gitlab.yandexcloud.net/pena-services/customer/internal/proto/codeword"
|
codeword_rpc "gitea.pena/PenaSide/customer/internal/proto/codeword"
|
||||||
"testing"
|
"testing"
|
||||||
"time"
|
"time"
|
||||||
)
|
)
|
||||||
|
@ -5,7 +5,7 @@ import (
|
|||||||
"fmt"
|
"fmt"
|
||||||
"github.com/stretchr/testify/assert"
|
"github.com/stretchr/testify/assert"
|
||||||
"go.uber.org/zap"
|
"go.uber.org/zap"
|
||||||
"penahub.gitlab.yandexcloud.net/pena-services/customer/pkg/customer_clients"
|
"gitea.pena/PenaSide/customer/pkg/customer_clients"
|
||||||
"testing"
|
"testing"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -7,9 +7,9 @@ import (
|
|||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
"github.com/stretchr/testify/assert"
|
"github.com/stretchr/testify/assert"
|
||||||
"penahub.gitlab.yandexcloud.net/pena-services/customer/internal/models"
|
"gitea.pena/PenaSide/customer/internal/models"
|
||||||
"penahub.gitlab.yandexcloud.net/pena-services/customer/pkg/client"
|
"gitea.pena/PenaSide/customer/pkg/client"
|
||||||
"penahub.gitlab.yandexcloud.net/pena-services/customer/tests/helpers"
|
"gitea.pena/PenaSide/customer/tests/helpers"
|
||||||
)
|
)
|
||||||
|
|
||||||
var customerServiceBase = os.Getenv("CUSTOMER_SERVICE")
|
var customerServiceBase = os.Getenv("CUSTOMER_SERVICE")
|
||||||
|
@ -11,7 +11,7 @@ import (
|
|||||||
"os"
|
"os"
|
||||||
"penahub.gitlab.yandexcloud.net/external/trashlog/app"
|
"penahub.gitlab.yandexcloud.net/external/trashlog/app"
|
||||||
"penahub.gitlab.yandexcloud.net/external/trashlog/wrappers/zaptrashlog"
|
"penahub.gitlab.yandexcloud.net/external/trashlog/wrappers/zaptrashlog"
|
||||||
"penahub.gitlab.yandexcloud.net/pena-services/customer/internal/models"
|
"gitea.pena/PenaSide/customer/internal/models"
|
||||||
"testing"
|
"testing"
|
||||||
"time"
|
"time"
|
||||||
)
|
)
|
||||||
|
@ -6,9 +6,9 @@ import (
|
|||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
"github.com/stretchr/testify/assert"
|
"github.com/stretchr/testify/assert"
|
||||||
"penahub.gitlab.yandexcloud.net/pena-services/customer/internal/models"
|
"gitea.pena/PenaSide/customer/internal/models"
|
||||||
"penahub.gitlab.yandexcloud.net/pena-services/customer/pkg/client"
|
"gitea.pena/PenaSide/customer/pkg/client"
|
||||||
"penahub.gitlab.yandexcloud.net/pena-services/customer/tests/helpers"
|
"gitea.pena/PenaSide/customer/tests/helpers"
|
||||||
)
|
)
|
||||||
|
|
||||||
func TestUpdateAccountName(t *testing.T) {
|
func TestUpdateAccountName(t *testing.T) {
|
||||||
|
Loading…
Reference in New Issue
Block a user