优化架构

This commit is contained in:
huangxiaolei
2022-11-23 18:05:11 +08:00
parent 3efed3defe
commit 43403202b5
6760 changed files with 33748 additions and 554768 deletions

16
gs/model/chat.go Normal file
View File

@@ -0,0 +1,16 @@
package model
const (
ChatMsgTypeText = iota
ChatMsgTypeIcon
)
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"`
}