mirror of
https://github.com/openimsdk/open-im-server.git
synced 2025-04-27 12:08:52 +08:00
38 lines
1.6 KiB
Go
38 lines
1.6 KiB
Go
package unrelation
|
|
|
|
import "github.com/OpenIMSDK/Open-IM-Server/pkg/proto/sdkws"
|
|
|
|
type MsgModel struct {
|
|
SendID string `bson:"send_id"`
|
|
RecvID string `bson:"recv_id"`
|
|
GroupID string `bson:"group_id"`
|
|
ClientMsgID string `bson:"client_msg_id"` // 客户端消息ID
|
|
ServerMsgID string `bson:"server_msg_id"` // 服务端消息ID
|
|
SenderPlatformID int32 `bson:"sender_platform_id"`
|
|
SenderNickname string `bson:"sender_nickname"`
|
|
SenderFaceURL string `bson:"sender_face_url"`
|
|
SessionType int32 `bson:"session_type"`
|
|
MsgFrom int32 `bson:"msg_from"`
|
|
ContentType int32 `bson:"contentType"`
|
|
Content []byte `bson:"content"`
|
|
Seq int64 `bson:"seq"`
|
|
SendTime int64 `bson:"sendTime"`
|
|
CreateTime int64 `bson:"createTime"`
|
|
Status int32 `bson:"status"`
|
|
Options map[string]bool `bson:"options"`
|
|
OfflinePushInfo *sdkws.OfflinePushInfo `bson:"offlinePushInfo"`
|
|
AtUserIDList []string `bson:"atUserIDList"`
|
|
MsgDataList []byte `bson:"msgDataList"`
|
|
AttachedInfo string `bson:"attachedInfo"`
|
|
Ex string `bson:"ex"`
|
|
}
|
|
|
|
type ReadDiffusionMsgModel struct {
|
|
*MsgModel
|
|
}
|
|
|
|
type WriteDiffusionMsgModel struct {
|
|
*MsgModel
|
|
UserID string `bson:"user_id"`
|
|
}
|