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 Friend
- func (f *Friend) AcceptFriendApplication(ctx context.Context, userIDHandleMsg *sdk.ProcessFriendApplicationParams) error
- func (f *Friend) AddBlack(ctx context.Context, blackUserID string, ex string) error
- func (f *Friend) AddFriend(ctx context.Context, userIDReqMsg *friend.ApplyToAddFriendReq) error
- func (f *Friend) CheckFriend(ctx context.Context, friendUserIDList []string) ([]*server_api_params.UserIDResult, error)
- func (f *Friend) Db() db_interface.DataBase
- func (f *Friend) DeleteFriend(ctx context.Context, friendUserID string) error
- func (f *Friend) DoNotification(ctx context.Context, msg *sdkws.MsgData)
- func (f *Friend) GetBlackList(ctx context.Context) ([]*model_struct.LocalBlack, error)
- func (f *Friend) GetFriendApplicationListAsApplicant(ctx context.Context) ([]*model_struct.LocalFriendRequest, error)
- func (f *Friend) GetFriendApplicationListAsRecipient(ctx context.Context) ([]*model_struct.LocalFriendRequest, error)
- func (f *Friend) GetFriendList(ctx context.Context) ([]*server_api_params.FullUserInfo, error)
- func (f *Friend) GetFriendListPage(ctx context.Context, offset, count int32) ([]*server_api_params.FullUserInfo, error)
- func (f *Friend) GetSpecifiedFriendsInfo(ctx context.Context, friendUserIDList []string) ([]*server_api_params.FullUserInfo, error)
- func (f *Friend) PinFriends(ctx context.Context, userIDPin *sdk.SetFriendPinParams) error
- func (f *Friend) RefuseFriendApplication(ctx context.Context, userIDHandleMsg *sdk.ProcessFriendApplicationParams) error
- func (f *Friend) RemoveBlack(ctx context.Context, blackUserID string) error
- func (f *Friend) RespondFriendApply(ctx context.Context, req *friend.RespondFriendApplyReq) error
- func (f *Friend) SearchFriends(ctx context.Context, param *sdk.SearchFriendsParam) ([]*sdk.SearchFriendItem, error)
- func (f *Friend) SetFriendRemark(ctx context.Context, userIDRemark *sdk.SetFriendRemarkParams) error
- func (f *Friend) SetFriendsEx(ctx context.Context, friendIDs []string, ex string) error
- func (f *Friend) SetListener(listener func() open_im_sdk_callback.OnFriendshipListener)
- func (f *Friend) SetListenerForService(listener open_im_sdk_callback.OnListenerForService)
- func (f *Friend) SyncAllBlackList(ctx context.Context) error
- func (f *Friend) SyncAllFriendApplication(ctx context.Context) error
- func (f *Friend) SyncAllFriendList(ctx context.Context) error
- func (f *Friend) SyncAllSelfFriendApplication(ctx context.Context) error
- func (f *Friend) SyncBothFriendRequest(ctx context.Context, fromUserID, toUserID string) error
- func (f *Friend) SyncFriends(ctx context.Context, friendIDs []string) 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 Friend ¶
type Friend struct {
// contains filtered or unexported fields
}
func (*Friend) AcceptFriendApplication ¶
func (*Friend) CheckFriend ¶
func (f *Friend) CheckFriend(ctx context.Context, friendUserIDList []string) ([]*server_api_params.UserIDResult, error)
func (*Friend) Db ¶
func (f *Friend) Db() db_interface.DataBase
func (*Friend) DeleteFriend ¶
func (*Friend) DoNotification ¶
func (*Friend) GetBlackList ¶
func (f *Friend) GetBlackList(ctx context.Context) ([]*model_struct.LocalBlack, error)
func (*Friend) GetFriendApplicationListAsApplicant ¶
func (f *Friend) GetFriendApplicationListAsApplicant(ctx context.Context) ([]*model_struct.LocalFriendRequest, error)
func (*Friend) GetFriendApplicationListAsRecipient ¶
func (f *Friend) GetFriendApplicationListAsRecipient(ctx context.Context) ([]*model_struct.LocalFriendRequest, error)
func (*Friend) GetFriendList ¶
func (f *Friend) GetFriendList(ctx context.Context) ([]*server_api_params.FullUserInfo, error)
func (*Friend) GetFriendListPage ¶
func (f *Friend) GetFriendListPage(ctx context.Context, offset, count int32) ([]*server_api_params.FullUserInfo, error)
func (*Friend) GetSpecifiedFriendsInfo ¶
func (f *Friend) GetSpecifiedFriendsInfo(ctx context.Context, friendUserIDList []string) ([]*server_api_params.FullUserInfo, error)
func (*Friend) PinFriends ¶
func (*Friend) RefuseFriendApplication ¶
func (*Friend) RemoveBlack ¶
func (*Friend) RespondFriendApply ¶
func (*Friend) SearchFriends ¶
func (f *Friend) SearchFriends(ctx context.Context, param *sdk.SearchFriendsParam) ([]*sdk.SearchFriendItem, error)
func (*Friend) SetFriendRemark ¶
func (*Friend) SetFriendsEx ¶
func (*Friend) SetListener ¶
func (f *Friend) SetListener(listener func() open_im_sdk_callback.OnFriendshipListener)
func (*Friend) SetListenerForService ¶
func (f *Friend) SetListenerForService(listener open_im_sdk_callback.OnListenerForService)
func (*Friend) SyncAllFriendApplication ¶
recv
func (*Friend) SyncAllSelfFriendApplication ¶
send
func (*Friend) SyncBothFriendRequest ¶
Click to show internal directories.
Click to hide internal directories.