-
Notifications
You must be signed in to change notification settings - Fork 363
/
helper.go
37 lines (31 loc) · 1.08 KB
/
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
29
30
31
32
33
34
35
36
37
/*
* WARNING! All changes made in this file will be lost!
* Created from 'scheme.tl' by 'mtprotoc'
*
* Copyright (c) 2021-present, Teamgram Studio (https://teamgram.io).
* All rights reserved.
*
* Author: teamgramio (teamgram.io@gmail.com)
*/
package chat_helper
import (
"github.com/teamgram/teamgram-server/app/service/biz/chat/internal/config"
"github.com/teamgram/teamgram-server/app/service/biz/chat/internal/dal/dao/mysql_dao"
"github.com/teamgram/teamgram-server/app/service/biz/chat/internal/dal/dataobject"
"github.com/teamgram/teamgram-server/app/service/biz/chat/internal/server/grpc/service"
"github.com/teamgram/teamgram-server/app/service/biz/chat/internal/svc"
"github.com/teamgram/teamgram-server/app/service/biz/chat/plugin"
)
type (
Config = config.Config
)
type (
ChatParticipantsDAO = mysql_dao.ChatParticipantsDAO
ChatParticipantsDO = dataobject.ChatParticipantsDO
)
var (
NewChatParticipantsDAO = mysql_dao.NewChatParticipantsDAO
)
func New(c Config, plugin plugin.ChatPlugin) *service.Service {
return service.New(svc.NewServiceContext(c, plugin))
}