66 gorm "gorm.io/gorm"
77)
88
9- var _ProvidersSingle * Providers
109var _telescopeHookSingle * telescopeHook
10+ var _ProvidersSingle * Providers
1111var _BatchSingle * Batch
1212var _CacheSingle * Cache
1313var _ClientRequestSingle * ClientRequest
@@ -18,6 +18,7 @@ var _ExceptionSingle *Exception
1818var _JobSingle * Job
1919var _LogSingle * Log
2020var _ModelSingle * Model
21+ var _NotificationSingle * Notification
2122var _QuerySingle * Query
2223var _RedisSingle * Redis
2324var _RequestSingle * Request
@@ -26,8 +27,8 @@ var _TcpSingle *Tcp
2627
2728func GetAllProvider () []interface {} {
2829 return []interface {}{
29- NewProviders (),
3030 NewtelescopeHook (),
31+ NewProviders (),
3132 NewBatch (),
3233 NewCache (),
3334 NewClientRequest (),
@@ -38,6 +39,7 @@ func GetAllProvider() []interface{} {
3839 NewJob (),
3940 NewLog (),
4041 NewModel (),
42+ NewNotification (),
4143 NewQuery (),
4244 NewRedis (),
4345 NewRequest (),
@@ -46,6 +48,13 @@ func GetAllProvider() []interface{} {
4648 }
4749}
4850
51+ func NewtelescopeHook () * telescopeHook {
52+ if _telescopeHookSingle == nil {
53+ _telescopeHookSingle = & telescopeHook {}
54+ providers .AfterProvider (_telescopeHookSingle , "" )
55+ }
56+ return _telescopeHookSingle
57+ }
4958func NewProviders () * Providers {
5059 if _ProvidersSingle == nil {
5160 _ProvidersSingle = & Providers {}
@@ -54,13 +63,6 @@ func NewProviders() *Providers {
5463 }
5564 return _ProvidersSingle
5665}
57- func NewtelescopeHook () * telescopeHook {
58- if _telescopeHookSingle == nil {
59- _telescopeHookSingle = & telescopeHook {}
60- providers .AfterProvider (_telescopeHookSingle , "" )
61- }
62- return _telescopeHookSingle
63- }
6466func NewBatch () * Batch {
6567 if _BatchSingle == nil {
6668 _BatchSingle = & Batch {}
@@ -131,6 +133,13 @@ func NewModel() *Model {
131133 }
132134 return _ModelSingle
133135}
136+ func NewNotification () * Notification {
137+ if _NotificationSingle == nil {
138+ _NotificationSingle = & Notification {}
139+ providers .AfterProvider (_NotificationSingle , "" )
140+ }
141+ return _NotificationSingle
142+ }
134143func NewQuery () * Query {
135144 if _QuerySingle == nil {
136145 _QuerySingle = & Query {}
0 commit comments