MCPcopy Index your code
hub / github.com/apache/answer / NewNotificationCommon

Function NewNotificationCommon

internal/service/notification_common/notification.go:74–98  ·  view source on GitHub ↗
(
	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,
)

Source from the content-addressed store, hash-verified

72}
73
74func 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

Callers

nothing calls this directly

Calls 1

RegisterHandlerMethod · 0.65

Tested by

no test coverage detected