Documentation ¶
Index ¶
- type LocalAdminGroupRequest
- type LocalBlack
- type LocalChatLog
- type LocalChatLogReactionExtensions
- type LocalConversation
- type LocalConversationUnreadMessage
- type LocalErrChatLog
- type LocalFriend
- type LocalFriendRequest
- type LocalGroup
- type LocalGroupMember
- type LocalGroupRequest
- type LocalSeq
- type LocalSeqData
- type LocalStranger
- type LocalUpload
- type LocalUser
- type LocalWorkMomentsNotification
- type LocalWorkMomentsNotificationUnreadCount
- type NotificationSeqs
- type TempCacheLocalChatLog
- type WorkMomentNotificationMsg
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LocalAdminGroupRequest ¶
type LocalAdminGroupRequest struct {
LocalGroupRequest
}
message GroupRequest{ string UserID = 1; string GroupID = 2; string HandleResult = 3; string ReqMsg = 4; string HandleMsg = 5; int64 ReqTime = 6; string HandleUserID = 7; int64 HandleTime = 8; string Ex = 9; }open_im_sdk.GroupRequest == imdb.GroupRequest
type LocalBlack ¶
type LocalBlack struct { OwnerUserID string `gorm:"column:owner_user_id;primary_key;type:varchar(64)" json:"ownerUserID"` BlockUserID string `gorm:"column:block_user_id;primary_key;type:varchar(64)" json:"userID"` Nickname string `gorm:"column:nickname;type:varchar(255)" json:"nickname"` FaceURL string `gorm:"column:face_url;type:varchar(255)" json:"faceURL"` //Gender int32 `gorm:"column:gender" json:"gender"` CreateTime int64 `gorm:"column:create_time" json:"createTime"` AddSource int32 `gorm:"column:add_source" json:"addSource"` OperatorUserID string `gorm:"column:operator_user_id;type:varchar(64)" json:"operatorUserID"` Ex string `gorm:"column:ex;type:varchar(1024)" json:"ex"` AttachedInfo string `gorm:"column:attached_info;type:varchar(1024)" json:"attachedInfo"` }
message BlackInfo{ string OwnerUserID = 1; int64 CreateTime = 2; PublicUserInfo BlackUserInfo = 4; int32 AddSource = 5; string OperatorUserID = 6; string Ex = 7; } open_im_sdk.BlackInfo(BlackUserInfo) != imdb.Black (BlockUserID)
type LocalChatLog ¶
type LocalChatLog struct { ClientMsgID string `gorm:"column:client_msg_id;primary_key;type:char(64)" json:"clientMsgID"` ServerMsgID string `gorm:"column:server_msg_id;type:char(64)" json:"serverMsgID"` SendID string `gorm:"column:send_id;type:char(64)" json:"sendID"` RecvID string `gorm:"column:recv_id;index:index_recv_id;type:char(64)" json:"recvID"` SenderPlatformID int32 `gorm:"column:sender_platform_id" json:"senderPlatformID"` SenderNickname string `gorm:"column:sender_nick_name;type:varchar(255)" json:"senderNickname"` SenderFaceURL string `gorm:"column:sender_face_url;type:varchar(255)" json:"senderFaceURL"` SessionType int32 `gorm:"column:session_type" json:"sessionType"` MsgFrom int32 `gorm:"column:msg_from" json:"msgFrom"` ContentType int32 `gorm:"column:content_type;index:content_type_alone" json:"contentType"` Content string `gorm:"column:content;type:varchar(1000)" json:"content"` IsRead bool `gorm:"column:is_read" json:"isRead"` Status int32 `gorm:"column:status" json:"status"` Seq int64 `gorm:"column:seq;index:index_seq;default:0" json:"seq"` SendTime int64 `gorm:"column:send_time;index:index_send_time;" json:"sendTime"` CreateTime int64 `gorm:"column:create_time" json:"createTime"` AttachedInfo string `gorm:"column:attached_info;type:varchar(1024)" json:"attachedInfo"` Ex string `gorm:"column:ex;type:varchar(1024)" json:"ex"` LocalEx string `gorm:"column:local_ex;type:varchar(1024)" json:"localEx"` IsReact bool `gorm:"column:is_react" json:"isReact"` IsExternalExtensions bool `gorm:"column:is_external_extensions" json:"isExternalExtensions"` MsgFirstModifyTime int64 `gorm:"column:msg_first_modify_time" json:"msgFirstModifyTime"` }
type LocalConversation ¶
type LocalConversation struct { ConversationID string `gorm:"column:conversation_id;primary_key;type:char(128)" json:"conversationID"` ConversationType int32 `gorm:"column:conversation_type" json:"conversationType"` UserID string `gorm:"column:user_id;type:char(64)" json:"userID"` GroupID string `gorm:"column:group_id;type:char(128)" json:"groupID"` ShowName string `gorm:"column:show_name;type:varchar(255)" json:"showName"` FaceURL string `gorm:"column:face_url;type:varchar(255)" json:"faceURL"` RecvMsgOpt int32 `gorm:"column:recv_msg_opt" json:"recvMsgOpt"` UnreadCount int32 `gorm:"column:unread_count" json:"unreadCount"` GroupAtType int32 `gorm:"column:group_at_type" json:"groupAtType"` LatestMsg string `gorm:"column:latest_msg;type:varchar(1000)" json:"latestMsg"` LatestMsgSendTime int64 `gorm:"column:latest_msg_send_time;index:index_latest_msg_send_time" json:"latestMsgSendTime"` DraftText string `gorm:"column:draft_text" json:"draftText"` DraftTextTime int64 `gorm:"column:draft_text_time" json:"draftTextTime"` IsPinned bool `gorm:"column:is_pinned" json:"isPinned"` IsPrivateChat bool `gorm:"column:is_private_chat" json:"isPrivateChat"` BurnDuration int32 `gorm:"column:burn_duration;default:30" json:"burnDuration"` IsNotInGroup bool `gorm:"column:is_not_in_group" json:"isNotInGroup"` UpdateUnreadCountTime int64 `gorm:"column:update_unread_count_time" json:"updateUnreadCountTime"` AttachedInfo string `gorm:"column:attached_info;type:varchar(1024)" json:"attachedInfo"` Ex string `gorm:"column:ex;type:varchar(1024)" json:"ex"` MaxSeq int64 `gorm:"column:max_seq" json:"maxSeq"` MinSeq int64 `gorm:"column:min_seq" json:"minSeq"` HasReadSeq int64 `gorm:"column:has_read_seq" json:"hasReadSeq"` MsgDestructTime int64 `gorm:"column:msg_destruct_time;default:604800" json:"msgDestructTime"` IsMsgDestruct bool `gorm:"column:is_msg_destruct;default:false" json:"isMsgDestruct"` }
`create table if not exists conversation (
conversation_id char(128) NOT NULL, conversation_type int(11) NOT NULL, user_id varchar(128) DEFAULT NULL, group_id varchar(128) DEFAULT NULL, show_name varchar(128) NOT NULL, face_url varchar(128) NOT NULL, recv_msg_opt int(11) NOT NULL , unread_count int(11) NOT NULL , latest_msg varchar(255) NOT NULL , latest_msg_send_time INTEGER(255) NOT NULL , draft_text varchar(255) DEFAULT NULL , draft_timestamp INTEGER(255) DEFAULT NULL , is_pinned int(10) NOT NULL , PRIMARY KEY (conversation_id)
)
type LocalConversationUnreadMessage ¶
type LocalConversationUnreadMessage struct { ConversationID string `gorm:"column:conversation_id;primary_key;type:char(128)" json:"conversationID"` ClientMsgID string `gorm:"column:client_msg_id;primary_key;type:char(64)" json:"clientMsgID"` SendTime int64 `gorm:"column:send_time" json:"sendTime"` Ex string `gorm:"column:ex;type:varchar(1024)" json:"ex"` }
type LocalErrChatLog ¶
type LocalErrChatLog struct { Seq int64 `gorm:"column:seq;primary_key" json:"seq"` ClientMsgID string `gorm:"column:client_msg_id;type:char(64)" json:"clientMsgID"` ServerMsgID string `gorm:"column:server_msg_id;type:char(64)" json:"serverMsgID"` SendID string `gorm:"column:send_id;type:char(64)" json:"sendID"` RecvID string `gorm:"column:recv_id;type:char(64)" json:"recvID"` SenderPlatformID int32 `gorm:"column:sender_platform_id" json:"senderPlatformID"` SenderNickname string `gorm:"column:sender_nick_name;type:varchar(255)" json:"senderNickname"` SenderFaceURL string `gorm:"column:sender_face_url;type:varchar(255)" json:"senderFaceURL"` SessionType int32 `gorm:"column:session_type" json:"sessionType"` MsgFrom int32 `gorm:"column:msg_from" json:"msgFrom"` ContentType int32 `gorm:"column:content_type" json:"contentType"` Content string `gorm:"column:content;type:varchar(1000)" json:"content"` IsRead bool `gorm:"column:is_read" json:"isRead"` Status int32 `gorm:"column:status" json:"status"` SendTime int64 `gorm:"column:send_time" json:"sendTime"` CreateTime int64 `gorm:"column:create_time" json:"createTime"` AttachedInfo string `gorm:"column:attached_info;type:varchar(1024)" json:"attachedInfo"` Ex string `gorm:"column:ex;type:varchar(1024)" json:"ex"` }
type LocalFriend ¶
type LocalFriend struct { OwnerUserID string `gorm:"column:owner_user_id;primary_key;type:varchar(64)" json:"ownerUserID"` FriendUserID string `gorm:"column:friend_user_id;primary_key;type:varchar(64)" json:"userID"` Remark string `gorm:"column:remark;type:varchar(255)" json:"remark"` CreateTime int64 `gorm:"column:create_time" json:"createTime"` AddSource int32 `gorm:"column:add_source" json:"addSource"` OperatorUserID string `gorm:"column:operator_user_id;type:varchar(64)" json:"operatorUserID"` Nickname string `gorm:"column:name;type:varchar;type:varchar(255)" json:"nickname"` FaceURL string `gorm:"column:face_url;type:varchar;type:varchar(255)" json:"faceURL"` //Gender int32 `gorm:"column:gender" json:"gender"` //PhoneNumber string `gorm:"column:phone_number;type:varchar(32)" json:"phoneNumber"` //Birth uint32 `gorm:"column:birth" json:"birth"` //Email string `gorm:"column:email;type:varchar(64)" json:"email"` Ex string `gorm:"column:ex;type:varchar(1024)" json:"ex"` AttachedInfo string `gorm:"column:attached_info;type:varchar(1024)" json:"attachedInfo"` }
type LocalFriendRequest ¶
type LocalFriendRequest struct { FromUserID string `gorm:"column:from_user_id;primary_key;type:varchar(64)" json:"fromUserID"` FromNickname string `gorm:"column:from_nickname;type:varchar;type:varchar(255)" json:"fromNickname"` FromFaceURL string `gorm:"column:from_face_url;type:varchar;type:varchar(255)" json:"fromFaceURL"` ToUserID string `gorm:"column:to_user_id;primary_key;type:varchar(64)" json:"toUserID"` ToNickname string `gorm:"column:to_nickname;type:varchar;type:varchar(255)" json:"toNickname"` ToFaceURL string `gorm:"column:to_face_url;type:varchar;type:varchar(255)" json:"toFaceURL"` HandleResult int32 `gorm:"column:handle_result" json:"handleResult"` ReqMsg string `gorm:"column:req_msg;type:varchar(255)" json:"reqMsg"` CreateTime int64 `gorm:"column:create_time" json:"createTime"` HandlerUserID string `gorm:"column:handler_user_id;type:varchar(64)" json:"handlerUserID"` HandleMsg string `gorm:"column:handle_msg;type:varchar(255)" json:"handleMsg"` HandleTime int64 `gorm:"column:handle_time" json:"handleTime"` Ex string `gorm:"column:ex;type:varchar(1024)" json:"ex"` AttachedInfo string `gorm:"column:attached_info;type:varchar(1024)" json:"attachedInfo"` }
message FriendRequest{ string FromUserID = 1; string ToUserID = 2; int32 HandleResult = 3; string ReqMsg = 4; int64 CreateTime = 5; string HandlerUserID = 6; string HandleMsg = 7; int64 HandleTime = 8; string Ex = 9; } open_im_sdk.FriendRequest == imdb.FriendRequest
type LocalGroup ¶
type LocalGroup struct { GroupID string `gorm:"column:group_id;primary_key;type:varchar(64)" json:"groupID" binding:"required"` GroupName string `gorm:"column:name;size:255" json:"groupName"` Notification string `gorm:"column:notification;type:varchar(255)" json:"notification"` Introduction string `gorm:"column:introduction;type:varchar(255)" json:"introduction"` FaceURL string `gorm:"column:face_url;type:varchar(255)" json:"faceURL"` CreateTime int64 `gorm:"column:create_time" json:"createTime"` Status int32 `gorm:"column:status" json:"status"` CreatorUserID string `gorm:"column:creator_user_id;type:varchar(64)" json:"creatorUserID"` GroupType int32 `gorm:"column:group_type" json:"groupType"` OwnerUserID string `gorm:"column:owner_user_id;type:varchar(64)" json:"ownerUserID"` MemberCount int32 `gorm:"column:member_count" json:"memberCount"` Ex string `gorm:"column:ex;type:varchar(1024)" json:"ex"` AttachedInfo string `gorm:"column:attached_info;type:varchar(1024)" json:"attachedInfo"` NeedVerification int32 `gorm:"column:need_verification" json:"needVerification"` LookMemberInfo int32 `gorm:"column:look_member_info" json:"lookMemberInfo"` ApplyMemberFriend int32 `gorm:"column:apply_member_friend" json:"applyMemberFriend"` NotificationUpdateTime int64 `gorm:"column:notification_update_time" json:"notificationUpdateTime"` NotificationUserID string `gorm:"column:notification_user_id;size:64" json:"notificationUserID"` }
type LocalGroupMember ¶
type LocalGroupMember struct { GroupID string `gorm:"column:group_id;primary_key;type:varchar(64)" json:"groupID"` UserID string `gorm:"column:user_id;primary_key;type:varchar(64)" json:"userID"` Nickname string `gorm:"column:nickname;type:varchar(255)" json:"nickname"` FaceURL string `gorm:"column:user_group_face_url;type:varchar(255)" json:"faceURL"` RoleLevel int32 `gorm:"column:role_level;index:index_role_level;" json:"roleLevel"` JoinTime int64 `gorm:"column:join_time;index:index_join_time;" json:"joinTime"` JoinSource int32 `gorm:"column:join_source" json:"joinSource"` InviterUserID string `gorm:"column:inviter_user_id;size:64" json:"inviterUserID"` MuteEndTime int64 `gorm:"column:mute_end_time;default:0" json:"muteEndTime"` OperatorUserID string `gorm:"column:operator_user_id;type:varchar(64)" json:"operatorUserID"` Ex string `gorm:"column:ex;type:varchar(1024)" json:"ex"` AttachedInfo string `gorm:"column:attached_info;type:varchar(1024)" json:"attachedInfo"` }
type LocalGroupRequest ¶
type LocalGroupRequest struct { GroupID string `gorm:"column:group_id;primary_key;type:varchar(64)" json:"groupID"` GroupName string `gorm:"column:group_name;size:255" json:"groupName"` Notification string `gorm:"column:notification;type:varchar(255)" json:"notification"` Introduction string `gorm:"column:introduction;type:varchar(255)" json:"introduction"` GroupFaceURL string `gorm:"column:face_url;type:varchar(255)" json:"groupFaceURL"` CreateTime int64 `gorm:"column:create_time" json:"createTime"` Status int32 `gorm:"column:status" json:"status"` CreatorUserID string `gorm:"column:creator_user_id;type:varchar(64)" json:"creatorUserID"` GroupType int32 `gorm:"column:group_type" json:"groupType"` OwnerUserID string `gorm:"column:owner_user_id;type:varchar(64)" json:"ownerUserID"` MemberCount int32 `gorm:"column:member_count" json:"memberCount"` UserID string `gorm:"column:user_id;primary_key;type:varchar(64)" json:"userID"` Nickname string `gorm:"column:nickname;type:varchar(255)" json:"nickname"` UserFaceURL string `gorm:"column:user_face_url;type:varchar(255)" json:"userFaceURL"` HandleResult int32 `gorm:"column:handle_result" json:"handleResult"` ReqMsg string `gorm:"column:req_msg;type:varchar(255)" json:"reqMsg"` HandledMsg string `gorm:"column:handle_msg;type:varchar(255)" json:"handledMsg"` ReqTime int64 `gorm:"column:req_time" json:"reqTime"` HandleUserID string `gorm:"column:handle_user_id;type:varchar(64)" json:"handleUserID"` HandledTime int64 `gorm:"column:handle_time" json:"handledTime"` Ex string `gorm:"column:ex;type:varchar(1024)" json:"ex"` AttachedInfo string `gorm:"column:attached_info;type:varchar(1024)" json:"attachedInfo"` JoinSource int32 `gorm:"column:join_source" json:"joinSource"` InviterUserID string `gorm:"column:inviter_user_id;size:64" json:"inviterUserID"` }
message GroupRequest{ string UserID = 1; string GroupID = 2; string HandleResult = 3; string ReqMsg = 4; string HandleMsg = 5; int64 ReqTime = 6; string HandleUserID = 7; int64 HandleTime = 8; string Ex = 9; }open_im_sdk.GroupRequest == imdb.GroupRequest
type LocalSeqData ¶
type LocalStranger ¶
type LocalStranger struct { UserID string `gorm:"column:user_id;primary_key;type:varchar(64)" json:"userID"` Nickname string `gorm:"column:name;type:varchar(255)" json:"nickname"` FaceURL string `gorm:"column:face_url;type:varchar(255)" json:"faceURL"` CreateTime int64 `gorm:"column:create_time" json:"createTime"` AppMangerLevel int32 `gorm:"column:app_manger_level" json:"-"` Ex string `gorm:"column:ex;type:varchar(1024)" json:"ex"` AttachedInfo string `gorm:"column:attached_info;type:varchar(1024)" json:"attachedInfo"` GlobalRecvMsgOpt int32 `gorm:"column:global_recv_msg_opt" json:"globalRecvMsgOpt"` }
func (LocalStranger) TableName ¶
func (LocalStranger) TableName() string
type LocalUpload ¶
type LocalUpload struct { PartHash string `gorm:"column:part_hash;primary_key" json:"partHash"` UploadID string `gorm:"column:upload_id;type:varchar(1000)" json:"uploadID"` UploadInfo string `gorm:"column:upload_info;type:varchar(2000)" json:"uploadInfo"` ExpireTime int64 `gorm:"column:expire_time" json:"expireTime"` CreateTime int64 `gorm:"column:create_time" json:"createTime"` }
func (LocalUpload) TableName ¶
func (LocalUpload) TableName() string
type LocalUser ¶
type LocalUser struct { UserID string `gorm:"column:user_id;primary_key;type:varchar(64)" json:"userID"` Nickname string `gorm:"column:name;type:varchar(255)" json:"nickname"` FaceURL string `gorm:"column:face_url;type:varchar(255)" json:"faceURL"` CreateTime int64 `gorm:"column:create_time" json:"createTime"` AppMangerLevel int32 `gorm:"column:app_manger_level" json:"-"` Ex string `gorm:"column:ex;type:varchar(1024)" json:"ex"` AttachedInfo string `gorm:"column:attached_info;type:varchar(1024)" json:"attachedInfo"` GlobalRecvMsgOpt int32 `gorm:"column:global_recv_msg_opt" json:"globalRecvMsgOpt"` }
string UserID = 1; string Nickname = 2; string FaceUrl = 3; int32 Gender = 4; string PhoneNumber = 5; string Birth = 6; string Email = 7; string Ex = 8; int64 CreateTime = 9; int32 AppMangerLevel = 10; open_im_sdk.User == imdb.User
type LocalWorkMomentsNotification ¶
type LocalWorkMomentsNotification struct { JsonDetail string `gorm:"column:json_detail"` CreateTime int64 `gorm:"create_time"` }
func (LocalWorkMomentsNotification) TableName ¶
func (LocalWorkMomentsNotification) TableName() string
type LocalWorkMomentsNotificationUnreadCount ¶
type LocalWorkMomentsNotificationUnreadCount struct {
UnreadCount int `gorm:"unread_count" json:"unreadCount"`
}
func (LocalWorkMomentsNotificationUnreadCount) TableName ¶
func (LocalWorkMomentsNotificationUnreadCount) TableName() string
type NotificationSeqs ¶
type NotificationSeqs struct { ConversationID string `gorm:"column:conversation_id;primary_key;type:char(128)" json:"conversationID"` Seq int64 `gorm:"column:seq" json:"seq"` }
func (NotificationSeqs) TableName ¶
func (NotificationSeqs) TableName() string
type TempCacheLocalChatLog ¶
type TempCacheLocalChatLog struct { ClientMsgID string `gorm:"column:client_msg_id;primary_key;type:char(64)" json:"clientMsgID"` ServerMsgID string `gorm:"column:server_msg_id;type:char(64)" json:"serverMsgID"` SendID string `gorm:"column:send_id;type:char(64)" json:"sendID"` RecvID string `gorm:"column:recv_id;type:char(64)" json:"recvID"` SenderPlatformID int32 `gorm:"column:sender_platform_id" json:"senderPlatformID"` SenderNickname string `gorm:"column:sender_nick_name;type:varchar(255)" json:"senderNickname"` SenderFaceURL string `gorm:"column:sender_face_url;type:varchar(255)" json:"senderFaceURL"` SessionType int32 `gorm:"column:session_type" json:"sessionType"` MsgFrom int32 `gorm:"column:msg_from" json:"msgFrom"` ContentType int32 `gorm:"column:content_type" json:"contentType"` Content string `gorm:"column:content;type:varchar(1000)" json:"content"` IsRead bool `gorm:"column:is_read" json:"isRead"` Status int32 `gorm:"column:status" json:"status"` Seq int64 `gorm:"column:seq;default:0" json:"seq"` SendTime int64 `gorm:"column:send_time;" json:"sendTime"` CreateTime int64 `gorm:"column:create_time" json:"createTime"` AttachedInfo string `gorm:"column:attached_info;type:varchar(1024)" json:"attachedInfo"` Ex string `gorm:"column:ex;type:varchar(1024)" json:"ex"` }
type WorkMomentNotificationMsg ¶
type WorkMomentNotificationMsg struct { NotificationMsgType int32 `json:"notificationMsgType"` ReplyUserName string `json:"replyUserName"` ReplyUserID string `json:"replyUserID"` Content string `json:"content"` ContentID string `json:"contentID"` WorkMomentID string `json:"workMomentID"` UserID string `json:"userID"` UserName string `json:"userName"` FaceURL string `json:"faceURL"` WorkMomentContent string `json:"workMomentContent"` CreateTime int32 `json:"createTime"` }