-
Notifications
You must be signed in to change notification settings - Fork 347
/
helper.go
53 lines (44 loc) · 1.49 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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
/*
* 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 user_helper
import (
"github.com/teamgram/teamgram-server/app/service/biz/user/internal/config"
"github.com/teamgram/teamgram-server/app/service/biz/user/internal/dal/dataobject"
"github.com/teamgram/teamgram-server/app/service/biz/user/internal/dao"
"github.com/teamgram/teamgram-server/app/service/biz/user/internal/server/grpc/service"
"github.com/teamgram/teamgram-server/app/service/biz/user/internal/svc"
)
type (
Dao = dao.Dao
CacheUserData = dao.CacheUserData
UserContactsDO = dataobject.UserContactsDO
UserPresencesDO = dataobject.UserPresencesDO
)
var (
GenCacheUserDataCacheKey = dao.GenCacheUserDataCacheKey
ParseCacheUserDataCacheKey = dao.ParseCacheUserDataCacheKey
IsCacheUserDataCacheKey = dao.IsCacheUserDataCacheKey
GenUserPresencesKey = dao.GenUserPresencesKey
IsUserPresencesKey = dao.IsUserPresencesKey
ParseUserPresencesKey = dao.ParseUserPresencesKey
GenContactCacheKey = dao.GenContactCacheKey
IsContactCacheKey = dao.IsContactCacheKey
ParseContactCacheKey = dao.ParseContactCacheKey
)
type (
Config = config.Config
Service = service.Service
)
var (
NewServiceContext = svc.NewServiceContext
)
func New(c Config) *service.Service {
return service.New(svc.NewServiceContext(c))
}