修改聊天和登录信息的数据库结构

This commit is contained in:
flswld committed 2023-02-12 17:13:06 +08:00
1 parent 15199d31e8
commit 36a150c9bb
17 files changed
+171 -118

No files matched your search

+9 -8
View File
@@ -10,12 +10,13 @@ const (
)
type ChatMsg struct {
ID primitive.ObjectID `bson:"_id,omitempty"`
Time uint32 `bson:"Time"`
ToUid uint32 `bson:"ToUid"`
Uid uint32 `bson:"Uid"`
IsRead bool `bson:"IsRead"`
MsgType uint8 `bson:"MsgType"`
Text string `bson:"Text"`
Icon uint32 `bson:"Icon"`
ID primitive.ObjectID `bson:"_id,omitempty"`
Sequence uint32 `bson:"-"`
Time uint32 `bson:"Time"`
ToUid uint32 `bson:"ToUid"`
Uid uint32 `bson:"Uid"`
IsRead bool `bson:"IsRead"`
MsgType uint8 `bson:"MsgType"`
Text string `bson:"Text"`
Icon uint32 `bson:"Icon"`
}