You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
437 B
18 lines
437 B
package module
|
|
|
|
import (
|
|
"github.com/openimsdk/openim-sdk-core/v3/pkg/constant"
|
|
"github.com/openimsdk/protocol/relation"
|
|
)
|
|
|
|
type TestFriendManager struct {
|
|
*MetaManager
|
|
}
|
|
|
|
func (t *TestFriendManager) ImportFriends(ownerUserID string, friendUserIDs []string) error {
|
|
req := &relation.ImportFriendReq{
|
|
OwnerUserID: ownerUserID,
|
|
FriendUserIDs: friendUserIDs,
|
|
}
|
|
return t.postWithCtx(constant.ImportFriendListRouter, &req, nil)
|
|
}
|
|
|