From 95e45062799e8e25c55349d0d684f4b534107d30 Mon Sep 17 00:00:00 2001 From: wangchuxiao Date: Sun, 23 Apr 2023 15:20:35 +0800 Subject: [PATCH] notification --- pkg/rpcclient/notification2/friend.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/pkg/rpcclient/notification2/friend.go b/pkg/rpcclient/notification2/friend.go index 23b9b3131..cc0931fc4 100644 --- a/pkg/rpcclient/notification2/friend.go +++ b/pkg/rpcclient/notification2/friend.go @@ -24,6 +24,12 @@ type FriendNotificationSender struct { db controller.FriendDatabase } +func Test_New() { + var c controller.UserDatabase + noti := NewFriendNotificationSender(client, WithDBFunc(c.FindWithError)) + noti.BlackAddedNotification(ctx, pb) +} + type friendNotificationSenderOptions func(*FriendNotificationSender) func WithDBFunc(fn func(ctx context.Context, userIDs []string) (users []*relationTb.UserModel, err error)) friendNotificationSenderOptions {