package
1.0.10
Repository: https://github.com/jerbe/jim.git
Documentation: pkg.go.dev

# Functions

AddChatMessage 添加一条聊天消息.
AddChatMessageTx 使用事务添加一条聊天消息.
AddGroup 添加群组.
AddGroupMembers 增加群成员.
AddUser 添加用户.
AddUserRelation 添加一条用户关系.
AddUserRelationInvite 添加一条用户关系建立的请求记录.
CreateGroupTx 事务方式创建群组.
CreateUserRelationTx 事务方式创建用户关系 1.
GetChatMessageList 获取消息列表.
GetGroup 获取一条群组消息.
GetGroupAllMembers 获取群成员资料.
GetGroupMember 获取某个群成员资料.
GetGroupMemberCount 获取群成员数量.
GetGroupMemberIDs 获取群成员ID数组.
GetGroupMemberIDsString 获取.
GetGroupMembers 获取多个群成员资料.
GetLastChatMessageList 获取最近的聊天消息列表.
GetLastUserRelationInvite 获取一条建立用户关系请求记录.
GetUser 根据ID获取用户信息.
GetUserByUsername 根据用户名获取用户信息.
GetUserRelation 获取用户关系信息.
GetUserRelationByUsersID 根据用户id获取用户关系.
GetUserRelationInvite 获取一条建立关系邀请记录.
No description provided by the author
No description provided by the author
MergeGetOptions 合并获取配置.
MergeSetOptions 合并配置.
No description provided by the author
NewGetOptions 新生成一个获取信息的配置.
NewGetOptionsFromSetOptions 从新生成一个获取信息的配置.
NewSetOptions 新生成一个设置获取信息的配置.
NewSetOptionsFromGetOptions 从新生成一个获取信息的配置.
NewSetOptionsWithSQLExt 新生成一个设置获取信息的配置.
RemoveGroupMembers 移除群成员,不区分管理员.
RollbackChatMessage 撤回一条消息.
SearchUsers 获取用户列表.
UpdateGroup 更新群信息.
UpdateGroupMember 更新群组成员信息.
UpdateGroupTx 使用事务方式更新群信息.
UpdateUserRelation 更新用户关系资料.
UpdateUserRelationInvite 更新用户关系邀请.
UpdateUserRelationTx 事务模式更新用户关系资料 1.
UserExist 根据用户ID检测用户是否存在.
UserExistByUsername 根据用户名判断用户是否存在.

# Constants

ChatMessageBodyFormatGIF GIF类型.
ChatMessageBodyFormatJPEG JPEG类型.
ChatMessageBodyFormatMP3 mp3类型.
ChatMessageBodyFormatMP4 mp4类型.
ChatMessageBodyFormatVMA vma类型.
ChatMessageBodyFormatWEBP GIF类型.
ChatMessageSessionTypeGroup 群聊会话类型.
ChatMessageSessionTypePrivate 私聊会话类型.
ChatMessageSessionTypeWorld 世界会话类型.
ChatMessageTypeLocation 位置类型.
ChatMessageTypePicture 图像类型.
ChatMessageTypePlainText 文本类型.
ChatMessageTypeVideo 视频类型.
ChatMessageTypeVoice 语音类型.
No description provided by the author
UserRelationInviteStatusAgree 接收用户关系邀请.
UserRelationInviteStatusPending 等待确认用户关系邀请.
UserRelationInviteStatusReject 拒绝用户关系邀请.

# Variables

No description provided by the author
No description provided by the author
No description provided by the author
MongoDB 库跟集合.
MYSQL 库跟表.
No description provided by the author
No description provided by the author
No description provided by the author
TableGroupMembers 群组成员表.
TableGroups 群组数据表.
TableUserRelation 用户关系表.
TableUserRelationInvite 用户关系邀请表.
TableUsers 用户数据表.

# Structs

No description provided by the author
{ "msg_id":1, // 递增 "type":1, // 消息类型: 1-纯文本,2-图片,3-语音,4-视频, 5-位置 "session_type":1, // 会话类型, 1-私聊,2-群聊 "room_id":"12345", // 房间号 "sender_id":1, // 发送人ID "receiver_id":1, // 接收人ID, // 当,sessin_type=1时为私聊对象ID,当session_type=2时为群聊房间ID "send_status":1, // 消息发送状态,1-已发送,2-未抵达,3-已抵达 "read_status":1, // 已读状态, 0-未读,1-已读 "status":1, // 消息状态, 1-正常,2-已删除,3-已撤回 "body":"{ // 消息主体 // 文本信息。适用消息类型: 1 \"text\": \"纯文本消息\", // 来源地址。通用字段,适用消息类型: 2,3,4 \"src\": \"图片、语音、视频等地址\", // 文件格式。适用消息类型: 2,3,4 \"format\": \"avi\", // 文件大小。适用消息类型: 2,3,4 \"size\": \"123GB\", // 位置信息。适用消息类型: 5 \"longitude\":\"100644.12323\", // 位置信息-纬度。 适用消息类型: 5 \"latitude\":\"100644.12323\", // 位置信息-地图缩放级别。 适用消息类型: 5 "\scale\": 123.3, // 位置信息。适用消息类型: 5 \"location_label\": \"福建省厦门市某个地址\" }", "time":1, // 消息发送时间, 时间戳? } */ ChatMessage 聊天消息体.
ChatMessageBody 消息主体.
ChatRoom 聊天室房间数据.
No description provided by the author
No description provided by the author
No description provided by the author
GetOptions 获取数据的配置.
Group 群组信息.
GroupMember 群成员信息.
No description provided by the author
SearchUsersFilter 获取用户过滤条件.
SetOptions 获取数据的配置.
No description provided by the author
No description provided by the author
UpdateGroupMemberData 更新群组成员数据.
UpdateUserRelationData 更新用户关系配置.
UpdateUserRelationFilter 更新用户关系过滤器.
UpdateUserRelationInviteData 更新用户关系邀请数据.
UpdateUserRelationInviteFilter 更新用户关系邀请过滤器.
No description provided by the author
UserRelation 用户关系信息.
UserRelationInvite 用户关系邀请.