( data *data.Data, notificationRepo NotificationRepo, userCommon *usercommon.UserCommon, activityRepo activity_common.ActivityRepo, followRepo activity_common.FollowRepo, objectInfoService *object_info.ObjService, notificationQueueService noticequeue.Service, userExternalLoginRepo user_external_login.UserExternalLoginRepo, siteInfoService siteinfo_common.SiteInfoCommonService, )
| 72 | } |
| 73 | |
| 74 | func NewNotificationCommon( |
| 75 | data *data.Data, |
| 76 | notificationRepo NotificationRepo, |
| 77 | userCommon *usercommon.UserCommon, |
| 78 | activityRepo activity_common.ActivityRepo, |
| 79 | followRepo activity_common.FollowRepo, |
| 80 | objectInfoService *object_info.ObjService, |
| 81 | notificationQueueService noticequeue.Service, |
| 82 | userExternalLoginRepo user_external_login.UserExternalLoginRepo, |
| 83 | siteInfoService siteinfo_common.SiteInfoCommonService, |
| 84 | ) *NotificationCommon { |
| 85 | notification := &NotificationCommon{ |
| 86 | data: data, |
| 87 | notificationRepo: notificationRepo, |
| 88 | activityRepo: activityRepo, |
| 89 | followRepo: followRepo, |
| 90 | userCommon: userCommon, |
| 91 | objectInfoService: objectInfoService, |
| 92 | notificationQueueService: notificationQueueService, |
| 93 | userExternalLoginRepo: userExternalLoginRepo, |
| 94 | siteInfoService: siteInfoService, |
| 95 | } |
| 96 | notificationQueueService.RegisterHandler(notification.AddNotification) |
| 97 | return notification |
| 98 | } |
| 99 | |
| 100 | // AddNotification |
| 101 | // need set |
nothing calls this directly
no test coverage detected