mirror of
https://github.com/openimsdk/open-im-server.git
synced 2025-05-29 17:59:23 +08:00
notification
This commit is contained in:
parent
2ab6136b2f
commit
95e4506279
@ -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 {
|
||||
|
Loading…
x
Reference in New Issue
Block a user