6
6
gorm "gorm.io/gorm"
7
7
)
8
8
9
- var _ProvidersSingle * Providers
10
9
var _telescopeHookSingle * telescopeHook
10
+ var _ProvidersSingle * Providers
11
11
var _BatchSingle * Batch
12
12
var _CacheSingle * Cache
13
13
var _ClientRequestSingle * ClientRequest
@@ -18,6 +18,7 @@ var _ExceptionSingle *Exception
18
18
var _JobSingle * Job
19
19
var _LogSingle * Log
20
20
var _ModelSingle * Model
21
+ var _NotificationSingle * Notification
21
22
var _QuerySingle * Query
22
23
var _RedisSingle * Redis
23
24
var _RequestSingle * Request
@@ -26,8 +27,8 @@ var _TcpSingle *Tcp
26
27
27
28
func GetAllProvider () []interface {} {
28
29
return []interface {}{
29
- NewProviders (),
30
30
NewtelescopeHook (),
31
+ NewProviders (),
31
32
NewBatch (),
32
33
NewCache (),
33
34
NewClientRequest (),
@@ -38,6 +39,7 @@ func GetAllProvider() []interface{} {
38
39
NewJob (),
39
40
NewLog (),
40
41
NewModel (),
42
+ NewNotification (),
41
43
NewQuery (),
42
44
NewRedis (),
43
45
NewRequest (),
@@ -46,6 +48,13 @@ func GetAllProvider() []interface{} {
46
48
}
47
49
}
48
50
51
+ func NewtelescopeHook () * telescopeHook {
52
+ if _telescopeHookSingle == nil {
53
+ _telescopeHookSingle = & telescopeHook {}
54
+ providers .AfterProvider (_telescopeHookSingle , "" )
55
+ }
56
+ return _telescopeHookSingle
57
+ }
49
58
func NewProviders () * Providers {
50
59
if _ProvidersSingle == nil {
51
60
_ProvidersSingle = & Providers {}
@@ -54,13 +63,6 @@ func NewProviders() *Providers {
54
63
}
55
64
return _ProvidersSingle
56
65
}
57
- func NewtelescopeHook () * telescopeHook {
58
- if _telescopeHookSingle == nil {
59
- _telescopeHookSingle = & telescopeHook {}
60
- providers .AfterProvider (_telescopeHookSingle , "" )
61
- }
62
- return _telescopeHookSingle
63
- }
64
66
func NewBatch () * Batch {
65
67
if _BatchSingle == nil {
66
68
_BatchSingle = & Batch {}
@@ -131,6 +133,13 @@ func NewModel() *Model {
131
133
}
132
134
return _ModelSingle
133
135
}
136
+ func NewNotification () * Notification {
137
+ if _NotificationSingle == nil {
138
+ _NotificationSingle = & Notification {}
139
+ providers .AfterProvider (_NotificationSingle , "" )
140
+ }
141
+ return _NotificationSingle
142
+ }
134
143
func NewQuery () * Query {
135
144
if _QuerySingle == nil {
136
145
_QuerySingle = & Query {}
0 commit comments