cleaning
This commit is contained in:
parent
d4fa90ae26
commit
5bc08a830a
@ -4,6 +4,7 @@ import (
|
|||||||
"context"
|
"context"
|
||||||
"fmt"
|
"fmt"
|
||||||
"github.com/gofiber/fiber/v2"
|
"github.com/gofiber/fiber/v2"
|
||||||
|
"penahub.gitlab.yandexcloud.net/backend/quiz/common.git/middleware"
|
||||||
)
|
)
|
||||||
|
|
||||||
type ServerConfig struct {
|
type ServerConfig struct {
|
||||||
@ -17,7 +18,7 @@ type Server struct {
|
|||||||
|
|
||||||
func NewServer(config ServerConfig) *Server {
|
func NewServer(config ServerConfig) *Server {
|
||||||
app := fiber.New()
|
app := fiber.New()
|
||||||
//app.Use(middleware.JWTAuth())
|
app.Use(middleware.JWTAuth())
|
||||||
|
|
||||||
s := &Server{
|
s := &Server{
|
||||||
Controllers: config.Controllers,
|
Controllers: config.Controllers,
|
||||||
|
@ -2,7 +2,6 @@ package service
|
|||||||
|
|
||||||
import (
|
import (
|
||||||
"context"
|
"context"
|
||||||
"fmt"
|
|
||||||
"go.uber.org/zap"
|
"go.uber.org/zap"
|
||||||
"penahub.gitlab.yandexcloud.net/backend/quiz/common.git/model"
|
"penahub.gitlab.yandexcloud.net/backend/quiz/common.git/model"
|
||||||
)
|
)
|
||||||
@ -56,14 +55,6 @@ func (s *Service) GetCurrentAccount(ctx context.Context, accountID string) (*mod
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (s *Service) ConnectAccount(ctx context.Context, accountID string) (*model.ConnectAccountResp, error) {
|
func (s *Service) ConnectAccount(ctx context.Context, accountID string) (*model.ConnectAccountResp, error) {
|
||||||
//err := s.repository.AmoRepo.CreateAccount(ctx, accountID)
|
|
||||||
//if err != nil {
|
|
||||||
// s.logger.Error("error create account in connectAccount service", zap.Error(err))
|
|
||||||
// return nil, err
|
|
||||||
//}
|
|
||||||
|
|
||||||
fmt.Println("AAAAAAAAAAAAAAAAA")
|
|
||||||
|
|
||||||
link, err := s.socialAuthClient.GenerateAmocrmAuthURL(accountID)
|
link, err := s.socialAuthClient.GenerateAmocrmAuthURL(accountID)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
s.logger.Error("error sending request to pena social auth service:", zap.Error(err))
|
s.logger.Error("error sending request to pena social auth service:", zap.Error(err))
|
||||||
|
Loading…
Reference in New Issue
Block a user