group

package
v0.0.0-...-9bd7499 Latest Latest
Warning

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

Go to latest
Published: Mar 20, 2023 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Group

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

//utils.GetCurrentTimestampByMill()

func NewGroup

func NewGroup(loginUserID string, db *db.DataBase, p *ws.PostApi,
	joinedSuperGroupCh chan common.Cmd2Value, heartbeatCmdCh chan common.Cmd2Value,
	conversationCh chan common.Cmd2Value) *Group

func (*Group) AcceptGroupApplication

func (g *Group) AcceptGroupApplication(callback open_im_sdk_callback.Base, groupID, fromUserID, handleMsg string, operationID string)

func (*Group) ChangeGroupMemberMute

func (g *Group) ChangeGroupMemberMute(callback open_im_sdk_callback.Base, groupID, userID string, mutedSeconds uint32, operationID string)

func (*Group) ChangeGroupMute

func (g *Group) ChangeGroupMute(callback open_im_sdk_callback.Base, groupID string, isMute bool, operationID string)

func (*Group) CreateGroup

func (g *Group) CreateGroup(callback open_im_sdk_callback.Base, groupBaseInfo string, memberList string, operationID string)

func (*Group) DismissGroup

func (g *Group) DismissGroup(callback open_im_sdk_callback.Base, groupID string, operationID string)

func (*Group) DoNotification

func (g *Group) DoNotification(msg *api.MsgData, conversationCh chan common.Cmd2Value)

func (*Group) GetGroupInfoFromLocal2Svr

func (g *Group) GetGroupInfoFromLocal2Svr(groupID string) (*model_struct.LocalGroup, error)

func (*Group) GetGroupMemberList

func (g *Group) GetGroupMemberList(callback open_im_sdk_callback.Base, groupID string, filter, offset, count int32, operationID string)

func (*Group) GetGroupMemberListByJoinTimeFilter

func (g *Group) GetGroupMemberListByJoinTimeFilter(callback open_im_sdk_callback.Base, groupID string, offset, count int32, joinTimeBegin, joinTimeEnd int64, filterUserID, operationID string)

getGroupMemberListByJoinTimeFilter

func (*Group) GetGroupMemberOwnerAndAdmin

func (g *Group) GetGroupMemberOwnerAndAdmin(callback open_im_sdk_callback.Base, groupID string, operationID string)

func (*Group) GetGroupMembersInfo

func (g *Group) GetGroupMembersInfo(callback open_im_sdk_callback.Base, groupID string, userIDList string, operationID string)

func (*Group) GetGroupOwnerIDAndAdminIDList

func (g *Group) GetGroupOwnerIDAndAdminIDList(groupID, operationID string) (ownerID string, adminIDList []string, err error)

func (*Group) GetGroupsInfo

func (g *Group) GetGroupsInfo(callback open_im_sdk_callback.Base, groupIDList string, operationID string)

func (*Group) GetJoinedDiffusionGroupIDListFromSvr

func (g *Group) GetJoinedDiffusionGroupIDListFromSvr(operationID string) ([]string, error)

func (*Group) GetJoinedGroupList

func (g *Group) GetJoinedGroupList(callback open_im_sdk_callback.Base, operationID string)

func (*Group) GetRecvGroupApplicationList

func (g *Group) GetRecvGroupApplicationList(callback open_im_sdk_callback.Base, operationID string)

func (*Group) GetSendGroupApplicationList

func (g *Group) GetSendGroupApplicationList(callback open_im_sdk_callback.Base, operationID string)

func (*Group) InviteUserToGroup

func (g *Group) InviteUserToGroup(callback open_im_sdk_callback.Base, groupID, reason string, userIDList string, operationID string)

func (*Group) JoinGroup

func (g *Group) JoinGroup(callback open_im_sdk_callback.Base, groupID, reqMsg string, joinSource int32, operationID string)

func (*Group) KickGroupMember

func (g *Group) KickGroupMember(callback open_im_sdk_callback.Base, groupID string, reason string, userIDList string, operationID string)

func (*Group) LoginTime

func (g *Group) LoginTime() int64

func (*Group) QuitGroup

func (g *Group) QuitGroup(callback open_im_sdk_callback.Base, groupID string, operationID string)

func (*Group) RefuseGroupApplication

func (g *Group) RefuseGroupApplication(callback open_im_sdk_callback.Base, groupID, fromUserID, handleMsg string, operationID string)

func (*Group) SearchGroupMembers

func (g *Group) SearchGroupMembers(callback open_im_sdk_callback.Base, searchParam string, operationID string)

func (*Group) SearchGroups

func (g *Group) SearchGroups(callback open_im_sdk_callback.Base, searchParam, operationID string)

func (*Group) SetGroupApplyMemberFriend

func (g *Group) SetGroupApplyMemberFriend(callback open_im_sdk_callback.Base, rule int32, groupID string, operationID string)

func (*Group) SetGroupInfo

func (g *Group) SetGroupInfo(callback open_im_sdk_callback.Base, groupInfo string, groupID string, operationID string)

func (*Group) SetGroupListener

func (g *Group) SetGroupListener(callback open_im_sdk_callback.OnGroupListener)

func (*Group) SetGroupLookMemberInfo

func (g *Group) SetGroupLookMemberInfo(callback open_im_sdk_callback.Base, rule int32, groupID string, operationID string)

func (*Group) SetGroupMemberNickname

func (g *Group) SetGroupMemberNickname(callback open_im_sdk_callback.Base, groupID, userID string, GroupMemberNickname string, operationID string)

func (*Group) SetGroupMemberRoleLevel

func (g *Group) SetGroupMemberRoleLevel(callback open_im_sdk_callback.Base, groupID, userID string, roleLevel int, operationID string)

func (*Group) SetGroupVerification

func (g *Group) SetGroupVerification(callback open_im_sdk_callback.Base, verification int32, groupID string, operationID string)

func (*Group) SetLoginTime

func (g *Group) SetLoginTime(loginTime int64)

func (*Group) SyncAdminGroupApplication

func (g *Group) SyncAdminGroupApplication(operationID string)

func (*Group) SyncJoinedGroupList

func (g *Group) SyncJoinedGroupList(operationID string)
func transferGroupInfo(input []*api.GroupInfo) []*api.GroupInfo{
	var result []*api.GroupInfo
	for _, v := range input {
		t := &api.GroupInfo{}
		copier.Copy(t, &v)
		if v.NeedVerification != nil {
			t.NeedVerification = v.NeedVerification.Value
		}
		result = append(result, t)
	}
	return result
}

func (*Group) SyncJoinedGroupMemberForFirstLogin

func (g *Group) SyncJoinedGroupMemberForFirstLogin(operationID string)

func (*Group) SyncSelfGroupApplication

func (g *Group) SyncSelfGroupApplication(operationID string)

func (*Group) TransferGroupOwner

func (g *Group) TransferGroupOwner(callback open_im_sdk_callback.Base, groupID, newOwnerUserID string, operationID string)

Jump to

Keyboard shortcuts

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