relation

package
v3.8.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 22, 2024 License: Apache-2.0 Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ServerBlackToLocalBlack

func ServerBlackToLocalBlack(info *sdkws.BlackInfo) *model_struct.LocalBlack

func ServerFriendRequestToLocalFriendRequest

func ServerFriendRequestToLocalFriendRequest(info *sdkws.FriendRequest) *model_struct.LocalFriendRequest

func ServerFriendToLocalFriend

func ServerFriendToLocalFriend(info *sdkws.FriendInfo) *model_struct.LocalFriend

Types

type Relation

type Relation struct {
	// contains filtered or unexported fields
}

func NewFriend

func NewFriend(loginUserID string, db db_interface.DataBase, user *user.User, conversationCh chan common.Cmd2Value) *Relation

func (*Relation) AcceptFriendApplication

func (r *Relation) AcceptFriendApplication(ctx context.Context, userIDHandleMsg *sdk.ProcessFriendApplicationParams) error

func (*Relation) AddBlack

func (r *Relation) AddBlack(ctx context.Context, blackUserID string, ex string) error

func (*Relation) AddFriend

func (r *Relation) AddFriend(ctx context.Context, req *relation.ApplyToAddFriendReq) error

func (*Relation) CheckFriend

func (r *Relation) CheckFriend(ctx context.Context, friendUserIDList []string) ([]*server_api_params.UserIDResult, error)

func (*Relation) Db

func (r *Relation) Db() db_interface.DataBase

func (*Relation) DeleteFriend

func (r *Relation) DeleteFriend(ctx context.Context, friendUserID string) error

func (*Relation) DoNotification

func (r *Relation) DoNotification(ctx context.Context, msg *sdkws.MsgData)

func (*Relation) GetBlackList

func (r *Relation) GetBlackList(ctx context.Context) ([]*model_struct.LocalBlack, error)

func (*Relation) GetDesignatedFriends

func (r *Relation) GetDesignatedFriends(ctx context.Context, friendIDs []string) ([]*sdkws.FriendInfo, error)

func (*Relation) GetFriendApplicationListAsApplicant

func (r *Relation) GetFriendApplicationListAsApplicant(ctx context.Context) ([]*model_struct.LocalFriendRequest, error)

func (*Relation) GetFriendApplicationListAsRecipient

func (r *Relation) GetFriendApplicationListAsRecipient(ctx context.Context) ([]*model_struct.LocalFriendRequest, error)

func (*Relation) GetFriendList

func (r *Relation) GetFriendList(ctx context.Context, filterBlack bool) ([]*model_struct.LocalFriend, error)

func (*Relation) GetFriendListPage

func (r *Relation) GetFriendListPage(ctx context.Context, offset, count int32, filterBlack bool) ([]*model_struct.LocalFriend, error)

func (*Relation) GetSpecifiedFriendsInfo

func (r *Relation) GetSpecifiedFriendsInfo(ctx context.Context, friendUserIDList []string, filterBlack bool) ([]*model_struct.LocalFriend, error)

func (*Relation) IncrSyncFriends

func (r *Relation) IncrSyncFriends(ctx context.Context) error

func (*Relation) RefuseFriendApplication

func (r *Relation) RefuseFriendApplication(ctx context.Context, userIDHandleMsg *sdk.ProcessFriendApplicationParams) error

func (*Relation) RemoveBlack

func (r *Relation) RemoveBlack(ctx context.Context, blackUserID string) error

func (*Relation) RespondFriendApply

func (r *Relation) RespondFriendApply(ctx context.Context, req *relation.RespondFriendApplyReq) error

func (*Relation) SearchFriends

func (r *Relation) SearchFriends(ctx context.Context, param *sdk.SearchFriendsParam) ([]*sdk.SearchFriendItem, error)

func (*Relation) SetListener

func (r *Relation) SetListener(listener func() open_im_sdk_callback.OnFriendshipListener)

func (*Relation) SetListenerForService

func (r *Relation) SetListenerForService(listener open_im_sdk_callback.OnListenerForService)

func (*Relation) SyncAllBlackList

func (r *Relation) SyncAllBlackList(ctx context.Context) error

func (*Relation) SyncAllBlackListWithoutNotice

func (r *Relation) SyncAllBlackListWithoutNotice(ctx context.Context) error

func (*Relation) SyncAllFriendApplication

func (r *Relation) SyncAllFriendApplication(ctx context.Context) error

SyncAllFriendApplication recv

func (*Relation) SyncAllFriendApplicationWithoutNotice

func (r *Relation) SyncAllFriendApplicationWithoutNotice(ctx context.Context) error

func (*Relation) SyncAllFriendList

func (r *Relation) SyncAllFriendList(ctx context.Context) error

func (*Relation) SyncAllSelfFriendApplication

func (r *Relation) SyncAllSelfFriendApplication(ctx context.Context) error

SyncAllSelfFriendApplication send

func (*Relation) SyncAllSelfFriendApplicationWithoutNotice

func (r *Relation) SyncAllSelfFriendApplicationWithoutNotice(ctx context.Context) error

func (*Relation) SyncBothFriendRequest

func (r *Relation) SyncBothFriendRequest(ctx context.Context, fromUserID, toUserID string) error

func (*Relation) UpdateFriends

func (r *Relation) UpdateFriends(ctx context.Context, req *relation.UpdateFriendsReq) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL