19 lines
437 B
Go
19 lines
437 B
Go
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)
|
|
}
|