拆分了聊天数据,减小玩家数据结构大小

This commit is contained in:
flswld
2023-02-12 02:00:52 +08:00
parent e4be36a434
commit d35291cb5e
17 changed files with 433 additions and 216 deletions

View File

@@ -6,11 +6,11 @@ const (
)
type ChatMsg struct {
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"`
Time uint32
ToUid uint32
Uid uint32
IsRead bool
MsgType uint8
Text string
Icon uint32
}