Documentation ¶
Index ¶
- func ServerBlackToLocalBlack(info *sdkws.BlackInfo) *model_struct.LocalBlack
- func ServerFriendRequestToLocalFriendRequest(info *sdkws.FriendRequest) *model_struct.LocalFriendRequest
- func ServerFriendToLocalFriend(info *sdkws.FriendInfo) *model_struct.LocalFriend
- type Relation
- func (r *Relation) AcceptFriendApplication(ctx context.Context, userIDHandleMsg *sdk.ProcessFriendApplicationParams) error
- func (r *Relation) AddBlack(ctx context.Context, blackUserID string, ex string) error
- func (r *Relation) AddFriend(ctx context.Context, req *relation.ApplyToAddFriendReq) error
- func (r *Relation) CheckFriend(ctx context.Context, friendUserIDList []string) ([]*server_api_params.UserIDResult, error)
- func (r *Relation) Db() db_interface.DataBase
- func (r *Relation) DeleteFriend(ctx context.Context, friendUserID string) error
- func (r *Relation) DoNotification(ctx context.Context, msg *sdkws.MsgData)
- func (r *Relation) GetBlackList(ctx context.Context) ([]*model_struct.LocalBlack, error)
- func (r *Relation) GetDesignatedFriends(ctx context.Context, friendIDs []string) ([]*sdkws.FriendInfo, error)
- func (r *Relation) GetFriendApplicationListAsApplicant(ctx context.Context) ([]*model_struct.LocalFriendRequest, error)
- func (r *Relation) GetFriendApplicationListAsRecipient(ctx context.Context) ([]*model_struct.LocalFriendRequest, error)
- func (r *Relation) GetFriendList(ctx context.Context, filterBlack bool) ([]*model_struct.LocalFriend, error)
- func (r *Relation) GetFriendListPage(ctx context.Context, offset, count int32, filterBlack bool) ([]*model_struct.LocalFriend, error)
- func (r *Relation) GetSpecifiedFriendsInfo(ctx context.Context, friendUserIDList []string, filterBlack bool) ([]*model_struct.LocalFriend, error)
- func (r *Relation) IncrSyncFriends(ctx context.Context) error
- func (r *Relation) RefuseFriendApplication(ctx context.Context, userIDHandleMsg *sdk.ProcessFriendApplicationParams) error
- func (r *Relation) RemoveBlack(ctx context.Context, blackUserID string) error
- func (r *Relation) RespondFriendApply(ctx context.Context, req *relation.RespondFriendApplyReq) error
- func (r *Relation) SearchFriends(ctx context.Context, param *sdk.SearchFriendsParam) ([]*sdk.SearchFriendItem, error)
- func (r *Relation) SetListener(listener func() open_im_sdk_callback.OnFriendshipListener)
- func (r *Relation) SetListenerForService(listener open_im_sdk_callback.OnListenerForService)
- func (r *Relation) SyncAllBlackList(ctx context.Context) error
- func (r *Relation) SyncAllBlackListWithoutNotice(ctx context.Context) error
- func (r *Relation) SyncAllFriendApplication(ctx context.Context) error
- func (r *Relation) SyncAllFriendApplicationWithoutNotice(ctx context.Context) error
- func (r *Relation) SyncAllFriendList(ctx context.Context) error
- func (r *Relation) SyncAllSelfFriendApplication(ctx context.Context) error
- func (r *Relation) SyncAllSelfFriendApplicationWithoutNotice(ctx context.Context) error
- func (r *Relation) SyncBothFriendRequest(ctx context.Context, fromUserID, toUserID string) error
- func (r *Relation) UpdateFriends(ctx context.Context, req *relation.UpdateFriendsReq) error
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 (*Relation) AcceptFriendApplication ¶
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 (*Relation) DoNotification ¶
func (*Relation) GetBlackList ¶
func (r *Relation) GetBlackList(ctx context.Context) ([]*model_struct.LocalBlack, error)
func (*Relation) GetDesignatedFriends ¶
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) RefuseFriendApplication ¶
func (*Relation) RemoveBlack ¶
func (*Relation) RespondFriendApply ¶
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) SyncAllBlackListWithoutNotice ¶
func (*Relation) SyncAllFriendApplication ¶
SyncAllFriendApplication recv
func (*Relation) SyncAllFriendApplicationWithoutNotice ¶
func (*Relation) SyncAllFriendList ¶
func (*Relation) SyncAllSelfFriendApplication ¶
SyncAllSelfFriendApplication send
func (*Relation) SyncAllSelfFriendApplicationWithoutNotice ¶
func (*Relation) SyncBothFriendRequest ¶
func (*Relation) UpdateFriends ¶
Click to show internal directories.
Click to hide internal directories.