-
Notifications
You must be signed in to change notification settings - Fork 347
/
helper.go
28 lines (24 loc) · 874 Bytes
/
helper.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
/*
* WARNING! All changes made in this file will be lost!
* Created from 'scheme.tl' by 'mtprotoc'
*
* Copyright 2022 Teamgram Authors.
* All rights reserved.
*
* Author: teamgramio (teamgram.io@gmail.com)
*/
package authorization_helper
import (
"github.com/teamgram/teamgram-server/app/bff/authorization/internal/config"
"github.com/teamgram/teamgram-server/app/bff/authorization/internal/server/grpc/service"
"github.com/teamgram/teamgram-server/app/bff/authorization/internal/svc"
"github.com/teamgram/teamgram-server/app/bff/authorization/plugin"
"github.com/teamgram/teamgram-server/pkg/code"
)
type (
Config = config.Config
AuthorizationService = service.Service
)
func New(c Config, code2 code.VerifyCodeInterface, plugin plugin.AuthorizationPlugin) *service.Service {
return service.New(svc.NewServiceContext(c, code2, plugin))
}